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.0009412/0.0009412, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009478/0.0009478, allocations: 142.1 kB / 24.89 MB, free: 8.777 MB / 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.9395/0.9395, allocations: 173.4 MB / 201.5 MB, free: 8.754 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.162e-06/1.162e-06, allocations: 0 / 268.5 MB, free: 5.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.618e-05/2.734e-05, allocations: 9.969 kB / 268.5 MB, free: 5.988 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002685/0.002713, allocations: 2.194 MB / 270.7 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.003829, allocations: 0.7085 MB / 271.4 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.003944, allocations: 7.938 kB / 271.4 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.004087, allocations: 47.52 kB / 271.5 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.004242, allocations: 47.53 kB / 271.5 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00022/0.004462, allocations: 107.6 kB / 271.6 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002206/0.004683, allocations: 239.7 kB / 271.8 MB, free: 2.625 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.004842, allocations: 74.62 kB / 271.9 MB, free: 2.551 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001755/0.005017, allocations: 131.7 kB / 272 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.005135, allocations: 91.62 kB / 272.1 MB, free: 2.332 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.005162, allocations: 16 kB / 272.2 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.219e-05/0.005244, allocations: 28 kB / 272.2 MB, free: 2.289 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.522e-05/0.005299, allocations: 59.73 kB / 272.2 MB, free: 2.23 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.576e-05/0.005355, allocations: 71.83 kB / 272.3 MB, free: 2.16 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.005573, allocations: 179.2 kB / 272.5 MB, free: 1.984 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.005575, allocations: 0 / 272.5 MB, free: 1.984 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.005576, allocations: 0 / 272.5 MB, free: 1.984 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.00558, allocations: 0 / 272.5 MB, free: 1.984 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.000453/0.006033, allocations: 444.1 kB / 272.9 MB, free: 1.527 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.006062, allocations: 8.031 kB / 272.9 MB, free: 1.52 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.269e-05/0.006125, allocations: 36.91 kB / 273 MB, free: 1.484 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001864/0.006311, allocations: 189.2 kB / 273.1 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.006334, allocations: 12.88 kB / 273.2 MB, free: 1.262 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.938e-05/0.006363, allocations: 28.36 kB / 273.2 MB, free: 1.234 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002337/0.006597, allocations: 203.2 kB / 273.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.006607, allocations: 4 kB / 273.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.006625, allocations: 8 kB / 273.4 MB, free: 1.004 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.182e-05/0.006647, allocations: 16.44 kB / 273.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.67e-05/0.006743, allocations: 61.45 kB / 273.5 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005806/0.007324, allocations: 0.5714 MB / 274 MB, free: 336 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.007453, allocations: 93.34 kB / 274.1 MB, free: 232 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.57e-05/0.007498, allocations: 40.83 kB / 274.2 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.279e-05/0.007581, allocations: 19.98 kB / 274.2 MB, free: 168 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.007602, allocations: 34.56 kB / 274.2 MB, free: 124 kB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.734e-06/0.007603, allocations: 4 kB / 274.2 MB, free: 120 kB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005299/0.008133, allocations: 372.5 kB / 274.6 MB, free: 15.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.447e-05/0.008158, allocations: 59.34 kB / 274.7 MB, free: 15.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.809e-05/0.008256, allocations: 191.4 kB / 274.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.008269, allocations: 29.7 kB / 274.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.3e-05/0.008322, allocations: 136.4 kB / 275 MB, free: 15.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.008364, allocations: 87.27 kB / 275.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.275e-05/0.008416, allocations: 49.67 kB / 275.1 MB, free: 15.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.441e-05/0.008491, allocations: 330.8 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.595e-05/0.008527, allocations: 23.98 kB / 275.5 MB, free: 14.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.146e-05/0.008578, allocations: 63.39 kB / 275.5 MB, free: 14.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.008678, allocations: 98.12 kB / 275.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.00868, allocations: 4 kB / 275.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001445/0.008825, allocations: 140.7 kB / 275.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.008839, allocations: 7.938 kB / 275.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.008845, allocations: 4 kB / 275.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.988e-06/0.008855, allocations: 0 / 275.8 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.00901, allocations: 55.97 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.045e-06/0.009013, allocations: 4 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.749e-05/0.00906, allocations: 11.94 kB / 275.9 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.009071, allocations: 7.984 kB / 275.9 MB, free: 14.36 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 7.496e-05/0.009146, allocations: 128.5 kB / 276 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.103e-05/0.009177, allocations: 19.98 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001863/0.009363, allocations: 158.2 kB / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.009367, allocations: 4 kB / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.009368, allocations: 0 / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.009374, allocations: 11.92 kB / 276.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004193/0.009794, allocations: 420.6 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.009797, allocations: 4 kB / 276.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.009945, allocations: 51.91 kB / 276.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.00995, allocations: 4 kB / 276.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.009962, allocations: 4 kB / 276.7 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.009966, allocations: 7.938 kB / 276.7 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.009968, allocations: 0 / 276.7 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002368/0.0102, allocations: 301 kB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.941e-05/0.01024, allocations: 23.84 kB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.01026, allocations: 8 kB / 277 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.48e-05/0.01033, allocations: 11.94 kB / 277 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.958e-05/0.01037, allocations: 19.95 kB / 277 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.253e-06/0.01038, allocations: 4 kB / 277 MB, free: 13.13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.976e-05/0.01041, allocations: 59.03 kB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01041, allocations: 0 / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001725/0.01059, allocations: 55.92 kB / 277.1 MB, free: 13.02 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.0001168/0.0107, allocations: 88.36 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000144/0.01085, allocations: 100.7 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.01085, allocations: 4 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.721e-05/0.01092, allocations: 68.69 kB / 277.4 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.0111, allocations: 30.89 kB / 277.4 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007041/0.01181, allocations: 0.508 MB / 277.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.194e-05/0.01186, allocations: 96.23 kB / 278 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.565e-05/0.01193, allocations: 29.92 kB / 278.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.01208, allocations: 75.38 kB / 278.1 MB, free: 11.97 MB / 266.7 MB Notification: Performance of SimCode: time 9.72e-07/0.01208, allocations: 0 / 278.1 MB, free: 11.97 MB / 266.7 MB Notification: Performance of Templates: time 0.004137/0.01622, allocations: 2.016 MB / 280.1 MB, free: 9.984 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 -s gbode -gbm=radauIIA3 -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: 2.749627023935318]