Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001167/0.001167, allocations: 108.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00126/0.00126, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 62.08 kB / 306.6 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09512/0.09644, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003859/0.1003, allocations: 2.26 MB / 359.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.1017, allocations: 0.7245 MB / 360.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.1019, allocations: 11.94 kB / 360.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002124/0.1021, allocations: 35.66 kB / 360.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002226/0.1024, allocations: 27.78 kB / 360.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003321/0.1027, allocations: 91.84 kB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000307/0.1031, allocations: 235.6 kB / 360.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.1033, allocations: 126.7 kB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.1035, allocations: 95.58 kB / 360.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.1037, allocations: 107.5 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.094e-05/0.1038, allocations: 20 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.445e-05/0.1039, allocations: 31.98 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.252e-05/0.1039, allocations: 55.83 kB / 360.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.1041, allocations: 111.3 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003192/0.1044, allocations: 235.4 kB / 361.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1044, allocations: 0 / 361.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.1044, allocations: 4 kB / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.1044, allocations: 0 / 361.2 MB, free: 10.14 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001008/0.1054, allocations: 0.5495 MB / 361.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.1055, allocations: 8.031 kB / 361.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.808e-05/0.1056, allocations: 58.73 kB / 361.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.1057, allocations: 32.64 kB / 361.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.106, allocations: 255.5 kB / 362.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.106, allocations: 16.75 kB / 362.1 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.1061, allocations: 24.36 kB / 362.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004778/0.1066, allocations: 262.7 kB / 362.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.1066, allocations: 3.906 kB / 362.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.1066, allocations: 12 kB / 362.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.462e-05/0.1067, allocations: 8.438 kB / 362.4 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004211/0.1071, allocations: 193.6 kB / 362.6 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.1083, allocations: 0.8263 MB / 363.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.1086, allocations: 176.9 kB / 363.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.1088, allocations: 109.5 kB / 363.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.109, allocations: 85.48 kB / 363.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.293e-05/0.109, allocations: 46.44 kB / 363.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.924e-06/0.109, allocations: 0 / 363.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001476/0.1105, allocations: 0.7184 MB / 364.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.1106, allocations: 55.41 kB / 364.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.1108, allocations: 213 kB / 364.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.1108, allocations: 29.7 kB / 364.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.478e-05/0.1109, allocations: 152.3 kB / 365 MB, free: 6.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.158e-05/0.111, allocations: 82.81 kB / 365.1 MB, free: 5.965 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-05/0.111, allocations: 49.69 kB / 365.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1112, allocations: 334.8 kB / 365.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.1114, allocations: 83.95 kB / 365.6 MB, free: 5.492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.1116, allocations: 123.4 kB / 365.7 MB, free: 5.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003958/0.112, allocations: 218 kB / 365.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.112, allocations: 0 / 365.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005196/0.1125, allocations: 285.1 kB / 366.2 MB, free: 4.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.1126, allocations: 4 kB / 366.2 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1126, allocations: 4 kB / 366.2 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.1126, allocations: 0 / 366.2 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.1129, allocations: 55.95 kB / 366.2 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.1129, allocations: 15.98 kB / 366.3 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.113, allocations: 15.98 kB / 366.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.1131, allocations: 11.88 kB / 366.3 MB, free: 4.746 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.1132, allocations: 153.6 kB / 366.4 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.285e-05/0.1133, allocations: 19.72 kB / 366.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007793/0.114, allocations: 299.2 kB / 366.7 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1141, allocations: 0 / 366.7 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1141, allocations: 0 / 366.7 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1141, allocations: 7.984 kB / 366.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.1151, allocations: 0.6882 MB / 367.4 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.1151, allocations: 4.031 kB / 367.4 MB, free: 3.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002837/0.1154, allocations: 63.89 kB / 367.5 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.1154, allocations: 0 / 367.5 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.1155, allocations: 8 kB / 367.5 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1155, allocations: 3.938 kB / 367.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1155, allocations: 0 / 367.5 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007574/0.1162, allocations: 489.5 kB / 368 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.528e-05/0.1163, allocations: 116.9 kB / 368.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.407e-05/0.1164, allocations: 4 kB / 368.1 MB, free: 2.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.1165, allocations: 19.92 kB / 368.1 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/0.1166, allocations: 19.97 kB / 368.2 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.1166, allocations: 4 kB / 368.2 MB, free: 2.762 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00021/0.1168, allocations: 152.5 kB / 368.3 MB, free: 2.613 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1169, allocations: 4 kB / 368.3 MB, free: 2.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003292/0.1172, allocations: 48 kB / 368.4 MB, free: 2.562 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,der1.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001303/0.1185, allocations: 1.023 MB / 369.4 MB, free: 1.512 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005812/0.1191, allocations: 255.1 kB / 369.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1191, allocations: 0 / 369.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.1193, allocations: 119.8 kB / 369.7 MB, free: 1.148 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.1197, allocations: 28.36 kB / 369.8 MB, free: 1.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1594/0.2791, allocations: 2.774 MB / 372.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.2795, allocations: 0.765 MB / 373.3 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.2797, allocations: 46.86 kB / 373.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.2799, allocations: 90.66 kB / 373.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2799, allocations: 0 / 373.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02287/0.3028, allocations: 4.286 MB / 377.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/0.3031, allocations: 188.7 kB / 377.9 MB, free: 18.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.505/2.808, allocations: 1.438 kB / 377.9 MB, free: 18.02 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder.fmu > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches