Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008125/0.0008124, allocations: 90.44 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.506e-05/1.509e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1034, allocations: 50.41 MB / 387.5 MB, free: 7.586 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3573/0.4608, allocations: 80.44 MB / 467.9 MB, free: 14.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001855/0.461, allocations: 71.97 kB / 468 MB, free: 14.37 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02727/0.4883, allocations: 9.482 MB / 477.4 MB, free: 4.871 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4884, allocations: 4 kB / 477.5 MB, free: 4.867 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.816e-05/0.4884, allocations: 8 kB / 477.5 MB, free: 4.859 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.0009928/0.4894, allocations: 0.5534 MB / 478 MB, free: 4.262 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.4895, allocations: 15.97 kB / 478 MB, free: 4.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003592/0.4898, allocations: 47.59 kB / 478.1 MB, free: 4.199 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.4903, allocations: 278.5 kB / 478.3 MB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/0.4904, allocations: 75.95 kB / 478.4 MB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.414e-05/0.4905, allocations: 16 kB / 478.4 MB, free: 3.785 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006171/0.4911, allocations: 360.9 kB / 478.8 MB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005889/0.4917, allocations: 320.2 kB / 479.1 MB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.329e-05/0.4917, allocations: 3.906 kB / 479.1 MB, free: 3.098 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.877e-05/0.4918, allocations: 3.953 kB / 479.1 MB, free: 3.094 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.4918, allocations: 8 kB / 479.1 MB, free: 3.086 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.4936, allocations: 1.1 MB / 480.2 MB, free: 1.922 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004411/0.4941, allocations: 298.9 kB / 480.5 MB, free: 1.617 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.4943, allocations: 152.8 kB / 480.7 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.814e-05/0.4943, allocations: 7.953 kB / 480.7 MB, free: 1.457 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.4944, allocations: 38.5 kB / 480.7 MB, free: 1.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.783e-06/0.4944, allocations: 4 kB / 480.7 MB, free: 1.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.002315/0.4967, allocations: 1.237 MB / 481.9 MB, free: 76 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.008e-05/0.4968, allocations: 84.86 kB / 482 MB, free: 15.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/0.497, allocations: 181.5 kB / 482.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.4971, allocations: 29.7 kB / 482.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.983e-05/0.4972, allocations: 141 kB / 482.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.4973, allocations: 145.8 kB / 482.5 MB, free: 15.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.177e-05/0.4973, allocations: 0 / 482.5 MB, free: 15.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.4975, allocations: 334.8 kB / 482.8 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002498/0.4977, allocations: 136.8 kB / 483 MB, free: 15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.498, allocations: 193.1 kB / 483.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.4983, allocations: 144.7 kB / 483.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.4983, allocations: 0 / 483.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008199/0.4991, allocations: 484.4 kB / 483.8 MB, free: 14.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.4992, allocations: 8 kB / 483.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.4992, allocations: 4.125 kB / 483.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006688/0.4999, allocations: 236.6 kB / 484 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.5001, allocations: 55.89 kB / 484.1 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003389/0.5035, allocations: 2.541 MB / 486.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002688/0.5038, allocations: 28.06 kB / 486.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.5039, allocations: 23.98 kB / 486.7 MB, free: 11.16 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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 () * 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.0001924/0.5041, allocations: 118.5 kB / 486.8 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.077e-05/0.5041, allocations: 27.7 kB / 486.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.338e-05/0.5042, allocations: 35.34 kB / 486.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.5042, allocations: 8 kB / 486.9 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.5043, allocations: 11.94 kB / 486.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.5043, allocations: 3.938 kB / 486.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.5058, allocations: 0.9453 MB / 487.8 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5058, allocations: 0 / 487.8 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.506, allocations: 43.97 kB / 487.9 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000573/0.5066, allocations: 225.3 kB / 488.1 MB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.5067, allocations: 7.984 kB / 488.1 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00307/0.5098, allocations: 2.502 MB / 490.6 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5098, allocations: 0 / 490.6 MB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.5108, allocations: 0.6966 MB / 491.3 MB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001653/0.511, allocations: 148.8 kB / 491.4 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.967e-05/0.5111, allocations: 4 kB / 491.4 MB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.5113, allocations: 19.97 kB / 491.5 MB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.5115, allocations: 63.88 kB / 491.5 MB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/0.5115, allocations: 19.98 kB / 491.5 MB, free: 6.086 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001371/0.5117, allocations: 144.4 kB / 491.7 MB, free: 5.945 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5117, allocations: 0 / 491.7 MB, free: 5.945 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006105/0.5123, allocations: 135.9 kB / 491.8 MB, free: 5.812 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) * 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.0002333/0.5125, allocations: 139.1 kB / 491.9 MB, free: 5.668 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008999/0.5134, allocations: 0.5264 MB / 492.5 MB, free: 5.129 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5135, allocations: 8.25 kB / 492.5 MB, free: 5.121 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005558/0.514, allocations: 372.6 kB / 492.8 MB, free: 4.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.5143, allocations: 22.88 kB / 492.9 MB, free: 4.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009971/0.5153, allocations: 0.5081 MB / 493.4 MB, free: 4.199 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.5157, allocations: 0.7878 MB / 494.2 MB, free: 3.379 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.5159, allocations: 55.27 kB / 494.2 MB, free: 3.328 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.5161, allocations: 31.42 kB / 494.2 MB, free: 3.297 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5161, allocations: 0 / 494.2 MB, free: 3.297 MB / 362.7 MB Notification: Performance of Templates: time 0.01036/0.5264, allocations: 6.061 MB / 0.4886 GB, free: 13.26 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches