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.001647/0.001647, allocations: 81.97 kB / 22.21 MB, free: 2.285 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.001604/0.001604, allocations: 164.8 kB / 25.61 MB, free: 8.91 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.9594/0.9594, allocations: 177.1 MB / 206.1 MB, free: 4.504 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 1.553e-06/1.553e-06, allocations: 0 / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.856e-05/2.011e-05, allocations: 6.25 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.005941/0.005961, allocations: 2.16 MB / 276.3 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.007062, allocations: 0.7271 MB / 277.1 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.007191, allocations: 7.938 kB / 277.1 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003177/0.01037, allocations: 48.89 kB / 277.1 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.01054, allocations: 43.59 kB / 277.2 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000258/0.01079, allocations: 108.7 kB / 277.3 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000253/0.01105, allocations: 251.5 kB / 277.5 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.01122, allocations: 72.02 kB / 277.6 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.01144, allocations: 135.6 kB / 277.7 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.01156, allocations: 87.75 kB / 277.8 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.959e-05/0.01159, allocations: 16 kB / 277.8 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.662e-05/0.01167, allocations: 31.98 kB / 277.9 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.858e-05/0.01173, allocations: 55.77 kB / 277.9 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.274e-05/0.01179, allocations: 71.75 kB / 278 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002279/0.01202, allocations: 195.2 kB / 278.2 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.01202, allocations: 0 / 278.2 MB, free: 452 kB / 250.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.01202, allocations: 4 kB / 278.2 MB, free: 448 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.01203, allocations: 0 / 278.2 MB, free: 448 kB / 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.0005892/0.01261, allocations: 0.5545 MB / 278.7 MB, free: 15.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.01265, allocations: 12.03 kB / 278.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.01277, allocations: 44.75 kB / 278.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.01297, allocations: 204 kB / 279 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.013, allocations: 16.88 kB / 279 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.01303, allocations: 24.38 kB / 279 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003288/0.01632, allocations: 205.3 kB / 279.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.01633, allocations: 192 / 279.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.01635, allocations: 8.375 kB / 279.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.01638, allocations: 12.44 kB / 279.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001295/0.01651, allocations: 81.36 kB / 279.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000731/0.01724, allocations: 0.7809 MB / 280.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001586/0.0174, allocations: 95 kB / 280.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.576e-05/0.01746, allocations: 59.62 kB / 280.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.289e-05/0.0175, allocations: 11.98 kB / 280.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.01753, allocations: 33.39 kB / 280.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.252e-06/0.01753, allocations: 0 / 280.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007466/0.01827, allocations: 419 kB / 280.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.0183, allocations: 51.41 kB / 280.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.01844, allocations: 242.6 kB / 281 MB, free: 13.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.01845, allocations: 29.7 kB / 281 MB, free: 13.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.048e-05/0.01854, allocations: 211 kB / 281.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.195e-05/0.0186, allocations: 83.27 kB / 281.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.082e-05/0.01867, allocations: 59.33 kB / 281.4 MB, free: 13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.01879, allocations: 0.5001 MB / 281.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.932e-05/0.01884, allocations: 27.97 kB / 281.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.858e-05/0.01892, allocations: 79.45 kB / 282 MB, free: 12.37 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003143/0.02206, allocations: 117.6 kB / 282.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.02206, allocations: 0 / 282.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002302/0.02229, allocations: 177.4 kB / 282.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.02231, allocations: 7.938 kB / 282.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.02231, allocations: 3.984 kB / 282.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.436e-06/0.02232, allocations: 4 kB / 282.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.0225, allocations: 51.91 kB / 282.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.0225, allocations: 4 kB / 282.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.459e-05/0.02257, allocations: 8 kB / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.02258, allocations: 11.98 kB / 282.4 MB, free: 11.97 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 9.477e-05/0.02267, allocations: 168.5 kB / 282.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.566e-05/0.02272, allocations: 31.86 kB / 282.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002552/0.02298, allocations: 196.3 kB / 282.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.02298, allocations: 0 / 282.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.02298, allocations: 4 kB / 282.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.02299, allocations: 0 / 282.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005378/0.02352, allocations: 498.1 kB / 283.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.02353, allocations: 3.938 kB / 283.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.0237, allocations: 55.91 kB / 283.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.02371, allocations: 4.031 kB / 283.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.02372, allocations: 11.98 kB / 283.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.02373, allocations: 4 kB / 283.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.02373, allocations: 0 / 283.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003308/0.02406, allocations: 373.1 kB / 283.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.142e-05/0.02411, allocations: 35.83 kB / 283.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.02413, allocations: 8 kB / 283.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.598e-05/0.02422, allocations: 4 kB / 283.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.387e-05/0.02426, allocations: 27.89 kB / 283.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.02428, allocations: 8.125 kB / 283.8 MB, free: 10.49 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.894e-05/0.02436, allocations: 177.3 kB / 283.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02436, allocations: 0 / 283.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002683/0.02462, allocations: 44 kB / 284 MB, free: 10.27 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.0001066/0.02473, allocations: 103.2 kB / 284.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001873/0.02492, allocations: 127 kB / 284.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.02492, allocations: 0 / 284.2 MB, free: 10.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.268e-05/0.02501, allocations: 79.5 kB / 284.3 MB, free: 9.957 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002753/0.02529, allocations: 39.91 kB / 284.3 MB, free: 9.918 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000809/0.0261, allocations: 0.553 MB / 284.9 MB, free: 9.336 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.296e-05/0.02616, allocations: 92.16 kB / 285 MB, free: 9.227 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.704e-05/0.02624, allocations: 29.94 kB / 285 MB, free: 9.195 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.02634, allocations: 102.2 kB / 285.1 MB, free: 9.094 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.02634, allocations: 0 / 285.1 MB, free: 9.094 MB / 266.7 MB Notification: Performance of Templates: time 0.01062/0.03696, allocations: 2.064 MB / 287.2 MB, free: 7.039 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.0314206066541374]