Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First") [: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.001448/0.001448, allocations: 195.2 kB / 8.537 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.284/1.284, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008377/0.0008378, allocations: 89.47 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.725e-06/7.755e-06, allocations: 4 kB / 343.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1087, allocations: 51.47 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2588/0.3676, allocations: 78.42 MB / 473 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002046/0.3679, allocations: 73.8 kB / 473.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01011/0.378, allocations: 3.909 MB / 477 MB, free: 11.22 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.3781, allocations: 4 kB / 477 MB, free: 11.21 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0004642/0.3785, allocations: 480.1 kB / 477.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.3786, allocations: 8.031 kB / 477.5 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.3787, allocations: 43.05 kB / 477.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.379, allocations: 226 kB / 477.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.379, allocations: 8 kB / 477.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.598e-05/0.379, allocations: 19.84 kB / 477.8 MB, free: 10.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002036/0.3792, allocations: 113 kB / 477.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.3795, allocations: 151.1 kB / 478 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.3795, allocations: 0 / 478 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.3795, allocations: 0 / 478 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.3795, allocations: 8 kB / 478 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007061/0.3802, allocations: 0.5826 MB / 478.6 MB, free: 9.828 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.3804, allocations: 108.3 kB / 478.7 MB, free: 9.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.3805, allocations: 82.45 kB / 478.8 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.3806, allocations: 6.844 kB / 478.8 MB, free: 9.691 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.729e-05/0.3806, allocations: 38.08 kB / 478.9 MB, free: 9.652 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.3806, allocations: 3.391 kB / 478.9 MB, free: 9.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.00133/0.382, allocations: 0.8908 MB / 479.7 MB, free: 8.855 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.143e-05/0.382, allocations: 56.16 kB / 479.8 MB, free: 8.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.3821, allocations: 138 kB / 479.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.3821, allocations: 29.7 kB / 480 MB, free: 8.633 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.815e-05/0.3822, allocations: 135.6 kB / 480.1 MB, free: 8.516 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.303e-05/0.3822, allocations: 106.2 kB / 480.2 MB, free: 8.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-06/0.3823, allocations: 2.344 kB / 480.2 MB, free: 8.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.33e-05/0.3823, allocations: 332 kB / 480.5 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.765e-05/0.3824, allocations: 53.12 kB / 480.6 MB, free: 8.082 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/0.3825, allocations: 94.73 kB / 480.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.3826, allocations: 74.25 kB / 480.7 MB, free: 7.977 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.3827, allocations: 0 / 480.7 MB, free: 7.977 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003675/0.383, allocations: 257.7 kB / 481 MB, free: 7.785 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.3831, allocations: 8.469 kB / 481 MB, free: 7.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.3831, allocations: 4 kB / 481 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001589/0.3832, allocations: 38.3 kB / 481 MB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.3835, allocations: 65.28 kB / 481.1 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001051/0.3846, allocations: 1.486 MB / 482.6 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.3847, allocations: 5.125 kB / 482.6 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.3847, allocations: 7.25 kB / 482.6 MB, free: 6.246 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.954e-05/0.3848, allocations: 113.4 kB / 482.7 MB, free: 6.129 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.286e-05/0.3849, allocations: 16.44 kB / 482.7 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.783e-05/0.3849, allocations: 30.22 kB / 482.8 MB, free: 6.098 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3849, allocations: 7.906 kB / 482.8 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.3849, allocations: 2.438 kB / 482.8 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3849, allocations: 1.266 kB / 482.8 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008157/0.3858, allocations: 0.7045 MB / 483.5 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3858, allocations: 3.828 kB / 483.5 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002688/0.386, allocations: 63.89 kB / 483.5 MB, free: 5.406 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001029/0.3862, allocations: 36.38 kB / 483.6 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.3862, allocations: 4 kB / 483.6 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007246/0.3869, allocations: 1.315 MB / 484.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3869, allocations: 4 kB / 484.9 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004436/0.3874, allocations: 476.6 kB / 485.4 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.334e-05/0.3874, allocations: 92.73 kB / 485.5 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.3875, allocations: 4 kB / 485.5 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.3876, allocations: 7.906 kB / 485.5 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.609e-05/0.3877, allocations: 15.97 kB / 485.5 MB, free: 3.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.3877, allocations: 7.875 kB / 485.5 MB, free: 3.445 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.406e-05/0.3877, allocations: 115.6 kB / 485.6 MB, free: 3.344 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003416/0.3881, allocations: 56 kB / 485.7 MB, free: 3.289 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001279/0.3882, allocations: 107.2 kB / 485.8 MB, free: 3.172 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004364/0.3887, allocations: 284.6 kB / 486 MB, free: 2.938 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3887, allocations: 128 / 486 MB, free: 2.938 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000231/0.3889, allocations: 216.2 kB / 486.3 MB, free: 2.746 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.3892, allocations: 37.17 kB / 486.3 MB, free: 2.723 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008992/0.3901, allocations: 0.5605 MB / 486.9 MB, free: 2.184 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.3903, allocations: 0.7827 MB / 487.6 MB, free: 1.375 MB / 346.7 MB Notification: Performance of SimCode: time 9.71e-07/0.3904, allocations: 0 / 487.6 MB, free: 1.375 MB / 346.7 MB Notification: Performance of Templates: time 0.005243/0.3956, allocations: 2.532 MB / 490.2 MB, free: 14.92 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches