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.001104/0.001104, allocations: 178.5 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.8/1.8, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009576/0.0009574, allocations: 86.23 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.739e-05/1.753e-05, allocations: 0 / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09421/0.09425, allocations: 47.57 MB / 363.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.351/0.4453, allocations: 80.39 MB / 443.5 MB, free: 15.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.4456, allocations: 69.58 kB / 443.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0289/0.4745, allocations: 10.12 MB / 453.6 MB, free: 6.844 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4746, allocations: 0 / 453.6 MB, free: 6.844 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.386e-05/0.4746, allocations: 8 kB / 453.6 MB, free: 6.836 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.001175/0.4758, allocations: 0.5828 MB / 454.2 MB, free: 6.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/0.4759, allocations: 8.031 kB / 454.2 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003392/0.4762, allocations: 59.08 kB / 454.3 MB, free: 6.168 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004555/0.4767, allocations: 298.1 kB / 454.6 MB, free: 5.863 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/0.4768, allocations: 76.17 kB / 454.7 MB, free: 5.777 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.265e-05/0.4769, allocations: 20 kB / 454.7 MB, free: 5.758 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006788/0.4776, allocations: 405.5 kB / 455.1 MB, free: 5.469 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005691/0.4781, allocations: 342 kB / 455.4 MB, free: 5.207 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.4782, allocations: 0 / 455.4 MB, free: 5.207 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.4782, allocations: 0 / 455.4 MB, free: 5.207 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.4782, allocations: 8 kB / 455.4 MB, free: 5.199 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.4795, allocations: 0.8279 MB / 456.2 MB, free: 4.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005855/0.4801, allocations: 335.2 kB / 456.6 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002717/0.4804, allocations: 182.2 kB / 456.8 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.968e-05/0.4805, allocations: 4.438 kB / 456.8 MB, free: 4.156 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.4805, allocations: 43.06 kB / 456.8 MB, free: 4.109 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 1.573e-06/0.4805, allocations: 0 / 456.8 MB, free: 4.109 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.002713/0.4832, allocations: 1.429 MB / 458.2 MB, free: 2.871 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.4833, allocations: 89.11 kB / 458.3 MB, free: 2.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.4835, allocations: 186.5 kB / 458.5 MB, free: 2.602 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.981e-05/0.4836, allocations: 29.02 kB / 458.5 MB, free: 2.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.4837, allocations: 147.1 kB / 458.7 MB, free: 2.441 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.4838, allocations: 176.8 kB / 458.8 MB, free: 2.285 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.599e-05/0.4839, allocations: 0 / 458.8 MB, free: 2.285 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.484, allocations: 338.5 kB / 459.2 MB, free: 1.957 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.4842, allocations: 160.3 kB / 459.3 MB, free: 1.859 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.4845, allocations: 194.6 kB / 459.5 MB, free: 1.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/0.4848, allocations: 157.5 kB / 459.7 MB, free: 1.621 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.4848, allocations: 0 / 459.7 MB, free: 1.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008466/0.4857, allocations: 0.5207 MB / 460.2 MB, free: 1.238 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.4857, allocations: 8 kB / 460.2 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.4857, allocations: 0 / 460.2 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006689/0.4864, allocations: 234.7 kB / 460.4 MB, free: 1.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/0.4867, allocations: 79.08 kB / 460.5 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003414/0.4902, allocations: 2.589 MB / 463.1 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.4905, allocations: 31.81 kB / 463.1 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.863e-05/0.4906, allocations: 23.42 kB / 463.1 MB, free: 14.77 MB / 346.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: 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.0002299/0.4908, allocations: 113 kB / 463.3 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.051e-05/0.4909, allocations: 31.58 kB / 463.3 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.491, allocations: 46.77 kB / 463.3 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.4911, allocations: 4 kB / 463.3 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4911, allocations: 0 / 463.3 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.4911, allocations: 3.984 kB / 463.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001809/0.4929, allocations: 1.099 MB / 464.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.4929, allocations: 0 / 464.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003411/0.4933, allocations: 71 kB / 464.5 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005849/0.4939, allocations: 226.7 kB / 464.7 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.55e-05/0.4939, allocations: 11.98 kB / 464.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003178/0.4971, allocations: 2.496 MB / 467.2 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4971, allocations: 0 / 467.2 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.4984, allocations: 0.8212 MB / 468.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.4986, allocations: 154 kB / 468.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.275e-05/0.4986, allocations: 7.734 kB / 468.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/0.499, allocations: 27.97 kB / 468.2 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.4991, allocations: 79.17 kB / 468.3 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.222e-05/0.4992, allocations: 19.55 kB / 468.3 MB, free: 10.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001501/0.4993, allocations: 146.8 kB / 468.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4994, allocations: 0 / 468.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007183/0.5001, allocations: 132 kB / 468.6 MB, free: 10.24 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.0002807/0.5004, allocations: 143.9 kB / 468.8 MB, free: 10.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.5014, allocations: 0.5953 MB / 469.4 MB, free: 9.648 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.289e-06/0.5014, allocations: 4 kB / 469.4 MB, free: 9.645 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005651/0.502, allocations: 410.2 kB / 469.8 MB, free: 9.324 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.5023, allocations: 27.55 kB / 469.8 MB, free: 9.301 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.5035, allocations: 0.5782 MB / 470.4 MB, free: 8.773 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.5039, allocations: 0.8046 MB / 471.2 MB, free: 7.945 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002315/0.5041, allocations: 63.27 kB / 471.2 MB, free: 7.887 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.5043, allocations: 38.91 kB / 471.3 MB, free: 7.852 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5043, allocations: 0 / 471.3 MB, free: 7.852 MB / 346.7 MB Notification: Performance of Templates: time 0.01191/0.5162, allocations: 6.519 MB / 477.8 MB, free: 1.344 MB / 346.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