Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009587/0.0009587, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004809/0.004809, allocations: 162 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9328/0.9328, allocations: 177.1 MB / 205 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.264e-06/2.264e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.382e-05/3.609e-05, allocations: 9.094 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002772/0.002808, allocations: 2.131 MB / 328 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.003952, allocations: 0.7126 MB / 328.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000136/0.004088, allocations: 7.938 kB / 328.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.004281, allocations: 47.47 kB / 328.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.00448, allocations: 43.64 kB / 328.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.004743, allocations: 107.6 kB / 328.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.005047, allocations: 239.7 kB / 329.1 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002515/0.005298, allocations: 79.78 kB / 329.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/0.005613, allocations: 139.6 kB / 329.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.005755, allocations: 83.7 kB / 329.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.168e-05/0.005787, allocations: 16 kB / 329.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.788e-05/0.005865, allocations: 35.98 kB / 329.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.647e-05/0.005931, allocations: 55.75 kB / 329.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.922e-05/0.005991, allocations: 67.83 kB / 329.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003519/0.006342, allocations: 259.1 kB / 329.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.006345, allocations: 0 / 329.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.006347, allocations: 0 / 329.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.006354, allocations: 0 / 329.8 MB, free: 11.41 MB / 298.7 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.0007948/0.007149, allocations: 481.5 kB / 330.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.007194, allocations: 8.031 kB / 330.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001221/0.007316, allocations: 36.75 kB / 330.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.007578, allocations: 205 kB / 330.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.007604, allocations: 12.88 kB / 330.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.328e-05/0.007647, allocations: 24.38 kB / 330.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003391/0.007987, allocations: 256.2 kB / 330.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.008002, allocations: 192 / 330.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.00802, allocations: 8.375 kB / 330.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.043e-05/0.00805, allocations: 16.44 kB / 330.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002865/0.008337, allocations: 197.8 kB / 331 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009345/0.009271, allocations: 0.6938 MB / 331.7 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.009539, allocations: 170.4 kB / 331.9 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.009663, allocations: 100.8 kB / 332 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.992e-05/0.009733, allocations: 7.984 kB / 332 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.00976, allocations: 42.56 kB / 332 MB, free: 9.055 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.223e-06/0.009761, allocations: 0 / 332 MB, free: 9.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009828/0.01074, allocations: 0.6545 MB / 332.7 MB, free: 8.367 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.01079, allocations: 55.41 kB / 332.8 MB, free: 8.301 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.01092, allocations: 187.8 kB / 332.9 MB, free: 8.102 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.01094, allocations: 33.64 kB / 333 MB, free: 8.062 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.705e-05/0.01103, allocations: 156.4 kB / 333.1 MB, free: 7.906 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.585e-05/0.01108, allocations: 83.28 kB / 333.2 MB, free: 7.824 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.866e-05/0.01113, allocations: 49.7 kB / 333.3 MB, free: 7.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.01124, allocations: 330.8 kB / 333.6 MB, free: 7.438 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.01135, allocations: 83.94 kB / 333.7 MB, free: 7.355 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.01149, allocations: 123.4 kB / 333.8 MB, free: 7.223 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.01174, allocations: 223.2 kB / 334 MB, free: 6.992 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.01175, allocations: 7.938 kB / 334 MB, free: 6.984 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003218/0.01207, allocations: 272.5 kB / 334.3 MB, free: 6.715 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.01208, allocations: 4 kB / 334.3 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.01209, allocations: 4 kB / 334.3 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.01211, allocations: 0 / 334.3 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.01228, allocations: 63.89 kB / 334.3 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.01229, allocations: 12.05 kB / 334.4 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.99e-05/0.01235, allocations: 15.98 kB / 334.4 MB, free: 6.617 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.01236, allocations: 4 kB / 334.4 MB, free: 6.613 MB / 298.7 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.0001088/0.01247, allocations: 149.7 kB / 334.5 MB, free: 6.457 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.811e-05/0.01249, allocations: 23.8 kB / 334.5 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003781/0.01287, allocations: 283.9 kB / 334.8 MB, free: 6.152 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.01288, allocations: 4 kB / 334.8 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.01288, allocations: 7.938 kB / 334.8 MB, free: 6.141 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.01289, allocations: 0 / 334.8 MB, free: 6.141 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006183/0.0135, allocations: 0.5932 MB / 335.4 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.01351, allocations: 0 / 335.4 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001541/0.01366, allocations: 55.97 kB / 335.5 MB, free: 5.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.01366, allocations: 3.938 kB / 335.5 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.01368, allocations: 8 kB / 335.5 MB, free: 5.441 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.01368, allocations: 4.031 kB / 335.5 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.01368, allocations: 0 / 335.5 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004923/0.01417, allocations: 482.1 kB / 336 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.013e-05/0.01422, allocations: 39.89 kB / 336 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.01425, allocations: 4 kB / 336 MB, free: 4.902 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.844e-05/0.01431, allocations: 15.98 kB / 336 MB, free: 4.887 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.01436, allocations: 19.91 kB / 336 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.01438, allocations: 11.98 kB / 336.1 MB, free: 4.855 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.691e-05/0.01445, allocations: 141.5 kB / 336.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01445, allocations: 0 / 336.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001835/0.01464, allocations: 51.92 kB / 336.2 MB, free: 4.668 MB / 298.7 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.0001489/0.01478, allocations: 107.2 kB / 336.4 MB, free: 4.555 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002987/0.01508, allocations: 211.7 kB / 336.6 MB, free: 4.348 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01509, allocations: 0 / 336.6 MB, free: 4.348 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.01521, allocations: 115.9 kB / 336.7 MB, free: 4.234 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.01545, allocations: 24.3 kB / 336.7 MB, free: 4.211 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007338/0.01618, allocations: 0.6397 MB / 337.3 MB, free: 3.535 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001141/0.0163, allocations: 154.8 kB / 337.5 MB, free: 3.363 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.624e-05/0.01635, allocations: 28.48 kB / 337.5 MB, free: 3.336 MB / 298.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01635, allocations: 0 / 337.5 MB, free: 3.336 MB / 298.7 MB Notification: Performance of Templates: time 0.003534/0.01989, allocations: 2.897 MB / 340.4 MB, free: 444 kB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.747580469585955]