Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001364/0.001364, allocations: 180 kB / 17.01 MB, free: 5.125 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.504/1.504, allocations: 205.4 MB / 223.1 MB, free: 9.109 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.0009856/0.0009857, allocations: 94.59 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002929/0.0002927, allocations: 8 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2624, allocations: 47.57 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1088/0.3713, allocations: 80.89 MB / 456.7 MB, free: 15.76 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.3716, allocations: 75.95 kB / 456.8 MB, free: 15.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02813/0.3998, allocations: 10.2 MB / 467 MB, free: 5.465 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3998, allocations: 0 / 467 MB, free: 5.465 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.3998, allocations: 8 kB / 467 MB, free: 5.457 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001104/0.4009, allocations: 0.6198 MB / 467.6 MB, free: 4.789 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.401, allocations: 12.02 kB / 467.6 MB, free: 4.777 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000283/0.4013, allocations: 55.52 kB / 467.7 MB, free: 4.723 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004375/0.4017, allocations: 292.7 kB / 467.9 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/0.4019, allocations: 95.98 kB / 468 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-05/0.402, allocations: 35.91 kB / 468.1 MB, free: 4.258 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007853/0.4028, allocations: 400.9 kB / 468.5 MB, free: 3.855 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.4028, allocations: 8 kB / 468.5 MB, free: 3.848 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.067e-05/0.4029, allocations: 8 kB / 468.5 MB, free: 3.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.4029, allocations: 12 kB / 468.5 MB, free: 3.828 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009598/0.4038, allocations: 474.2 kB / 469 MB, free: 3.363 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.4052, allocations: 0.9033 MB / 469.9 MB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000758/0.406, allocations: 386.9 kB / 470.2 MB, free: 2.016 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.406, allocations: 4.438 kB / 470.2 MB, free: 2.012 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.406, allocations: 39 kB / 470.3 MB, free: 1.965 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 1.563e-06/0.406, allocations: 0 / 470.3 MB, free: 1.965 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.005003/0.4111, allocations: 2.152 MB / 472.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.083e-05/0.4111, allocations: 93.67 kB / 472.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002609/0.4114, allocations: 214.2 kB / 472.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.496e-05/0.4115, allocations: 41.69 kB / 472.8 MB, free: 15.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.38e-05/0.4116, allocations: 137.1 kB / 472.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/0.4118, allocations: 177.4 kB / 473.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.4118, allocations: 12 kB / 473.1 MB, free: 15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.412, allocations: 334.8 kB / 473.4 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004472/0.4124, allocations: 201 kB / 473.6 MB, free: 14.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000461/0.4129, allocations: 240.6 kB / 473.9 MB, free: 14.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004104/0.4133, allocations: 190.2 kB / 474 MB, free: 14.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.4133, allocations: 0 / 474 MB, free: 14.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001218/0.4145, allocations: 0.6134 MB / 474.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.4146, allocations: 4 kB / 474.7 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.4146, allocations: 3.953 kB / 474.7 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007209/0.4153, allocations: 250.8 kB / 474.9 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.4156, allocations: 71.89 kB / 475 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003733/0.4194, allocations: 2.743 MB / 477.7 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.4198, allocations: 39.94 kB / 477.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/0.4198, allocations: 27.89 kB / 477.8 MB, free: 10.16 MB / 362.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 () * Number of clocked 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.0002164/0.4201, allocations: 161.8 kB / 477.9 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.513e-05/0.4201, allocations: 31.62 kB / 478 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.4202, allocations: 43.31 kB / 478 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.4203, allocations: 4 kB / 478 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4203, allocations: 3.984 kB / 478 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.4203, allocations: 0 / 478 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00213/0.4224, allocations: 1.264 MB / 479.3 MB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.4224, allocations: 0 / 479.3 MB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.4228, allocations: 71.89 kB / 479.4 MB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006185/0.4234, allocations: 230.2 kB / 479.6 MB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.958e-05/0.4234, allocations: 15.98 kB / 479.6 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003452/0.4269, allocations: 2.659 MB / 482.3 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.4269, allocations: 0 / 482.3 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/0.4286, allocations: 0.9513 MB / 483.2 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002104/0.4289, allocations: 148.7 kB / 483.4 MB, free: 4.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.627e-05/0.4289, allocations: 15.94 kB / 483.4 MB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003082/0.4292, allocations: 44.03 kB / 483.4 MB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.4294, allocations: 80.23 kB / 483.5 MB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.14e-05/0.4295, allocations: 23.94 kB / 483.5 MB, free: 4.164 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002074/0.4297, allocations: 168.6 kB / 483.7 MB, free: 4 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4297, allocations: 0 / 483.7 MB, free: 4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006812/0.4304, allocations: 160 kB / 483.8 MB, free: 3.844 MB / 362.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) * Number of clocked states: 0 () * 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.0002757/0.4307, allocations: 159.1 kB / 484 MB, free: 3.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.4321, allocations: 0.6955 MB / 484.7 MB, free: 2.969 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4321, allocations: 0 / 484.7 MB, free: 2.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007629/0.4329, allocations: 475.7 kB / 485.2 MB, free: 2.492 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.4332, allocations: 32.08 kB / 485.2 MB, free: 2.465 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.4349, allocations: 0.9449 MB / 486.1 MB, free: 1.488 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.4353, allocations: 0.8009 MB / 486.9 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002255/0.4355, allocations: 58.94 kB / 487 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.4356, allocations: 39.42 kB / 487 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4356, allocations: 3.938 kB / 487 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of Templates: time 0.01153/0.4472, allocations: 6.81 MB / 493.8 MB, free: 9.762 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches