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.001047/0.001047, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001551/0.002597, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0009863/0.0009863, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001382/0.002368, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9764/0.9764, allocations: 173.4 MB / 185.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09936/1.076, allocations: 52.49 MB / 238.3 MB, free: 4.43 MB / 234.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.483e-06/1.483e-06, allocations: 3.938 kB / 239.6 MB, free: 3.16 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.425e-05/1.573e-05, allocations: 2.312 kB / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.002394/0.00241, allocations: 2.191 MB / 241.8 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009933/0.003403, allocations: 0.7162 MB / 242.5 MB, free: 240 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.003537, allocations: 7.938 kB / 242.5 MB, free: 232 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.00366, allocations: 51.45 kB / 242.5 MB, free: 180 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.991e-05/0.00376, allocations: 43.58 kB / 242.6 MB, free: 136 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.003963, allocations: 103.7 kB / 242.7 MB, free: 32 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002362/0.0042, allocations: 235.6 kB / 242.9 MB, free: 15.8 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.004357, allocations: 82.62 kB / 243 MB, free: 15.72 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.004552, allocations: 151.6 kB / 243.1 MB, free: 15.57 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.004668, allocations: 79.77 kB / 243.2 MB, free: 15.49 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.826e-05/0.004696, allocations: 19.94 kB / 243.2 MB, free: 15.47 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.989e-05/0.004786, allocations: 31.98 kB / 243.3 MB, free: 15.44 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.725e-05/0.004833, allocations: 39.88 kB / 243.3 MB, free: 15.4 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.067e-05/0.004884, allocations: 51.81 kB / 243.3 MB, free: 15.35 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.005095, allocations: 171.2 kB / 243.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.268e-05/0.005108, allocations: 0 / 243.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.005109, allocations: 0 / 243.5 MB, free: 15.18 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.005122, allocations: 0 / 243.5 MB, free: 15.18 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.000571/0.005693, allocations: 491.7 kB / 244 MB, free: 14.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.005726, allocations: 12.03 kB / 244 MB, free: 14.67 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.882e-05/0.005775, allocations: 32.91 kB / 244 MB, free: 14.64 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.005969, allocations: 185.1 kB / 244.2 MB, free: 14.43 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.005994, allocations: 16.88 kB / 244.2 MB, free: 14.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.837e-05/0.006023, allocations: 24.31 kB / 244.3 MB, free: 14.39 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000256/0.006279, allocations: 215.2 kB / 244.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.00629, allocations: 3.938 kB / 244.5 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.006305, allocations: 8 kB / 244.5 MB, free: 14.15 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.426e-05/0.006329, allocations: 8.5 kB / 244.5 MB, free: 14.14 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.006435, allocations: 73.39 kB / 244.6 MB, free: 14.07 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005726/0.007007, allocations: 0.5519 MB / 245.1 MB, free: 13.49 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001278/0.007135, allocations: 97.28 kB / 245.2 MB, free: 13.38 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.529e-05/0.007181, allocations: 43.64 kB / 245.3 MB, free: 13.34 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.75e-05/0.007268, allocations: 16 kB / 245.3 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.881e-05/0.007287, allocations: 30.56 kB / 245.3 MB, free: 13.29 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.583e-06/0.007288, allocations: 0 / 245.3 MB, free: 13.29 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005155/0.007804, allocations: 372.8 kB / 245.7 MB, free: 12.89 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.007835, allocations: 63.34 kB / 245.7 MB, free: 12.81 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.00794, allocations: 187.5 kB / 245.9 MB, free: 12.61 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.007956, allocations: 37.69 kB / 245.9 MB, free: 12.57 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.124e-05/0.008017, allocations: 140.4 kB / 246.1 MB, free: 12.43 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/0.008056, allocations: 79.28 kB / 246.2 MB, free: 12.35 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.008108, allocations: 57.66 kB / 246.2 MB, free: 12.29 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003516/0.00846, allocations: 330.8 kB / 246.5 MB, free: 11.96 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.416e-05/0.008494, allocations: 16 kB / 246.6 MB, free: 11.94 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.358e-05/0.008548, allocations: 71.31 kB / 246.6 MB, free: 11.86 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.724e-05/0.008645, allocations: 113.3 kB / 246.7 MB, free: 11.74 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.008646, allocations: 0 / 246.7 MB, free: 11.74 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001335/0.008779, allocations: 137.5 kB / 246.9 MB, free: 11.6 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.008791, allocations: 4 kB / 246.9 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.008795, allocations: 0 / 246.9 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.247e-06/0.008805, allocations: 4 kB / 246.9 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.008961, allocations: 55.91 kB / 246.9 MB, free: 11.54 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.196e-06/0.008964, allocations: 4 kB / 246.9 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.645e-05/0.009011, allocations: 15.92 kB / 246.9 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.009022, allocations: 8 kB / 247 MB, free: 11.51 MB / 250.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.953e-05/0.009102, allocations: 128.7 kB / 247.1 MB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.009129, allocations: 15.98 kB / 247.1 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.009319, allocations: 154.3 kB / 247.2 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.009322, allocations: 4 kB / 247.3 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.009323, allocations: 0 / 247.3 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.009328, allocations: 3.938 kB / 247.3 MB, free: 11.19 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000372/0.0097, allocations: 436.4 kB / 247.7 MB, free: 10.74 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.009701, allocations: 0 / 247.7 MB, free: 10.74 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.009844, allocations: 56 kB / 247.7 MB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.702e-05/0.009881, allocations: 31.84 kB / 247.8 MB, free: 10.65 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.009883, allocations: 0 / 247.8 MB, free: 10.65 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.009896, allocations: 11.94 kB / 247.8 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.009899, allocations: 7.922 kB / 247.8 MB, free: 10.63 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.009901, allocations: 0 / 247.8 MB, free: 10.63 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.01012, allocations: 293 kB / 248.1 MB, free: 10.32 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.941e-05/0.01014, allocations: 8 kB / 248.1 MB, free: 10.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.856e-05/0.0102, allocations: 8.062 kB / 248.1 MB, free: 10.31 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.01024, allocations: 19.95 kB / 248.1 MB, free: 10.29 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-06/0.01025, allocations: 16 kB / 248.1 MB, free: 10.27 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.606e-05/0.01029, allocations: 47.11 kB / 248.2 MB, free: 10.23 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01029, allocations: 0 / 248.2 MB, free: 10.23 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001617/0.01045, allocations: 44 kB / 248.2 MB, free: 10.18 MB / 250.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 9.882e-05/0.01055, allocations: 96.28 kB / 248.3 MB, free: 10.08 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000141/0.01069, allocations: 111.7 kB / 248.4 MB, free: 9.973 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/0.0107, allocations: 4 kB / 248.4 MB, free: 9.969 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.825e-05/0.01076, allocations: 64.88 kB / 248.5 MB, free: 9.902 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001778/0.01093, allocations: 47.98 kB / 248.5 MB, free: 9.855 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.01219, allocations: 492 kB / 249 MB, free: 9.344 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.896e-05/0.01224, allocations: 92.3 kB / 249.1 MB, free: 9.234 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.145e-05/0.0123, allocations: 33.92 kB / 249.1 MB, free: 9.203 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.085e-05/0.01239, allocations: 79.36 kB / 249.2 MB, free: 9.125 MB / 250.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01239, allocations: 0 / 249.2 MB, free: 9.125 MB / 250.7 MB Notification: Performance of Templates: time 0.003642/0.01603, allocations: 2.013 MB / 251.2 MB, free: 7.141 MB / 250.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 -ignoreHideResult -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.4739605085924268]