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.00095/0.00095, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001192/0.001192, allocations: 165 kB / 24.55 MB, free: 20 kB / 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 1.031/1.031, allocations: 177.1 MB / 205 MB, free: 4.801 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.064e-06/2.064e-06, allocations: 0 / 273 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.26e-05/3.467e-05, allocations: 2.312 kB / 273 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004069/0.004103, allocations: 2.182 MB / 275.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.005543, allocations: 0.732 MB / 275.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.005687, allocations: 7.938 kB / 275.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002167/0.005904, allocations: 47.45 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.006139, allocations: 47.59 kB / 276 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003555/0.006494, allocations: 99.75 kB / 276.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003255/0.00682, allocations: 239.7 kB / 276.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002328/0.007053, allocations: 75.94 kB / 276.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002881/0.007341, allocations: 139.6 kB / 276.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.007505, allocations: 83.7 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.416e-05/0.007549, allocations: 16 kB / 276.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.007651, allocations: 32 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.516e-05/0.007736, allocations: 63.73 kB / 276.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.323e-05/0.00782, allocations: 63.83 kB / 276.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003408/0.00816, allocations: 191.2 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.008165, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.008166, allocations: 0 / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.008173, allocations: 0 / 277 MB, free: 13.23 MB / 266.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.001055/0.009228, allocations: 0.5778 MB / 277.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.009274, allocations: 8.031 kB / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.009466, allocations: 52.73 kB / 277.6 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002951/0.009761, allocations: 200.2 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.166e-05/0.009803, allocations: 20.81 kB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.009852, allocations: 20.38 kB / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000432/0.01028, allocations: 221.4 kB / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.0103, allocations: 192 / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.01032, allocations: 4.375 kB / 278.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.611e-05/0.01037, allocations: 20.44 kB / 278.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/0.01061, allocations: 90.86 kB / 278.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.01176, allocations: 0.8156 MB / 279 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002606/0.01202, allocations: 126.1 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.01214, allocations: 59.64 kB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.588e-05/0.01221, allocations: 8 kB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.01224, allocations: 37.39 kB / 279.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 2.084e-06/0.01225, allocations: 0 / 279.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.001032/0.01328, allocations: 476.3 kB / 279.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.01332, allocations: 55.41 kB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.01352, allocations: 238.8 kB / 280 MB, free: 10.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.01355, allocations: 29.7 kB / 280 MB, free: 9.977 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.01367, allocations: 203.1 kB / 280.2 MB, free: 9.773 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.345e-05/0.01375, allocations: 83.31 kB / 280.3 MB, free: 9.691 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.895e-05/0.01384, allocations: 59.31 kB / 280.3 MB, free: 9.625 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.01402, allocations: 0.5078 MB / 280.8 MB, free: 9.105 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.51e-05/0.01412, allocations: 43.91 kB / 280.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.01423, allocations: 74.72 kB / 281 MB, free: 8.973 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.01443, allocations: 137.7 kB / 281.1 MB, free: 8.824 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01444, allocations: 3.938 kB / 281.1 MB, free: 8.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003109/0.01475, allocations: 181.4 kB / 281.3 MB, free: 8.637 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.01476, allocations: 7.984 kB / 281.3 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.01477, allocations: 0 / 281.3 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.01479, allocations: 4 kB / 281.3 MB, free: 8.625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002377/0.01503, allocations: 55.91 kB / 281.3 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.01504, allocations: 4 kB / 281.4 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.272e-05/0.01512, allocations: 16.05 kB / 281.4 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.01513, allocations: 8 kB / 281.4 MB, free: 8.543 MB / 266.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.0001139/0.01525, allocations: 172.5 kB / 281.5 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.751e-05/0.01531, allocations: 35.8 kB / 281.6 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003497/0.01566, allocations: 195 kB / 281.8 MB, free: 8.133 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.01566, allocations: 4 kB / 281.8 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.01566, allocations: 0 / 281.8 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.01567, allocations: 0 / 281.8 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007122/0.01638, allocations: 0.5561 MB / 282.3 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.01638, allocations: 0 / 282.3 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.0166, allocations: 56.03 kB / 282.4 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.01661, allocations: 4 kB / 282.4 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.01663, allocations: 4 kB / 282.4 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.01663, allocations: 11.92 kB / 282.4 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.01664, allocations: 0 / 282.4 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004503/0.01709, allocations: 396.8 kB / 282.8 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.561e-05/0.01715, allocations: 39.83 kB / 282.8 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.99e-05/0.01718, allocations: 4 kB / 282.8 MB, free: 6.996 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.01729, allocations: 12.03 kB / 282.8 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.004e-05/0.01735, allocations: 19.95 kB / 282.9 MB, free: 6.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.01736, allocations: 8 kB / 282.9 MB, free: 6.957 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.907e-05/0.01746, allocations: 177.4 kB / 283 MB, free: 6.785 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01746, allocations: 0 / 283 MB, free: 6.785 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003271/0.01779, allocations: 47.94 kB / 283.1 MB, free: 6.738 MB / 266.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.0001661/0.01795, allocations: 107.1 kB / 283.2 MB, free: 6.625 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002752/0.01823, allocations: 142.9 kB / 283.3 MB, free: 6.484 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.01823, allocations: 128 / 283.3 MB, free: 6.484 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.01835, allocations: 91.56 kB / 283.4 MB, free: 6.391 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000341/0.01869, allocations: 23.98 kB / 283.4 MB, free: 6.367 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.01981, allocations: 0.5771 MB / 284 MB, free: 5.762 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.02007, allocations: 92.3 kB / 284.1 MB, free: 5.652 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.02018, allocations: 37.91 kB / 284.2 MB, free: 5.613 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.784e-05/0.02025, allocations: 24.5 kB / 284.2 MB, free: 5.59 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.02025, allocations: 0 / 284.2 MB, free: 5.59 MB / 266.7 MB Notification: Performance of Templates: time 0.005298/0.02554, allocations: 1.948 MB / 286.1 MB, free: 3.645 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0350448423996568]