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.001156/0.001164, allocations: 182.6 kB / 18.04 MB, free: 3.656 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.469/1.469, allocations: 205.4 MB / 224.2 MB, free: 9.012 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.0008027/0.0008026, allocations: 86.38 kB / 272.5 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003559, allocations: 12 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2566, allocations: 47.58 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09573/0.3524, allocations: 80.95 MB / 458 MB, free: 15.59 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.3527, allocations: 75.95 kB / 458 MB, free: 15.51 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02975/0.3824, allocations: 10.11 MB / 468.2 MB, free: 5.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3825, allocations: 0 / 468.2 MB, free: 5.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.315e-05/0.3825, allocations: 7.984 kB / 468.2 MB, free: 5.363 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.00133/0.3839, allocations: 0.6121 MB / 468.8 MB, free: 4.699 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.3839, allocations: 8.031 kB / 468.8 MB, free: 4.691 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003598/0.3843, allocations: 60.44 kB / 468.8 MB, free: 4.633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004663/0.3848, allocations: 310 kB / 469.2 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.3849, allocations: 88.61 kB / 469.2 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.615e-05/0.385, allocations: 28.38 kB / 469.3 MB, free: 4.168 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008221/0.3858, allocations: 413.4 kB / 469.7 MB, free: 3.754 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.3859, allocations: 3.938 kB / 469.7 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.208e-05/0.3859, allocations: 20 kB / 469.7 MB, free: 3.73 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.3859, allocations: 8 kB / 469.7 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009882/0.3869, allocations: 474.2 kB / 470.2 MB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.3884, allocations: 0.9032 MB / 471.1 MB, free: 2.297 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007835/0.3892, allocations: 387.1 kB / 471.4 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004618/0.3897, allocations: 234.1 kB / 471.7 MB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.3897, allocations: 4.438 kB / 471.7 MB, free: 1.676 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.3898, allocations: 39 kB / 471.7 MB, free: 1.629 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.595e-06/0.3898, allocations: 0 / 471.7 MB, free: 1.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.005414/0.3952, allocations: 2.171 MB / 473.9 MB, free: 15.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.3953, allocations: 81.67 kB / 474 MB, free: 15.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/0.3956, allocations: 243 kB / 474.2 MB, free: 15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.353e-05/0.3957, allocations: 33.7 kB / 474.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.597e-05/0.3958, allocations: 137.2 kB / 474.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.3959, allocations: 181.3 kB / 474.5 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.396, allocations: 12 kB / 474.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.3961, allocations: 338.8 kB / 474.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000445/0.3966, allocations: 197 kB / 475.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/0.397, allocations: 244.6 kB / 475.3 MB, free: 13.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008423/0.3979, allocations: 388.4 kB / 475.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3979, allocations: 0 / 475.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001217/0.3991, allocations: 0.6134 MB / 476.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.3992, allocations: 4 kB / 476.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.3992, allocations: 4 kB / 476.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007026/0.3999, allocations: 250.8 kB / 476.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003104/0.4002, allocations: 75.88 kB / 476.6 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003733/0.404, allocations: 2.693 MB / 479.3 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003031/0.4043, allocations: 43.94 kB / 479.4 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.327e-05/0.4043, allocations: 12 kB / 479.4 MB, free: 9.633 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.0002045/0.4046, allocations: 165.8 kB / 479.6 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.096e-05/0.4046, allocations: 31.62 kB / 479.6 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.285e-05/0.4047, allocations: 47.3 kB / 479.6 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.4047, allocations: 8 kB / 479.6 MB, free: 9.375 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4048, allocations: 3.938 kB / 479.6 MB, free: 9.371 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.4048, allocations: 3.938 kB / 479.6 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/0.4071, allocations: 1.252 MB / 480.9 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/0.4071, allocations: 0 / 480.9 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.4075, allocations: 79.88 kB / 481 MB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006186/0.4081, allocations: 218.3 kB / 481.2 MB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.915e-05/0.4081, allocations: 15.98 kB / 481.2 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003627/0.4118, allocations: 2.612 MB / 483.8 MB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4118, allocations: 0 / 483.8 MB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.4135, allocations: 0.9419 MB / 484.8 MB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002513/0.4138, allocations: 160.6 kB / 484.9 MB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.4139, allocations: 15.98 kB / 484.9 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002991/0.4142, allocations: 40.03 kB / 485 MB, free: 3.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.4144, allocations: 76.23 kB / 485 MB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.754e-05/0.4145, allocations: 19.98 kB / 485.1 MB, free: 3.719 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001964/0.4147, allocations: 180.5 kB / 485.2 MB, free: 3.543 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4147, allocations: 0 / 485.2 MB, free: 3.543 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000634/0.4153, allocations: 156 kB / 485.4 MB, free: 3.391 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.0002418/0.4156, allocations: 151.1 kB / 485.5 MB, free: 3.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.4169, allocations: 0.6878 MB / 486.2 MB, free: 2.527 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.4169, allocations: 0 / 486.2 MB, free: 2.527 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007869/0.4177, allocations: 475.7 kB / 486.7 MB, free: 2.051 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.4182, allocations: 40.36 kB / 486.7 MB, free: 2.012 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.4198, allocations: 0.9332 MB / 487.7 MB, free: 1.047 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004211/0.4203, allocations: 0.797 MB / 488.5 MB, free: 228 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002362/0.4205, allocations: 62.95 kB / 488.5 MB, free: 168 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.4206, allocations: 43.41 kB / 488.6 MB, free: 124 kB / 362.7 MB Notification: Performance of SimCode: time 4.7e-07/0.4206, allocations: 0 / 488.6 MB, free: 124 kB / 362.7 MB Notification: Performance of Templates: time 0.0122/0.4328, allocations: 6.832 MB / 495.4 MB, free: 9.301 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/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_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches