Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001011/0.001011, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001158/0.001158, allocations: 160.2 kB / 24.91 MB, free: 8.758 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.013/1.013, allocations: 177 MB / 205.2 MB, free: 5.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.SinCosEncoder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 3.938 kB / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.617e-05/2.793e-05, allocations: 2.312 kB / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SinCosEncoder): time 0.00312/0.003148, allocations: 2.208 MB / 275.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.004402, allocations: 0.7474 MB / 276.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.004543, allocations: 7.938 kB / 276.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.00473, allocations: 55.45 kB / 276.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.004904, allocations: 39.59 kB / 276.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.005126, allocations: 103.7 kB / 276.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002445/0.00537, allocations: 243.6 kB / 276.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.005622, allocations: 82.61 kB / 276.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002356/0.005858, allocations: 135.6 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.005985, allocations: 83.77 kB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3e-05/0.006015, allocations: 16 kB / 277.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.00612, allocations: 39.92 kB / 277.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.566e-05/0.006186, allocations: 59.75 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.86e-05/0.006244, allocations: 71.77 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002434/0.006488, allocations: 183.2 kB / 277.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.00649, allocations: 0 / 277.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.006492, allocations: 3.984 kB / 277.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.006498, allocations: 0 / 277.5 MB, free: 13.09 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.0005622/0.00706, allocations: 444.1 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.007097, allocations: 15.98 kB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.007231, allocations: 40.91 kB / 278 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.007452, allocations: 189.3 kB / 278.2 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.007478, allocations: 16.88 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.973e-05/0.007508, allocations: 16.38 kB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/0.00776, allocations: 207.7 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.007774, allocations: 192 / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.00779, allocations: 8.375 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-05/0.007822, allocations: 20.38 kB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001025/0.007925, allocations: 69.45 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006158/0.00854, allocations: 0.5557 MB / 279 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.008685, allocations: 101.3 kB / 279.1 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.807e-05/0.008733, allocations: 40.84 kB / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.828e-05/0.008822, allocations: 15.98 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.00885, allocations: 34.56 kB / 279.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.773e-06/0.008851, allocations: 4 kB / 279.2 MB, free: 11.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005932/0.009445, allocations: 376.8 kB / 279.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.009473, allocations: 51.41 kB / 279.7 MB, free: 10.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.009583, allocations: 187.5 kB / 279.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.009598, allocations: 29.7 kB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.412e-05/0.009662, allocations: 140.4 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.792e-05/0.00971, allocations: 87.25 kB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.425e-05/0.009765, allocations: 53.62 kB / 280.1 MB, free: 10.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.009862, allocations: 334.7 kB / 280.5 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.761e-05/0.0099, allocations: 31.98 kB / 280.5 MB, free: 9.871 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.528e-05/0.009955, allocations: 55.39 kB / 280.6 MB, free: 9.805 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.01006, allocations: 106.1 kB / 280.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.01007, allocations: 0 / 280.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001466/0.01021, allocations: 134.4 kB / 280.8 MB, free: 9.551 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.01023, allocations: 4 kB / 280.8 MB, free: 9.547 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.01023, allocations: 4 kB / 280.8 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.01024, allocations: 0 / 280.8 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.01041, allocations: 59.97 kB / 280.9 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.01041, allocations: 0 / 280.9 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.513e-05/0.01047, allocations: 11.98 kB / 280.9 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.01048, allocations: 12 kB / 280.9 MB, free: 9.461 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 8.337e-05/0.01056, allocations: 120.5 kB / 281 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/0.0106, allocations: 19.98 kB / 281 MB, free: 9.312 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001941/0.01079, allocations: 154.3 kB / 281.2 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.0108, allocations: 4 kB / 281.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.0108, allocations: 0 / 281.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.0108, allocations: 4 kB / 281.2 MB, free: 9.148 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004155/0.01122, allocations: 432.4 kB / 281.6 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.01122, allocations: 0 / 281.6 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001693/0.01139, allocations: 59.97 kB / 281.7 MB, free: 8.641 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.01139, allocations: 0 / 281.7 MB, free: 8.641 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.01141, allocations: 11.94 kB / 281.7 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.01141, allocations: 0 / 281.7 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.01141, allocations: 0 / 281.7 MB, free: 8.629 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002572/0.01167, allocations: 297 kB / 282 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.703e-05/0.01171, allocations: 27.83 kB / 282 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.01172, allocations: 11.98 kB / 282 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.073e-05/0.01179, allocations: 8 kB / 282 MB, free: 8.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.855e-05/0.01183, allocations: 19.97 kB / 282 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.146e-06/0.01184, allocations: 3.938 kB / 282 MB, free: 8.246 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.234e-05/0.01188, allocations: 59.03 kB / 282.1 MB, free: 8.188 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01188, allocations: 0 / 282.1 MB, free: 8.188 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001717/0.01206, allocations: 51.94 kB / 282.1 MB, free: 8.137 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.000129/0.01219, allocations: 84.36 kB / 282.2 MB, free: 8.043 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.01234, allocations: 116.7 kB / 282.3 MB, free: 7.926 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.01235, allocations: 4 kB / 282.3 MB, free: 7.922 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.688e-05/0.01242, allocations: 68.69 kB / 282.4 MB, free: 7.852 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001938/0.01261, allocations: 26.91 kB / 282.4 MB, free: 7.828 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007623/0.01337, allocations: 0.5002 MB / 282.9 MB, free: 7.301 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.966e-05/0.01343, allocations: 92.3 kB / 283 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.932e-05/0.01349, allocations: 33.86 kB / 283.1 MB, free: 7.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.967e-05/0.01358, allocations: 83.36 kB / 283.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01358, allocations: 0 / 283.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of Templates: time 0.004192/0.01777, allocations: 1.952 MB / 285.1 MB, free: 5.156 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.sim & ./Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 2.9924859683960676]