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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.SinCosEncoder,tolerance=1e-05,outputFormat="mat",numberOfIntervals=40000,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=40000,variableFilter="time|integrator.y|der1.y|cosB.phi|cosBminus.phi|sinA.phi|sinAminus.phi",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001452/0.001452, allocations: 200.1 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001246/0.001246, allocations: 94.33 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.177e-06/9.157e-06, allocations: 0 / 343.1 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1396, allocations: 51.48 MB / 394.6 MB, free: 5.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2933/0.433, allocations: 78.47 MB / 473.1 MB, free: 13.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.4333, allocations: 70.52 kB / 473.2 MB, free: 13.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01184/0.4451, allocations: 4.151 MB / 477.3 MB, free: 11.31 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.4452, allocations: 8 kB / 477.3 MB, free: 11.3 MB / 346.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.0006196/0.4458, allocations: 0.5085 MB / 477.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.4459, allocations: 12.03 kB / 477.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.446, allocations: 23.72 kB / 477.9 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003216/0.4463, allocations: 257.4 kB / 478.1 MB, free: 10.51 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.4464, allocations: 8 kB / 478.1 MB, free: 10.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/0.4464, allocations: 16.83 kB / 478.1 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002471/0.4467, allocations: 136.9 kB / 478.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003096/0.447, allocations: 207.4 kB / 478.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.447, allocations: 0.8438 kB / 478.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.447, allocations: 7.906 kB / 478.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.657e-05/0.4471, allocations: 9.141 kB / 478.5 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.4482, allocations: 0.7659 MB / 479.3 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002003/0.4484, allocations: 141.6 kB / 479.4 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.4485, allocations: 88.78 kB / 479.5 MB, free: 9.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.972e-05/0.4486, allocations: 89.08 kB / 479.6 MB, free: 9.359 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.647e-05/0.4486, allocations: 31.06 kB / 479.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.994e-06/0.4486, allocations: 0 / 479.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003854/0.449, allocations: 204.3 kB / 479.8 MB, free: 9.156 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.084e-05/0.4491, allocations: 51.41 kB / 479.8 MB, free: 9.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.4492, allocations: 159.8 kB / 480 MB, free: 8.949 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.4492, allocations: 29.7 kB / 480 MB, free: 8.914 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.652e-05/0.4493, allocations: 134.3 kB / 480.2 MB, free: 8.789 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.892e-05/0.4493, allocations: 80.38 kB / 480.2 MB, free: 8.719 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.4493, allocations: 0 / 480.2 MB, free: 8.719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.393e-05/0.4494, allocations: 336.8 kB / 480.6 MB, free: 8.391 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.824e-05/0.4495, allocations: 62.92 kB / 480.6 MB, free: 8.352 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.4497, allocations: 98.31 kB / 480.7 MB, free: 8.266 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.4498, allocations: 87.27 kB / 480.8 MB, free: 8.207 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4498, allocations: 3.188 kB / 480.8 MB, free: 8.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003434/0.4502, allocations: 237.5 kB / 481 MB, free: 8.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.4502, allocations: 7.938 kB / 481.1 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.4502, allocations: 0 / 481.1 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.4502, allocations: 4 kB / 481.1 MB, free: 8.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.4505, allocations: 62.83 kB / 481.1 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.4506, allocations: 7.938 kB / 481.1 MB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001398/0.4507, allocations: 23.73 kB / 481.2 MB, free: 7.918 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.4507, allocations: 11 kB / 481.2 MB, free: 7.91 MB / 346.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.735e-05/0.4508, allocations: 101 kB / 481.3 MB, free: 7.805 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.496e-05/0.4509, allocations: 31.7 kB / 481.3 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004023/0.4513, allocations: 249.1 kB / 481.5 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.4513, allocations: 0 / 481.5 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4513, allocations: 5.5 kB / 481.5 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.4513, allocations: 0 / 481.5 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000699/0.452, allocations: 0.6114 MB / 482.2 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.452, allocations: 0 / 482.2 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/0.4523, allocations: 47.97 kB / 482.2 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.4523, allocations: 4 kB / 482.2 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.4524, allocations: 6.672 kB / 482.2 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.4524, allocations: 4 kB / 482.2 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.4524, allocations: 3.906 kB / 482.2 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004418/0.4528, allocations: 432.9 kB / 482.6 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.008e-05/0.4529, allocations: 120.7 kB / 482.8 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.963e-05/0.453, allocations: 4 kB / 482.8 MB, free: 6.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.4531, allocations: 11.98 kB / 482.8 MB, free: 6.461 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.364e-05/0.4532, allocations: 15.03 kB / 482.8 MB, free: 6.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.4532, allocations: 4 kB / 482.8 MB, free: 6.445 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.441e-05/0.4533, allocations: 130.4 kB / 482.9 MB, free: 6.336 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003029/0.4536, allocations: 59.83 kB / 483 MB, free: 6.277 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001647/0.4538, allocations: 111.1 kB / 483.1 MB, free: 6.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002855/0.4541, allocations: 181.8 kB / 483.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4541, allocations: 0 / 483.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.4542, allocations: 117 kB / 483.4 MB, free: 5.945 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.4545, allocations: 11.53 kB / 483.4 MB, free: 5.938 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00091/0.4554, allocations: 0.5536 MB / 483.9 MB, free: 5.398 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002605/0.4557, allocations: 0.7977 MB / 484.7 MB, free: 4.578 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4557, allocations: 0 / 484.7 MB, free: 4.578 MB / 346.7 MB Notification: Performance of Templates: time 0.004506/0.4602, allocations: 1.904 MB / 486.6 MB, free: 2.723 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches