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.002548/0.002548, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002918/0.002918, allocations: 153.1 kB / 24.27 MB, free: 168 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 1.516/1.516, allocations: 173.3 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] 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.442e-06/1.442e-06, allocations: 0 / 267.3 MB, free: 6.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.271e-05/3.415e-05, allocations: 2.312 kB / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.003825/0.003859, allocations: 2.141 MB / 269.4 MB, free: 4.598 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.005522, allocations: 0.6774 MB / 270.1 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.005677, allocations: 15.88 kB / 270.1 MB, free: 3.902 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002296/0.005907, allocations: 51.45 kB / 270.2 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002195/0.006126, allocations: 39.66 kB / 270.2 MB, free: 3.812 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.006459, allocations: 103.6 kB / 270.3 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.006818, allocations: 239.7 kB / 270.6 MB, free: 3.477 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003875/0.007205, allocations: 79.94 kB / 270.6 MB, free: 3.398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002741/0.007479, allocations: 131.7 kB / 270.8 MB, free: 3.27 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001801/0.007659, allocations: 91.7 kB / 270.9 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.759e-05/0.007707, allocations: 16 kB / 270.9 MB, free: 3.164 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.827e-05/0.007805, allocations: 24 kB / 270.9 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.007924, allocations: 63.73 kB / 271 MB, free: 3.078 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.008053, allocations: 67.77 kB / 271 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004959/0.008549, allocations: 247.1 kB / 271.3 MB, free: 2.77 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.008557, allocations: 3.984 kB / 271.3 MB, free: 2.766 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.008558, allocations: 3.938 kB / 271.3 MB, free: 2.762 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.008567, allocations: 0 / 271.3 MB, free: 2.762 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.001103/0.009669, allocations: 0.5776 MB / 271.9 MB, free: 2.148 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.009718, allocations: 16.02 kB / 271.9 MB, free: 2.133 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.009825, allocations: 44.75 kB / 271.9 MB, free: 2.09 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003778/0.0102, allocations: 203.9 kB / 272.1 MB, free: 1.863 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.542e-05/0.01024, allocations: 20.86 kB / 272.1 MB, free: 1.844 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.328e-05/0.01029, allocations: 24.31 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004789/0.01077, allocations: 236.2 kB / 272.4 MB, free: 1.57 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.01079, allocations: 0 / 272.4 MB, free: 1.57 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.01081, allocations: 16 kB / 272.4 MB, free: 1.555 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.745e-05/0.01085, allocations: 16.48 kB / 272.4 MB, free: 1.539 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004056/0.01126, allocations: 137.8 kB / 272.6 MB, free: 1.402 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.01267, allocations: 0.8508 MB / 273.4 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003661/0.01304, allocations: 151 kB / 273.6 MB, free: 356 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.01323, allocations: 79.64 kB / 273.6 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.021e-05/0.01331, allocations: 8 kB / 273.6 MB, free: 264 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.01334, allocations: 37.77 kB / 273.7 MB, free: 216 kB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.232e-06/0.01334, allocations: 4 kB / 273.7 MB, free: 212 kB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.001372/0.01471, allocations: 0.543 MB / 274.2 MB, free: 15.63 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.01477, allocations: 59.39 kB / 274.3 MB, free: 15.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.01505, allocations: 270.6 kB / 274.5 MB, free: 15.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.01509, allocations: 29.7 kB / 274.6 MB, free: 15.24 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001789/0.01526, allocations: 211.2 kB / 274.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.01537, allocations: 87.23 kB / 274.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.01548, allocations: 63.34 kB / 274.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003084/0.01579, allocations: 0.5118 MB / 275.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.01596, allocations: 55.95 kB / 275.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.01617, allocations: 110.7 kB / 275.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003751/0.01654, allocations: 185.8 kB / 275.8 MB, free: 13.97 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.01654, allocations: 4 kB / 275.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005095/0.01705, allocations: 229.4 kB / 276 MB, free: 13.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.01708, allocations: 8 kB / 276 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.01709, allocations: 3.984 kB / 276 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.01712, allocations: 4 kB / 276 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002795/0.0174, allocations: 55.91 kB / 276.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.01741, allocations: 4.062 kB / 276.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.01752, allocations: 15.98 kB / 276.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.154e-05/0.01754, allocations: 8 kB / 276.1 MB, free: 13.64 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.0001931/0.01774, allocations: 188.5 kB / 276.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.346e-05/0.0178, allocations: 31.86 kB / 276.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005761/0.01838, allocations: 235 kB / 276.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.01838, allocations: 4 kB / 276.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.01838, allocations: 0 / 276.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.01839, allocations: 0 / 276.6 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.01965, allocations: 0.6223 MB / 277.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.01965, allocations: 0 / 277.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003991/0.02005, allocations: 55.91 kB / 277.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.161e-05/0.02007, allocations: 4 kB / 277.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.497e-05/0.0201, allocations: 7.984 kB / 277.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.063e-06/0.02011, allocations: 4 kB / 277.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.02011, allocations: 0 / 277.2 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.02158, allocations: 470.2 kB / 277.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.02173, allocations: 39.83 kB / 277.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.135e-05/0.02178, allocations: 8.031 kB / 277.8 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.022, allocations: 11.94 kB / 277.8 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.0221, allocations: 27.83 kB / 277.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.425e-05/0.02213, allocations: 12 kB / 277.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002377/0.02237, allocations: 185.4 kB / 278 MB, free: 11.67 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.02237, allocations: 0 / 278 MB, free: 11.67 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005333/0.02291, allocations: 48 kB / 278 MB, free: 11.62 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.0002642/0.02317, allocations: 103.2 kB / 278.1 MB, free: 11.51 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007307/0.0239, allocations: 187.5 kB / 278.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.0239, allocations: 0 / 278.3 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000296/0.0242, allocations: 111.5 kB / 278.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.02457, allocations: 26.64 kB / 278.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.02576, allocations: 0.588 MB / 279 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.02596, allocations: 162.7 kB / 279.2 MB, free: 10.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.02608, allocations: 41.91 kB / 279.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.526e-05/0.02615, allocations: 24.5 kB / 279.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02616, allocations: 0 / 279.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of Templates: time 0.006883/0.03304, allocations: 1.917 MB / 281.2 MB, free: 8.422 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","/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.842046584002674]