Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 167.9 kB / 24.99 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.044/1.044, allocations: 177.1 MB / 205.3 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.304e-06/2.304e-06, allocations: 0 / 273 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.461e-05/3.692e-05, allocations: 9.484 kB / 273 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.004108/0.004145, allocations: 2.186 MB / 275.2 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.005565, allocations: 0.7243 MB / 276 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.005719, allocations: 7.938 kB / 276 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.005885, allocations: 51.45 kB / 276 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.006061, allocations: 47.58 kB / 276.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002804/0.006341, allocations: 99.69 kB / 276.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002629/0.006604, allocations: 243.7 kB / 276.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.006788, allocations: 68.02 kB / 276.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.007032, allocations: 147.5 kB / 276.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/0.007151, allocations: 83.69 kB / 276.7 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.104e-05/0.007182, allocations: 20 kB / 276.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.918e-05/0.007261, allocations: 35.98 kB / 276.7 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.029e-05/0.007322, allocations: 51.77 kB / 276.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.315e-05/0.007385, allocations: 71.81 kB / 276.9 MB, free: 14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000255/0.00764, allocations: 191.2 kB / 277.1 MB, free: 13.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.007643, allocations: 0 / 277.1 MB, free: 13.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.007644, allocations: 0 / 277.1 MB, free: 13.81 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.00765, allocations: 0 / 277.1 MB, free: 13.81 MB / 266.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.0006443/0.008294, allocations: 0.57 MB / 277.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.00833, allocations: 12.03 kB / 277.6 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.00848, allocations: 56.73 kB / 277.7 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.008709, allocations: 192.2 kB / 277.9 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.008736, allocations: 12.88 kB / 277.9 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.581e-05/0.008772, allocations: 20.38 kB / 277.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.009078, allocations: 229.3 kB / 278.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.009091, allocations: 192 / 278.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.721e-05/0.009108, allocations: 8.375 kB / 278.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-05/0.00914, allocations: 12.44 kB / 278.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.009378, allocations: 106.8 kB / 278.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008156/0.01019, allocations: 0.8117 MB / 279.1 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/0.01038, allocations: 114.9 kB / 279.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.827e-05/0.01048, allocations: 59.64 kB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.484e-05/0.01054, allocations: 11.98 kB / 279.3 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.01056, allocations: 37.39 kB / 279.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.994e-06/0.01056, allocations: 4 kB / 279.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007069/0.01127, allocations: 476.7 kB / 279.8 MB, free: 10.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.0113, allocations: 55.41 kB / 279.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.01145, allocations: 242.7 kB / 280 MB, free: 10.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.01147, allocations: 29.7 kB / 280.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.707e-05/0.01155, allocations: 203.1 kB / 280.3 MB, free: 10.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.506e-05/0.0116, allocations: 79.34 kB / 280.4 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-05/0.01166, allocations: 59.3 kB / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.01178, allocations: 0.4962 MB / 280.9 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.339e-05/0.01185, allocations: 39.97 kB / 280.9 MB, free: 9.656 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.26e-05/0.01193, allocations: 90.66 kB / 281 MB, free: 9.551 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.01208, allocations: 125.7 kB / 281.2 MB, free: 9.414 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.01209, allocations: 7.875 kB / 281.2 MB, free: 9.406 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002229/0.01231, allocations: 185.4 kB / 281.3 MB, free: 9.219 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.01232, allocations: 10.59 kB / 281.4 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.01233, allocations: 4 kB / 281.4 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.01235, allocations: 0 / 281.4 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.01253, allocations: 59.89 kB / 281.4 MB, free: 9.148 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.01253, allocations: 4.062 kB / 281.4 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.658e-05/0.01259, allocations: 15.98 kB / 281.4 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.0126, allocations: 12 kB / 281.5 MB, free: 9.117 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.512e-05/0.0127, allocations: 168.5 kB / 281.6 MB, free: 8.941 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.634e-05/0.01273, allocations: 31.8 kB / 281.6 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002646/0.013, allocations: 195.1 kB / 281.8 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.013, allocations: 4 kB / 281.8 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.01301, allocations: 0 / 281.8 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.01301, allocations: 3.984 kB / 281.8 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00056/0.01357, allocations: 0.5639 MB / 282.4 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.01358, allocations: 0 / 282.4 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000158/0.01373, allocations: 55.97 kB / 282.5 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.648e-05/0.01375, allocations: 0 / 282.5 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.01377, allocations: 8 kB / 282.5 MB, free: 8.035 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.01378, allocations: 0 / 282.5 MB, free: 8.035 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.01378, allocations: 11.98 kB / 282.5 MB, free: 8.023 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003907/0.01417, allocations: 396.8 kB / 282.9 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.023e-05/0.01422, allocations: 31.88 kB / 282.9 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.01425, allocations: 12 kB / 282.9 MB, free: 7.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.019e-05/0.01433, allocations: 11.98 kB / 282.9 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.916e-05/0.01439, allocations: 19.97 kB / 282.9 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.0144, allocations: 4 kB / 282.9 MB, free: 7.531 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.932e-05/0.01449, allocations: 177.4 kB / 283.1 MB, free: 7.359 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01449, allocations: 0 / 283.1 MB, free: 7.359 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003087/0.0148, allocations: 47.94 kB / 283.2 MB, free: 7.312 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.0001966/0.015, allocations: 111.2 kB / 283.3 MB, free: 7.195 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000244/0.01524, allocations: 143.9 kB / 283.4 MB, free: 7.051 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.01524, allocations: 0 / 283.4 MB, free: 7.051 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.96e-05/0.01533, allocations: 75.59 kB / 283.5 MB, free: 6.973 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.01561, allocations: 31.92 kB / 283.5 MB, free: 6.941 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.01665, allocations: 0.5772 MB / 284.1 MB, free: 6.336 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.869e-05/0.01671, allocations: 88.3 kB / 284.2 MB, free: 6.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.2e-05/0.01679, allocations: 41.91 kB / 284.2 MB, free: 6.188 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.592e-05/0.01684, allocations: 28.48 kB / 284.3 MB, free: 6.16 MB / 266.7 MB Notification: Performance of SimCode: time 1.202e-06/0.01684, allocations: 0 / 284.3 MB, free: 6.16 MB / 266.7 MB Notification: Performance of Templates: time 0.004664/0.02151, allocations: 1.866 MB / 286.1 MB, free: 4.301 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.310166882816702]