Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 201.2 kB / 18.1 MB, free: 3.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 226.5 MB / 245.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007535/0.0007537, allocations: 97.7 kB / 297.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003546/0.0003547, allocations: 4 kB / 358.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2847, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09549/0.3802, allocations: 83.08 MB / 492.5 MB, free: 8.438 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.3805, allocations: 71.97 kB / 492.5 MB, free: 8.367 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04675/0.4272, allocations: 17.28 MB / 0.4979 GB, free: 7.055 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4273, allocations: 0 / 0.4979 GB, free: 7.055 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.4273, allocations: 12 kB / 0.4979 GB, free: 7.043 MB / 378.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.001191/0.4285, allocations: 0.612 MB / 0.4985 GB, free: 6.379 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.4285, allocations: 8.031 kB / 0.4985 GB, free: 6.371 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003191/0.4289, allocations: 52.53 kB / 0.4985 GB, free: 6.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004435/0.4293, allocations: 297.5 kB / 0.4988 GB, free: 5.988 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.4295, allocations: 92.52 kB / 0.4989 GB, free: 5.887 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.195e-05/0.4295, allocations: 32.27 kB / 0.4989 GB, free: 5.855 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007318/0.4303, allocations: 385.8 kB / 0.4993 GB, free: 5.465 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.107e-05/0.4303, allocations: 11.94 kB / 0.4993 GB, free: 5.453 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.4304, allocations: 8 kB / 0.4993 GB, free: 5.445 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.4304, allocations: 11.94 kB / 0.4993 GB, free: 5.434 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008379/0.4312, allocations: 433.9 kB / 0.4997 GB, free: 5.008 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.4331, allocations: 1.23 MB / 0.5009 GB, free: 3.711 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006825/0.4338, allocations: 350.2 kB / 0.5013 GB, free: 3.363 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004012/0.4342, allocations: 180.8 kB / 0.5014 GB, free: 3.184 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.4342, allocations: 8 kB / 0.5015 GB, free: 3.176 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.4343, allocations: 38.59 kB / 0.5015 GB, free: 3.129 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 4.319e-06/0.4343, allocations: 4 kB / 0.5015 GB, free: 3.125 MB / 378.7 MB Notification: Performance of matching and sorting (n=45): time 0.004694/0.439, allocations: 1.934 MB / 0.5034 GB, free: 1.078 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.439, allocations: 92.8 kB / 0.5035 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.4394, allocations: 246.4 kB / 0.5037 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.842e-05/0.4394, allocations: 33.7 kB / 0.5037 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.274e-05/0.4395, allocations: 148.8 kB / 0.5039 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.4396, allocations: 153.8 kB / 0.504 GB, free: 380 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.666e-05/0.4397, allocations: 12 kB / 0.504 GB, free: 368 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.4398, allocations: 330.8 kB / 0.5044 GB, free: 28 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1686/0.6084, allocations: 166.4 kB / 0.5045 GB, free: 97.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.6089, allocations: 231.6 kB / 0.5047 GB, free: 97.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007807/0.6097, allocations: 346.7 kB / 0.5051 GB, free: 97.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.6098, allocations: 0 / 0.5051 GB, free: 97.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001239/0.611, allocations: 0.5602 MB / 0.5056 GB, free: 97.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.611, allocations: 5.125 kB / 0.5056 GB, free: 97.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.611, allocations: 2.156 kB / 0.5056 GB, free: 97.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007965/0.6119, allocations: 262.2 kB / 0.5059 GB, free: 97.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.6121, allocations: 58.12 kB / 0.5059 GB, free: 97.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003217/0.6154, allocations: 2.666 MB / 0.5085 GB, free: 95.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.6156, allocations: 30.86 kB / 0.5086 GB, free: 95.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.194e-05/0.6157, allocations: 23.66 kB / 0.5086 GB, free: 95.84 MB / 378.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.0001612/0.6159, allocations: 154.9 kB / 0.5087 GB, free: 95.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.501e-05/0.6159, allocations: 24.88 kB / 0.5088 GB, free: 95.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.573e-05/0.616, allocations: 48.47 kB / 0.5088 GB, free: 95.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.616, allocations: 3.75 kB / 0.5088 GB, free: 95.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.616, allocations: 1.375 kB / 0.5088 GB, free: 95.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.6161, allocations: 5.641 kB / 0.5088 GB, free: 95.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001744/0.6178, allocations: 1.124 MB / 0.5099 GB, free: 95.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.6178, allocations: 4.188 kB / 0.5099 GB, free: 95.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002496/0.6181, allocations: 53.25 kB / 0.51 GB, free: 95.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007525/0.6188, allocations: 248.9 kB / 0.5102 GB, free: 95.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.781e-05/0.6189, allocations: 19.11 kB / 0.5102 GB, free: 95.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/0.6219, allocations: 2.619 MB / 0.5128 GB, free: 93.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.6219, allocations: 0 / 0.5128 GB, free: 93.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.6232, allocations: 0.813 MB / 0.5136 GB, free: 92.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.6234, allocations: 161.5 kB / 0.5137 GB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.085e-05/0.6234, allocations: 7.219 kB / 0.5137 GB, free: 92.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.6237, allocations: 33.02 kB / 0.5138 GB, free: 92.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.6238, allocations: 78.25 kB / 0.5138 GB, free: 92.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.6239, allocations: 18.36 kB / 0.5139 GB, free: 92.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001748/0.624, allocations: 174.3 kB / 0.514 GB, free: 92.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.624, allocations: 0 / 0.514 GB, free: 92.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005876/0.6246, allocations: 144.5 kB / 0.5142 GB, free: 92.42 MB / 378.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.0007513/0.6254, allocations: 398 kB / 0.5145 GB, free: 92.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.6265, allocations: 0.618 MB / 0.5151 GB, free: 91.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.6265, allocations: 4.062 kB / 0.5151 GB, free: 91.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005571/0.6271, allocations: 438.9 kB / 0.5156 GB, free: 91.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003795/0.6275, allocations: 40.98 kB / 0.5156 GB, free: 91.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.6286, allocations: 0.8272 MB / 0.5164 GB, free: 91.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001982/0.6288, allocations: 0.7805 MB / 0.5172 GB, free: 90.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002309/0.629, allocations: 74.47 kB / 0.5172 GB, free: 90.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.6291, allocations: 37.55 kB / 0.5173 GB, free: 90.49 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.6291, allocations: 0 / 0.5173 GB, free: 90.49 MB / 378.7 MB Notification: Performance of Templates: time 0.009418/0.6386, allocations: 6.983 MB / 0.5241 GB, free: 87.22 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches