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.0008402/0.0008402, allocations: 84 kB / 21.43 MB, free: 3.129 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.003807/0.003807, allocations: 145.8 kB / 24.68 MB, free: 9.426 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.8778/0.8778, allocations: 173.4 MB / 201.2 MB, free: 9.434 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 2.154e-06/2.154e-06, allocations: 0 / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.868e-05/3.084e-05, allocations: 2.281 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002472/0.002503, allocations: 2.092 MB / 321.8 MB, free: 3.738 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.003526, allocations: 0.6621 MB / 322.4 MB, free: 3.074 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.003665, allocations: 7.938 kB / 322.4 MB, free: 3.066 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.003839, allocations: 51.45 kB / 322.5 MB, free: 3.016 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.004041, allocations: 51.47 kB / 322.5 MB, free: 2.965 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.004327, allocations: 99.73 kB / 322.6 MB, free: 2.867 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.004571, allocations: 239.6 kB / 322.9 MB, free: 2.633 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.004753, allocations: 83.98 kB / 323 MB, free: 2.551 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.004933, allocations: 131.6 kB / 323.1 MB, free: 2.422 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.005069, allocations: 83.75 kB / 323.2 MB, free: 2.34 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.438e-05/0.005103, allocations: 16 kB / 323.2 MB, free: 2.324 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.566e-05/0.005189, allocations: 28 kB / 323.2 MB, free: 2.297 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.225e-05/0.005261, allocations: 55.75 kB / 323.3 MB, free: 2.242 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.454e-05/0.005326, allocations: 75.75 kB / 323.3 MB, free: 2.168 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002944/0.00562, allocations: 247.1 kB / 323.6 MB, free: 1.926 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.005624, allocations: 0 / 323.6 MB, free: 1.926 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.005626, allocations: 0 / 323.6 MB, free: 1.926 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.005632, allocations: 4 kB / 323.6 MB, free: 1.922 MB / 282.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.0007193/0.006351, allocations: 485.5 kB / 324.1 MB, free: 1.414 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.006389, allocations: 8.031 kB / 324.1 MB, free: 1.406 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.612e-05/0.006445, allocations: 28.75 kB / 324.1 MB, free: 1.379 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.00668, allocations: 201.9 kB / 324.3 MB, free: 1.156 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.006701, allocations: 12.88 kB / 324.3 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.794e-05/0.006739, allocations: 32.31 kB / 324.3 MB, free: 1.113 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/0.007072, allocations: 259.7 kB / 324.6 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.007087, allocations: 0 / 324.6 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.028e-05/0.007108, allocations: 12 kB / 324.6 MB, free: 0.832 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/0.007135, allocations: 8.5 kB / 324.6 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002681/0.007403, allocations: 189.8 kB / 324.8 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008141/0.008217, allocations: 0.7055 MB / 325.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/0.008468, allocations: 166.5 kB / 325.7 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.008585, allocations: 100.7 kB / 325.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.89e-05/0.008654, allocations: 8 kB / 325.8 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.008677, allocations: 34.94 kB / 325.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.008678, allocations: 0 / 325.8 MB, free: 15.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009672/0.009646, allocations: 0.6522 MB / 326.5 MB, free: 14.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.009682, allocations: 55.41 kB / 326.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.009817, allocations: 187.8 kB / 326.7 MB, free: 14.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.009834, allocations: 37.64 kB / 326.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.009908, allocations: 152.4 kB / 326.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.489e-05/0.009953, allocations: 83.3 kB / 327 MB, free: 14.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.197e-05/0.01001, allocations: 45.7 kB / 327 MB, free: 14.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.961e-05/0.0101, allocations: 338.8 kB / 327.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.01023, allocations: 87.94 kB / 327.4 MB, free: 13.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.01036, allocations: 119.4 kB / 327.5 MB, free: 13.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002568/0.01061, allocations: 222.1 kB / 327.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.01062, allocations: 3.938 kB / 327.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003226/0.01094, allocations: 277.4 kB / 328 MB, free: 13.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.01096, allocations: 4 kB / 328 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.01097, allocations: 4 kB / 328 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.01098, allocations: 7.984 kB / 328.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.01116, allocations: 59.91 kB / 328.1 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.01117, allocations: 3.984 kB / 328.1 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.047e-05/0.01123, allocations: 15.98 kB / 328.1 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.01125, allocations: 16.05 kB / 328.1 MB, free: 13.12 MB / 298.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.0001046/0.01135, allocations: 145.7 kB / 328.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.949e-05/0.01138, allocations: 23.86 kB / 328.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003816/0.01176, allocations: 290.9 kB / 328.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.01177, allocations: 4 kB / 328.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.01177, allocations: 3.938 kB / 328.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.01177, allocations: 0 / 328.6 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000657/0.01243, allocations: 0.5932 MB / 329.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.01243, allocations: 0 / 329.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.01259, allocations: 51.97 kB / 329.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.0126, allocations: 7.938 kB / 329.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.01261, allocations: 7.938 kB / 329.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.01262, allocations: 4 kB / 329.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.01262, allocations: 0 / 329.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000489/0.01311, allocations: 486.5 kB / 329.7 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.024e-05/0.01317, allocations: 43.88 kB / 329.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.01319, allocations: 4 kB / 329.8 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.604e-05/0.01327, allocations: 15.98 kB / 329.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.776e-05/0.01331, allocations: 15.91 kB / 329.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.01333, allocations: 15.98 kB / 329.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.756e-05/0.01341, allocations: 137.5 kB / 330 MB, free: 11.22 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01341, allocations: 0 / 330 MB, free: 11.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002191/0.01362, allocations: 40 kB / 330 MB, free: 11.18 MB / 298.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.0001584/0.01378, allocations: 115.1 kB / 330.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003198/0.0141, allocations: 211.7 kB / 330.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.0141, allocations: 0 / 330.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.01423, allocations: 107.9 kB / 330.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002542/0.01448, allocations: 24.17 kB / 330.5 MB, free: 10.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008048/0.01529, allocations: 0.6432 MB / 331.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001036/0.01539, allocations: 158.8 kB / 331.3 MB, free: 9.871 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.791e-05/0.01545, allocations: 28.48 kB / 331.3 MB, free: 9.844 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01545, allocations: 4 kB / 331.3 MB, free: 9.84 MB / 298.7 MB Notification: Performance of Templates: time 0.003574/0.01903, allocations: 2.902 MB / 334.2 MB, free: 6.934 MB / 298.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=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.459503575228155]