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.001614/0.001614, allocations: 114.2 kB / 19.04 MB, free: 3.277 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.001712/0.001712, allocations: 188.5 kB / 22.21 MB, free: 104 kB / 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.461/1.461, allocations: 225.6 MB / 250.8 MB, free: 13.4 MB / 206.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.001608/0.001608, allocations: 51.91 kB / 368.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3658, allocations: 52.13 MB / 420.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004335/0.3701, allocations: 2.231 MB / 423.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001547/0.3717, allocations: 0.7087 MB / 423.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.3718, allocations: 3.938 kB / 423.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000235/0.372, allocations: 47.52 kB / 423.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000223/0.3723, allocations: 47.59 kB / 423.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003622/0.3726, allocations: 107.7 kB / 424 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003469/0.373, allocations: 239.7 kB / 424.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.3732, allocations: 79.42 kB / 424.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.3734, allocations: 99.56 kB / 424.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.3736, allocations: 111.5 kB / 424.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/0.3736, allocations: 16 kB / 424.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.598e-05/0.3737, allocations: 31.98 kB / 424.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.3738, allocations: 51.78 kB / 424.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.3739, allocations: 111.3 kB / 424.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003972/0.3743, allocations: 249.2 kB / 425 MB, free: 11.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3743, allocations: 0 / 425 MB, free: 11.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3743, allocations: 0 / 425 MB, free: 11.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.3743, allocations: 0 / 425 MB, free: 11.02 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.001097/0.3754, allocations: 0.5532 MB / 425.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.3755, allocations: 11.89 kB / 425.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.78e-05/0.3756, allocations: 32.75 kB / 425.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003821/0.376, allocations: 257.2 kB / 425.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.376, allocations: 12.81 kB / 425.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.287e-05/0.3761, allocations: 31.89 kB / 425.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005352/0.3766, allocations: 258.6 kB / 426.1 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.3766, allocations: 0 / 426.1 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.955e-05/0.3766, allocations: 23.91 kB / 426.1 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.101e-05/0.3767, allocations: 12.44 kB / 426.1 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004438/0.3771, allocations: 189.6 kB / 426.3 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.3784, allocations: 0.8148 MB / 427.1 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003729/0.3787, allocations: 173.8 kB / 427.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.379, allocations: 105.2 kB / 427.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001284/0.3791, allocations: 89.03 kB / 427.5 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.3791, allocations: 42.5 kB / 427.5 MB, free: 8.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.644e-06/0.3791, allocations: 0 / 427.5 MB, free: 8.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001579/0.3807, allocations: 0.7298 MB / 428.3 MB, free: 7.457 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.3808, allocations: 51.41 kB / 428.3 MB, free: 7.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002397/0.381, allocations: 217 kB / 428.5 MB, free: 7.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/0.381, allocations: 29.7 kB / 428.6 MB, free: 7.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.3812, allocations: 148.5 kB / 428.7 MB, free: 6.988 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.268e-05/0.3813, allocations: 95.22 kB / 428.8 MB, free: 6.895 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.888e-05/0.3813, allocations: 45.7 kB / 428.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.3815, allocations: 334.8 kB / 429.2 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.3817, allocations: 87.94 kB / 429.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.382, allocations: 123.4 kB / 429.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004376/0.3824, allocations: 217.2 kB / 429.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.3824, allocations: 0 / 429.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005654/0.383, allocations: 274.8 kB / 429.9 MB, free: 5.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.383, allocations: 12.06 kB / 429.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.383, allocations: 3.984 kB / 429.9 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.383, allocations: 0 / 429.9 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/0.3833, allocations: 59.95 kB / 429.9 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.672e-05/0.3833, allocations: 7.938 kB / 429.9 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.3834, allocations: 19.92 kB / 430 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.3835, allocations: 4 kB / 430 MB, free: 5.688 MB / 334.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.0001858/0.3836, allocations: 145.8 kB / 430.1 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.573e-05/0.3837, allocations: 27.8 kB / 430.1 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006749/0.3844, allocations: 296.5 kB / 430.4 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.3844, allocations: 3.938 kB / 430.4 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.3844, allocations: 4 kB / 430.4 MB, free: 5.207 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3844, allocations: 3.938 kB / 430.4 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.3856, allocations: 0.6833 MB / 431.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3856, allocations: 0 / 431.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002745/0.3858, allocations: 55.91 kB / 431.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.3858, allocations: 3.938 kB / 431.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.695e-05/0.3859, allocations: 11.98 kB / 431.2 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.3859, allocations: 4.062 kB / 431.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3859, allocations: 0 / 431.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008418/0.3867, allocations: 493.4 kB / 431.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.3868, allocations: 117 kB / 431.8 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.926e-05/0.3869, allocations: 7.938 kB / 431.8 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001505/0.387, allocations: 15.98 kB / 431.8 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.438e-05/0.3871, allocations: 11.98 kB / 431.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.3871, allocations: 15.98 kB / 431.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.3873, allocations: 152.5 kB / 432 MB, free: 3.555 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3873, allocations: 0 / 432 MB, free: 3.555 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003094/0.3876, allocations: 51.94 kB / 432 MB, free: 3.504 MB / 334.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.0001945/0.3878, allocations: 107.2 kB / 432.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005159/0.3883, allocations: 207.8 kB / 432.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3883, allocations: 4.125 kB / 432.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.3885, allocations: 116.3 kB / 432.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.3889, allocations: 31.48 kB / 432.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.3901, allocations: 0.7014 MB / 433.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004255/0.3905, allocations: 0.7677 MB / 434 MB, free: 1.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001288/0.3907, allocations: 49.91 kB / 434 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.8e-05/0.3907, allocations: 23.42 kB / 434 MB, free: 1.441 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3907, allocations: 4 kB / 434 MB, free: 1.438 MB / 334.1 MB Notification: Performance of Templates: time 0.006539/0.3973, allocations: 2.157 MB / 436.2 MB, free: 15.28 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SinCosEncoder/SinCosEncoder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.963893030770123]