Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 180.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.395/1.395, allocations: 205.4 MB / 223.6 MB, free: 8.938 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.0006948/0.0006944, allocations: 90.3 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003362/0.0003363, allocations: 12 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2162, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09131/0.3075, allocations: 80.24 MB / 456 MB, free: 404 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.3078, allocations: 75.95 kB / 456 MB, free: 328 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02619/0.334, allocations: 9.332 MB / 465.4 MB, free: 6.973 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3341, allocations: 0 / 465.4 MB, free: 6.973 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.3341, allocations: 4 kB / 465.4 MB, free: 6.969 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001007/0.3351, allocations: 0.5849 MB / 466 MB, free: 6.332 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.3352, allocations: 8.031 kB / 466 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002912/0.3355, allocations: 52.53 kB / 466 MB, free: 6.273 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003745/0.3358, allocations: 279.8 kB / 466.3 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.336, allocations: 84.52 kB / 466.4 MB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.725e-05/0.336, allocations: 32.38 kB / 466.4 MB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000669/0.3367, allocations: 373.8 kB / 466.8 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.3367, allocations: 7.844 kB / 466.8 MB, free: 5.445 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.807e-05/0.3368, allocations: 16 kB / 466.8 MB, free: 5.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.3368, allocations: 4 kB / 466.8 MB, free: 5.426 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000794/0.3376, allocations: 413.9 kB / 467.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001724/0.3393, allocations: 1.172 MB / 468.4 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006223/0.34, allocations: 333.5 kB / 468.7 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003567/0.3404, allocations: 180.8 kB / 468.9 MB, free: 3.266 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.629e-05/0.3404, allocations: 7.984 kB / 468.9 MB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.3404, allocations: 42.56 kB / 468.9 MB, free: 3.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 2.815e-06/0.3404, allocations: 0 / 468.9 MB, free: 3.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.004652/0.3451, allocations: 1.898 MB / 470.8 MB, free: 1.195 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.3452, allocations: 84.86 kB / 470.9 MB, free: 1.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.3455, allocations: 216.6 kB / 471.1 MB, free: 0.875 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.547e-05/0.3455, allocations: 29.7 kB / 471.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.687e-05/0.3456, allocations: 152.8 kB / 471.3 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.3458, allocations: 145.9 kB / 471.4 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.3458, allocations: 8 kB / 471.4 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3459, allocations: 334.8 kB / 471.8 MB, free: 200 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003684/0.3463, allocations: 160.8 kB / 471.9 MB, free: 40 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004202/0.3467, allocations: 233.8 kB / 472.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007233/0.3475, allocations: 339.2 kB / 472.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3475, allocations: 0 / 472.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001163/0.3487, allocations: 0.5512 MB / 473 MB, free: 14.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.3487, allocations: 4 kB / 473 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.3487, allocations: 0 / 473 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00074/0.3495, allocations: 238.3 kB / 473.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002582/0.3497, allocations: 55.89 kB / 473.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003943/0.3537, allocations: 2.654 MB / 476 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003176/0.354, allocations: 27.97 kB / 476 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.72e-05/0.3541, allocations: 20 kB / 476 MB, free: 11.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002365/0.3544, allocations: 157.8 kB / 476.2 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.952e-05/0.3545, allocations: 35.62 kB / 476.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.3546, allocations: 42.94 kB / 476.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3546, allocations: 12 kB / 476.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.3546, allocations: 0 / 476.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.3546, allocations: 3.984 kB / 476.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001945/0.3566, allocations: 1.069 MB / 477.3 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3566, allocations: 0 / 477.3 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.3568, allocations: 47.91 kB / 477.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006621/0.3575, allocations: 224.9 kB / 477.6 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.047e-05/0.3576, allocations: 11.98 kB / 477.6 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00375/0.3613, allocations: 2.605 MB / 480.2 MB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3614, allocations: 0 / 480.2 MB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.3629, allocations: 0.7905 MB / 481 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000211/0.3632, allocations: 148.7 kB / 481.2 MB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.358e-05/0.3632, allocations: 8 kB / 481.2 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002717/0.3635, allocations: 27.98 kB / 481.2 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.3637, allocations: 71.8 kB / 481.3 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.3637, allocations: 15.98 kB / 481.3 MB, free: 6.262 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001997/0.364, allocations: 160.3 kB / 481.4 MB, free: 6.105 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.364, allocations: 0 / 481.4 MB, free: 6.105 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006597/0.3646, allocations: 151.9 kB / 481.6 MB, free: 5.957 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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.0002848/0.3649, allocations: 139.2 kB / 481.7 MB, free: 5.812 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.3662, allocations: 0.6097 MB / 482.3 MB, free: 5.184 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3662, allocations: 0 / 482.3 MB, free: 5.184 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007342/0.367, allocations: 425.4 kB / 482.7 MB, free: 4.754 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.3674, allocations: 35.92 kB / 482.8 MB, free: 4.719 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.3689, allocations: 0.8605 MB / 483.6 MB, free: 3.824 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.3693, allocations: 0.7801 MB / 484.4 MB, free: 3.016 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.3695, allocations: 35.41 kB / 484.5 MB, free: 2.98 MB / 362.7 MB Notification: Performance of SimCode: time 7.31e-07/0.3695, allocations: 4 kB / 484.5 MB, free: 2.977 MB / 362.7 MB Notification: Performance of Templates: time 0.008661/0.3782, allocations: 5.162 MB / 489.6 MB, free: 13.82 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches