Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001224/0.001224, allocations: 176.5 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.397/1.397, allocations: 205.4 MB / 223.6 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007738/0.0007739, allocations: 82.38 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003377/0.0003378, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2439, allocations: 47.58 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09978/0.3437, allocations: 82.37 MB / 458.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002147/0.3439, allocations: 71.97 kB / 458.2 MB, free: 14.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03301/0.377, allocations: 11.81 MB / 470 MB, free: 2.352 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.377, allocations: 0 / 470 MB, free: 2.352 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.787e-05/0.3771, allocations: 8 kB / 470 MB, free: 2.344 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001634/0.3787, allocations: 0.733 MB / 470.7 MB, free: 1.559 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3788, allocations: 8.031 kB / 470.7 MB, free: 1.551 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003784/0.3791, allocations: 64.36 kB / 470.8 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005641/0.3797, allocations: 342.7 kB / 471.1 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.3799, allocations: 101 kB / 471.2 MB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.38, allocations: 40.28 kB / 471.2 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.3811, allocations: 0.5493 MB / 471.8 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.3811, allocations: 3.938 kB / 471.8 MB, free: 408 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.3812, allocations: 16 kB / 471.8 MB, free: 392 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.3812, allocations: 8 kB / 471.8 MB, free: 384 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.3825, allocations: 0.6011 MB / 472.4 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.3847, allocations: 1.162 MB / 473.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009841/0.3857, allocations: 0.4899 MB / 474.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006059/0.3863, allocations: 314.4 kB / 474.4 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.549e-05/0.3864, allocations: 16.55 kB / 474.4 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.3864, allocations: 43.12 kB / 474.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 2.945e-06/0.3864, allocations: 0 / 474.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.006921/0.3934, allocations: 2.874 MB / 477.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.3935, allocations: 89.7 kB / 477.4 MB, free: 10.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003831/0.3939, allocations: 286.7 kB / 477.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.147e-05/0.3939, allocations: 41.7 kB / 477.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.394, allocations: 153.6 kB / 477.9 MB, free: 10.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.3942, allocations: 236.7 kB / 478.1 MB, free: 9.848 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.758e-05/0.3943, allocations: 16 kB / 478.1 MB, free: 9.832 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.3945, allocations: 346.8 kB / 478.5 MB, free: 9.484 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005873/0.395, allocations: 273.1 kB / 478.7 MB, free: 9.219 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00063/0.3957, allocations: 338.4 kB / 479.1 MB, free: 8.875 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.3968, allocations: 0.4992 MB / 479.6 MB, free: 8.367 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3968, allocations: 0 / 479.6 MB, free: 8.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001813/0.3986, allocations: 0.8537 MB / 480.4 MB, free: 7.504 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.3986, allocations: 7.938 kB / 480.4 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/0.3986, allocations: 3.984 kB / 480.4 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/0.3997, allocations: 438.7 kB / 480.8 MB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.4001, allocations: 95.81 kB / 480.9 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.4014, allocations: 1.017 MB / 482 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005055/0.4019, allocations: 79.98 kB / 482 MB, free: 5.848 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-05/0.402, allocations: 24.06 kB / 482.1 MB, free: 5.824 MB / 362.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: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003038/0.4023, allocations: 189.7 kB / 482.2 MB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.4024, allocations: 43.44 kB / 482.3 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/0.4044, allocations: 0.8834 MB / 483.2 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.4044, allocations: 4 kB / 483.2 MB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.413e-06/0.4044, allocations: 4 kB / 483.2 MB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.4044, allocations: 3.984 kB / 483.2 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003227/0.4076, allocations: 1.712 MB / 484.9 MB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.4077, allocations: 4 kB / 484.9 MB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003697/0.408, allocations: 83.88 kB / 485 MB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009748/0.409, allocations: 416.4 kB / 485.4 MB, free: 2.398 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.916e-05/0.4091, allocations: 31.97 kB / 485.4 MB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.4104, allocations: 0.97 MB / 486.4 MB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4104, allocations: 4.031 kB / 486.4 MB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002575/0.413, allocations: 1.26 MB / 487.7 MB, free: 80 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003155/0.4133, allocations: 184.5 kB / 487.8 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.4134, allocations: 20 kB / 487.9 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004465/0.4139, allocations: 75.98 kB / 487.9 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.4141, allocations: 100.3 kB / 488 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.761e-05/0.4142, allocations: 35.97 kB / 488.1 MB, free: 15.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002688/0.4144, allocations: 213.9 kB / 488.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4145, allocations: 0 / 488.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005711/0.415, allocations: 151.9 kB / 488.4 MB, free: 15.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003049/0.4153, allocations: 165.6 kB / 488.6 MB, free: 15.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001572/0.4169, allocations: 0.6979 MB / 489.3 MB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4169, allocations: 0 / 489.3 MB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008299/0.4178, allocations: 384.2 kB / 489.7 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.4183, allocations: 60.55 kB / 489.7 MB, free: 13.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002769/0.4211, allocations: 1.391 MB / 491.1 MB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.4215, allocations: 0.8251 MB / 491.9 MB, free: 11.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.4217, allocations: 43.41 kB / 492 MB, free: 11.66 MB / 378.7 MB Notification: Performance of SimCode: time 8.32e-07/0.4218, allocations: 0 / 492 MB, free: 11.66 MB / 378.7 MB Notification: Performance of Templates: time 0.01168/0.4334, allocations: 7.169 MB / 499.1 MB, free: 4.504 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode,time