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.001114/0.001114, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.001101/0.001101, allocations: 150.2 kB / 24.81 MB, free: 9.285 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.9788/0.9788, allocations: 173.3 MB / 201.4 MB, free: 9.191 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.733e-06/1.733e-06, allocations: 0 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.33e-05/2.504e-05, allocations: 2.312 kB / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002991/0.003016, allocations: 2.156 MB / 270.5 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.00423, allocations: 0.6815 MB / 271.2 MB, free: 3.332 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.004411, allocations: 11.88 kB / 271.2 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001771/0.004588, allocations: 43.52 kB / 271.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002038/0.004791, allocations: 47.53 kB / 271.3 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.005103, allocations: 111.7 kB / 271.4 MB, free: 3.121 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003193/0.005422, allocations: 243.6 kB / 271.7 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.005616, allocations: 68.02 kB / 271.7 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002337/0.00585, allocations: 131.7 kB / 271.9 MB, free: 2.688 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.00597, allocations: 83.7 kB / 272 MB, free: 2.605 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.935e-05/0.006, allocations: 20 kB / 272 MB, free: 2.586 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.111e-05/0.006081, allocations: 27.98 kB / 272 MB, free: 2.559 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.546e-05/0.006146, allocations: 55.81 kB / 272.1 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.386e-05/0.00621, allocations: 67.77 kB / 272.1 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.006458, allocations: 191.2 kB / 272.3 MB, free: 2.25 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.00646, allocations: 4 kB / 272.3 MB, free: 2.246 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.006462, allocations: 0 / 272.3 MB, free: 2.246 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.006466, allocations: 0 / 272.3 MB, free: 2.246 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.000587/0.007053, allocations: 0.5506 MB / 272.9 MB, free: 1.66 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.007095, allocations: 12.03 kB / 272.9 MB, free: 1.648 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.424e-05/0.007159, allocations: 44.75 kB / 272.9 MB, free: 1.605 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.007379, allocations: 200 kB / 273.1 MB, free: 1.383 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.007406, allocations: 24.8 kB / 273.1 MB, free: 1.359 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.735e-05/0.007444, allocations: 28.36 kB / 273.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.007744, allocations: 212.9 kB / 273.4 MB, free: 1.102 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.007756, allocations: 0 / 273.4 MB, free: 1.102 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.007772, allocations: 4 kB / 273.4 MB, free: 1.098 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.373e-05/0.007806, allocations: 16.48 kB / 273.4 MB, free: 1.082 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001246/0.00793, allocations: 81.36 kB / 273.5 MB, free: 1 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007829/0.008713, allocations: 0.7615 MB / 274.2 MB, free: 204 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001575/0.008871, allocations: 107 kB / 274.3 MB, free: 84 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.866e-05/0.008919, allocations: 46.47 kB / 274.4 MB, free: 36 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-05/0.008981, allocations: 12 kB / 274.4 MB, free: 24 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.009014, allocations: 37.39 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.009015, allocations: 0 / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008872/0.009903, allocations: 413.9 kB / 274.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.00993, allocations: 63.34 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.01005, allocations: 234.7 kB / 275.1 MB, free: 15.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.01007, allocations: 33.7 kB / 275.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.337e-05/0.01015, allocations: 199.1 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.745e-05/0.0102, allocations: 91.25 kB / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.066e-05/0.01026, allocations: 51.34 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.01038, allocations: 0.5079 MB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.311e-05/0.01043, allocations: 19.98 kB / 276 MB, free: 14.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.8e-05/0.01049, allocations: 78.69 kB / 276.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.01061, allocations: 137.8 kB / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.01061, allocations: 0 / 276.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000182/0.0108, allocations: 169.4 kB / 276.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.01081, allocations: 6.969 kB / 276.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.01082, allocations: 0 / 276.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.01083, allocations: 4 kB / 276.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.01098, allocations: 51.91 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.496e-06/0.01099, allocations: 0 / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.877e-05/0.01103, allocations: 12.05 kB / 276.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.01105, allocations: 19.94 kB / 276.5 MB, free: 13.77 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.228e-05/0.01114, allocations: 164.5 kB / 276.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.01117, allocations: 27.91 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002397/0.01141, allocations: 194.9 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.01141, allocations: 4 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.01142, allocations: 3.984 kB / 276.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.01142, allocations: 0 / 276.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004844/0.01191, allocations: 0.4979 MB / 277.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.01191, allocations: 0 / 277.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001426/0.01205, allocations: 55.91 kB / 277.4 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.01206, allocations: 4 kB / 277.4 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.01207, allocations: 4 kB / 277.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.01207, allocations: 4 kB / 277.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.01207, allocations: 0 / 277.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002891/0.01236, allocations: 377.3 kB / 277.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.699e-05/0.01241, allocations: 31.84 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.01243, allocations: 8 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.417e-05/0.01249, allocations: 12.02 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.01254, allocations: 19.91 kB / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.01255, allocations: 8.125 kB / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.768e-05/0.01261, allocations: 177.3 kB / 278.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01261, allocations: 0 / 278.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000205/0.01282, allocations: 47.94 kB / 278.1 MB, free: 12.08 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.0001382/0.01296, allocations: 111.1 kB / 278.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001805/0.01314, allocations: 126.5 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.01314, allocations: 4.125 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.662e-05/0.01322, allocations: 75.52 kB / 278.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002438/0.01346, allocations: 31.92 kB / 278.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008417/0.0143, allocations: 0.5761 MB / 279 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.343e-05/0.01437, allocations: 92.3 kB / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.211e-05/0.01443, allocations: 25.92 kB / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.015e-05/0.01452, allocations: 98.2 kB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01452, allocations: 3.938 kB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of Templates: time 0.004382/0.0189, allocations: 2.07 MB / 281.3 MB, free: 8.84 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: 2.843481460120529]