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.001434/0.001434, allocations: 83.89 kB / 21.18 MB, free: 3.391 MB / 18.57 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.0009197/0.0009197, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 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 0.9553/0.9553, allocations: 173.3 MB / 201.1 MB, free: 8.977 MB / 186.7 MB " [Timeout remaining time 179] 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 1.833e-06/1.833e-06, allocations: 0 / 268 MB, free: 6.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.856e-05/3.04e-05, allocations: 10.11 kB / 268 MB, free: 6.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003766/0.003796, allocations: 2.16 MB / 270.1 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.004979, allocations: 0.6931 MB / 270.8 MB, free: 3.426 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.005118, allocations: 7.938 kB / 270.8 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001973/0.005316, allocations: 47.52 kB / 270.9 MB, free: 3.371 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001964/0.005512, allocations: 51.47 kB / 270.9 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002867/0.005799, allocations: 107.7 kB / 271 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002795/0.006078, allocations: 235.6 kB / 271.3 MB, free: 2.984 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.00629, allocations: 76 kB / 271.4 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000218/0.006508, allocations: 135.6 kB / 271.5 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.006653, allocations: 79.77 kB / 271.6 MB, free: 2.699 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.92e-05/0.006692, allocations: 16 kB / 271.6 MB, free: 2.684 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.326e-05/0.006776, allocations: 28 kB / 271.6 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.873e-05/0.006854, allocations: 59.73 kB / 271.7 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.032e-05/0.006935, allocations: 71.77 kB / 271.7 MB, free: 2.527 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002907/0.007225, allocations: 183.2 kB / 271.9 MB, free: 2.348 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.007229, allocations: 0 / 271.9 MB, free: 2.348 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.00723, allocations: 0 / 271.9 MB, free: 2.348 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.473e-06/0.007237, allocations: 0 / 271.9 MB, free: 2.348 MB / 250.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.0007739/0.008011, allocations: 0.5701 MB / 272.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.008054, allocations: 12.03 kB / 272.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.465e-05/0.008139, allocations: 40.75 kB / 272.5 MB, free: 1.691 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002903/0.008429, allocations: 207.9 kB / 272.7 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.008464, allocations: 24.86 kB / 272.8 MB, free: 1.438 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.045e-05/0.008515, allocations: 20.38 kB / 272.8 MB, free: 1.418 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004073/0.008922, allocations: 224.9 kB / 273 MB, free: 1.176 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.008936, allocations: 0 / 273 MB, free: 1.176 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.008959, allocations: 12 kB / 273 MB, free: 1.164 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.99e-05/0.008999, allocations: 12.48 kB / 273 MB, free: 1.152 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.00922, allocations: 90.92 kB / 273.1 MB, free: 1.062 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.0103, allocations: 0.8155 MB / 273.9 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.01053, allocations: 115 kB / 274 MB, free: 80 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.01064, allocations: 58.67 kB / 274.1 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.591e-05/0.01072, allocations: 7.984 kB / 274.1 MB, free: 12 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.675e-05/0.01077, allocations: 41.7 kB / 274.1 MB, free: 15.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.773e-06/0.01077, allocations: 0 / 274.1 MB, free: 15.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009717/0.01175, allocations: 473.3 kB / 274.6 MB, free: 15.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.01178, allocations: 59.41 kB / 274.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001746/0.01196, allocations: 242.8 kB / 274.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.01198, allocations: 25.7 kB / 274.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.01208, allocations: 199.1 kB / 275.1 MB, free: 14.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.184e-05/0.01214, allocations: 87.28 kB / 275.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.729e-05/0.01222, allocations: 55.36 kB / 275.3 MB, free: 14.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.01237, allocations: 0.5001 MB / 275.8 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.296e-05/0.01245, allocations: 31.98 kB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001043/0.01256, allocations: 86.7 kB / 275.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001917/0.01275, allocations: 137.6 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.01275, allocations: 3.984 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000297/0.01305, allocations: 189.3 kB / 276.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.01307, allocations: 4 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.01308, allocations: 0 / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.0131, allocations: 4 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.01333, allocations: 63.89 kB / 276.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.01334, allocations: 0 / 276.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.087e-05/0.01342, allocations: 15.98 kB / 276.3 MB, free: 13.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.01343, allocations: 8.062 kB / 276.3 MB, free: 13.66 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.0001083/0.01354, allocations: 172.5 kB / 276.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.161e-05/0.01359, allocations: 31.86 kB / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003391/0.01393, allocations: 199 kB / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.01394, allocations: 7.984 kB / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.01395, allocations: 0 / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.01395, allocations: 0 / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007519/0.0147, allocations: 0.5559 MB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.01471, allocations: 0 / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.01493, allocations: 55.91 kB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.01494, allocations: 3.984 kB / 277.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.01496, allocations: 8 kB / 277.3 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.01496, allocations: 0 / 277.3 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.01496, allocations: 0 / 277.3 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004917/0.01545, allocations: 405.2 kB / 277.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.01553, allocations: 35.84 kB / 277.8 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.01556, allocations: 11.98 kB / 277.8 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.01566, allocations: 12.16 kB / 277.8 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.719e-05/0.01572, allocations: 23.91 kB / 277.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.01574, allocations: 11.98 kB / 277.8 MB, free: 12.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001061/0.01584, allocations: 173.4 kB / 278 MB, free: 11.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01584, allocations: 0 / 278 MB, free: 11.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003113/0.01615, allocations: 44 kB / 278 MB, free: 11.85 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.0002316/0.01639, allocations: 111.1 kB / 278.1 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002914/0.01668, allocations: 138.7 kB / 278.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.01668, allocations: 4.125 kB / 278.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.01681, allocations: 83.52 kB / 278.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003971/0.01721, allocations: 24 kB / 278.4 MB, free: 11.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.01843, allocations: 0.5916 MB / 279 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.532e-05/0.01851, allocations: 92.3 kB / 279.1 MB, free: 10.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.01861, allocations: 41.89 kB / 279.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.904e-05/0.01868, allocations: 20.5 kB / 279.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of SimCode: time 1.172e-06/0.01868, allocations: 0 / 279.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of Templates: time 0.005978/0.02466, allocations: 1.923 MB / 281 MB, free: 8.777 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] 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","",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.16137124504894]