Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 114.6 kB / 18.4 MB, free: 4.773 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002209/0.002209, allocations: 190.7 kB / 21.34 MB, free: 1.844 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 222.9 MB / 247 MB, free: 4.234 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 43.92 kB / 358.6 MB, free: 8.387 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1026, allocations: 49.44 MB / 408.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003605/0.1063, allocations: 2.207 MB / 410.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.1077, allocations: 0.6933 MB / 411 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.1078, allocations: 7.938 kB / 411 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002173/0.108, allocations: 47.52 kB / 411 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001863/0.1082, allocations: 43.59 kB / 411.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.1086, allocations: 99.77 kB / 411.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.1089, allocations: 239.6 kB / 411.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000259/0.1092, allocations: 119.5 kB / 411.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.1093, allocations: 91.58 kB / 411.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.1095, allocations: 111.5 kB / 411.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.813e-05/0.1095, allocations: 16 kB / 411.7 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.724e-05/0.1096, allocations: 32 kB / 411.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.081e-05/0.1097, allocations: 55.81 kB / 411.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.1099, allocations: 107.3 kB / 411.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.1102, allocations: 242.8 kB / 412.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1102, allocations: 4 kB / 412.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1102, allocations: 0 / 412.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1102, allocations: 0 / 412.2 MB, free: 2.793 MB / 334.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.000951/0.1112, allocations: 0.561 MB / 412.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.1112, allocations: 11.89 kB / 412.7 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.577e-05/0.1113, allocations: 28.75 kB / 412.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.1116, allocations: 252.3 kB / 413 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.1117, allocations: 16.8 kB / 413 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.149e-05/0.1117, allocations: 31.89 kB / 413.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005018/0.1122, allocations: 258.6 kB / 413.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.1123, allocations: 0 / 413.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.1123, allocations: 15.98 kB / 413.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.051e-05/0.1123, allocations: 8.438 kB / 413.3 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000474/0.1128, allocations: 193.6 kB / 413.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00126/0.1141, allocations: 0.8186 MB / 414.4 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003888/0.1145, allocations: 182.4 kB / 414.5 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002392/0.1147, allocations: 114.5 kB / 414.6 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001151/0.1149, allocations: 89.03 kB / 414.7 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.839e-05/0.1149, allocations: 42.55 kB / 414.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.302e-06/0.1149, allocations: 0 / 414.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001606/0.1166, allocations: 0.7203 MB / 415.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.1166, allocations: 55.41 kB / 415.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.1169, allocations: 213 kB / 415.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.1169, allocations: 33.69 kB / 415.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.1171, allocations: 152.5 kB / 415.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.3e-05/0.1172, allocations: 83.28 kB / 416 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.1173, allocations: 49.7 kB / 416.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.1175, allocations: 342.8 kB / 416.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002201/0.1177, allocations: 79.95 kB / 416.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/0.1179, allocations: 127.4 kB / 416.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004549/0.1184, allocations: 217.7 kB / 416.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1184, allocations: 0 / 416.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005761/0.119, allocations: 284.4 kB / 417.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.119, allocations: 4 kB / 417.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.119, allocations: 0 / 417.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.1191, allocations: 4 kB / 417.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/0.1194, allocations: 63.95 kB / 417.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.1194, allocations: 3.938 kB / 417.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.1195, allocations: 19.92 kB / 417.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.387e-05/0.1196, allocations: 11.98 kB / 417.2 MB, free: 13.44 MB / 350.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.0001465/0.1197, allocations: 137.8 kB / 417.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.212e-05/0.1198, allocations: 23.86 kB / 417.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006644/0.1204, allocations: 300.7 kB / 417.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.1205, allocations: 7.984 kB / 417.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1205, allocations: 0 / 417.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.964e-06/0.1205, allocations: 3.938 kB / 417.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.1216, allocations: 0.6794 MB / 418.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.1217, allocations: 3.984 kB / 418.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002881/0.122, allocations: 59.94 kB / 418.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.064e-06/0.122, allocations: 7.938 kB / 418.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.122, allocations: 4 kB / 418.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.122, allocations: 4 kB / 418.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.122, allocations: 0 / 418.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008772/0.1229, allocations: 485.6 kB / 418.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.123, allocations: 117 kB / 419 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.02e-05/0.1231, allocations: 15.94 kB / 419 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.1233, allocations: 11.98 kB / 419 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.515e-05/0.1233, allocations: 23.91 kB / 419.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.1234, allocations: 8 kB / 419.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001507/0.1235, allocations: 156.5 kB / 419.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1235, allocations: 0 / 419.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.1238, allocations: 52 kB / 419.3 MB, free: 11.26 MB / 350.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.0001847/0.124, allocations: 111.1 kB / 419.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000549/0.1246, allocations: 219.8 kB / 419.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1246, allocations: 0 / 419.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.1249, allocations: 120.3 kB / 419.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.1252, allocations: 39.08 kB / 419.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.1265, allocations: 0.7224 MB / 420.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.127, allocations: 0.7675 MB / 421.2 MB, free: 9.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.577e-05/0.127, allocations: 35.36 kB / 421.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1271, allocations: 0 / 421.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of Templates: time 0.005754/0.1328, allocations: 2.87 MB / 424.1 MB, free: 6.309 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.537890690029599]