Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002282/0.002282, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.033/2.033, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001102/0.001102, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.015e-05/3.031e-05, allocations: 7.984 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09464/0.09469, allocations: 47.57 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4226/0.5174, allocations: 80.81 MB / 449.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/0.5177, allocations: 71.08 kB / 450 MB, free: 12.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05011/0.5679, allocations: 10.17 MB / 460.1 MB, free: 3.805 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.918e-06/0.5679, allocations: 4 kB / 460.1 MB, free: 3.801 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.428e-05/0.568, allocations: 4 kB / 460.1 MB, free: 3.797 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001665/0.5696, allocations: 0.5835 MB / 460.7 MB, free: 3.191 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.5697, allocations: 8.031 kB / 460.7 MB, free: 3.184 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005073/0.5702, allocations: 51.52 kB / 460.8 MB, free: 3.133 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005929/0.5709, allocations: 301.3 kB / 461.1 MB, free: 2.824 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001743/0.571, allocations: 91.67 kB / 461.2 MB, free: 2.734 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.5712, allocations: 35.05 kB / 461.2 MB, free: 2.711 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.5722, allocations: 381.8 kB / 461.6 MB, free: 2.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/0.5722, allocations: 0 / 461.6 MB, free: 2.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.072e-05/0.5723, allocations: 15.56 kB / 461.6 MB, free: 2.426 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.5723, allocations: 7.938 kB / 461.6 MB, free: 2.418 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001108/0.5734, allocations: 412.2 kB / 462 MB, free: 2.121 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.5758, allocations: 0.9007 MB / 462.9 MB, free: 1.215 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.577, allocations: 356.7 kB / 463.2 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005717/0.5776, allocations: 202.1 kB / 463.4 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.655e-05/0.5777, allocations: 8.422 kB / 463.5 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.5777, allocations: 35 kB / 463.5 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 3.296e-06/0.5777, allocations: 4 kB / 463.5 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.004677/0.5824, allocations: 1.543 MB / 465 MB, free: 14.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.257e-05/0.5825, allocations: 81.67 kB / 465.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004226/0.583, allocations: 210.1 kB / 465.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001259/0.5831, allocations: 37.7 kB / 465.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.5833, allocations: 195.5 kB / 465.5 MB, free: 14.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.5835, allocations: 185.4 kB / 465.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.466e-05/0.5836, allocations: 4 kB / 465.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.5837, allocations: 330.8 kB / 466.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005331/0.5843, allocations: 169.1 kB / 466.2 MB, free: 13.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005659/0.5849, allocations: 212.7 kB / 466.4 MB, free: 13.53 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004967/0.5854, allocations: 163.2 kB / 466.6 MB, free: 13.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5854, allocations: 4.031 kB / 466.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001577/0.587, allocations: 0.551 MB / 467.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.587, allocations: 7.953 kB / 467.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.587, allocations: 0 / 467.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/0.5883, allocations: 239.8 kB / 467.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006639/0.589, allocations: 67.89 kB / 467.5 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006144/0.5952, allocations: 2.675 MB / 470.1 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006495/0.5959, allocations: 40 kB / 470.2 MB, free: 9.641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.596, allocations: 19.98 kB / 470.2 MB, free: 9.621 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002234/0.5963, allocations: 136.9 kB / 470.3 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.5964, allocations: 31.62 kB / 470.3 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001552/0.5966, allocations: 51.11 kB / 470.4 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.5966, allocations: 4 kB / 470.4 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.5966, allocations: 0 / 470.4 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.5966, allocations: 0 / 470.4 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003188/0.5998, allocations: 1.198 MB / 471.6 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.5999, allocations: 0 / 471.6 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007374/0.6006, allocations: 71.89 kB / 471.7 MB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.6018, allocations: 222.1 kB / 471.9 MB, free: 7.844 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.917e-05/0.6019, allocations: 19.94 kB / 471.9 MB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005692/0.6076, allocations: 2.586 MB / 474.5 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.6077, allocations: 3.938 kB / 474.5 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00236/0.6101, allocations: 0.8654 MB / 475.4 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003606/0.6105, allocations: 160.8 kB / 475.5 MB, free: 4.031 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.6106, allocations: 16 kB / 475.5 MB, free: 4.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005837/0.6112, allocations: 31.97 kB / 475.6 MB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002836/0.6115, allocations: 76.48 kB / 475.6 MB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.055e-05/0.6116, allocations: 19.98 kB / 475.7 MB, free: 3.891 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002882/0.6119, allocations: 171.2 kB / 475.8 MB, free: 3.723 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6119, allocations: 0 / 475.8 MB, free: 3.723 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009734/0.6129, allocations: 164 kB / 476 MB, free: 3.562 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * 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: 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003484/0.6132, allocations: 147.1 kB / 476.1 MB, free: 3.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001818/0.6151, allocations: 0.6334 MB / 476.8 MB, free: 2.77 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.6151, allocations: 4 kB / 476.8 MB, free: 2.766 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.6163, allocations: 435.4 kB / 477.2 MB, free: 2.324 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.6168, allocations: 28.59 kB / 477.2 MB, free: 2.297 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.6188, allocations: 0.6398 MB / 477.9 MB, free: 1.629 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005021/0.6194, allocations: 0.801 MB / 478.7 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000312/0.6197, allocations: 43.41 kB / 478.7 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of SimCode: time 1.403e-06/0.6197, allocations: 4 kB / 478.7 MB, free: 0.75 MB / 346.7 MB Notification: Performance of Templates: time 0.01516/0.6349, allocations: 5.748 MB / 484.5 MB, free: 11 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches