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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00137/0.00137, allocations: 85.81 kB / 21.43 MB, free: 3.062 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00154/0.00154, allocations: 164.3 kB / 24.82 MB, free: 9.23 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9354/0.9354, allocations: 177 MB / 205.1 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 273.3 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.341e-05/1.487e-05, allocations: 5.266 kB / 273.3 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003277/0.003292, allocations: 2.458 MB / 275.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.004731, allocations: 1.018 MB / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.004842, allocations: 4 kB / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.005084, allocations: 67.42 kB / 276.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003454/0.005429, allocations: 159.1 kB / 277 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002782/0.005707, allocations: 163.6 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000398/0.006105, allocations: 486.5 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.006217, allocations: 44.89 kB / 277.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002698/0.006487, allocations: 283.4 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002468/0.006734, allocations: 207.5 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.446e-05/0.006789, allocations: 36 kB / 278.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001906/0.006979, allocations: 127.9 kB / 278.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.893e-05/0.007078, allocations: 107.7 kB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.007186, allocations: 131.7 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004223/0.007608, allocations: 414.6 kB / 279 MB, free: 11.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.00761, allocations: 4 kB / 279 MB, free: 11.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.007611, allocations: 3.938 kB / 279 MB, free: 11.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.007614, allocations: 0 / 279 MB, free: 11.54 MB / 266.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.0008097/0.008424, allocations: 0.6866 MB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.008459, allocations: 15.98 kB / 279.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002411/0.0087, allocations: 72.73 kB / 279.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.00901, allocations: 261.5 kB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.009114, allocations: 140 kB / 280.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.873e-05/0.009163, allocations: 32.38 kB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004026/0.009566, allocations: 316.2 kB / 280.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.009581, allocations: 8.141 kB / 280.5 MB, free: 9.906 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.772e-05/0.009608, allocations: 16.11 kB / 280.5 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002002/0.009809, allocations: 12 kB / 280.5 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003263/0.01013, allocations: 204.2 kB / 280.7 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.01144, allocations: 1.089 MB / 281.8 MB, free: 8.547 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003187/0.01175, allocations: 206.9 kB / 282 MB, free: 8.332 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.01189, allocations: 87.78 kB / 282.1 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.01192, allocations: 12 kB / 282.1 MB, free: 8.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.01194, allocations: 37.39 kB / 282.2 MB, free: 8.184 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.583e-06/0.01194, allocations: 0 / 282.2 MB, free: 8.184 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002415/0.01436, allocations: 1.2 MB / 283.4 MB, free: 6.918 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.01439, allocations: 84.86 kB / 283.4 MB, free: 6.816 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.01457, allocations: 270 kB / 283.7 MB, free: 6.535 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.0146, allocations: 37.7 kB / 283.7 MB, free: 6.492 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.445e-05/0.01469, allocations: 183.5 kB / 283.9 MB, free: 6.305 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.01479, allocations: 158.7 kB / 284.1 MB, free: 6.148 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.01491, allocations: 91.8 kB / 284.2 MB, free: 6.051 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.01504, allocations: 0.5079 MB / 284.7 MB, free: 5.531 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.833e-05/0.01514, allocations: 72.94 kB / 284.7 MB, free: 5.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.01527, allocations: 181.2 kB / 284.9 MB, free: 5.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.01547, allocations: 206.2 kB / 285.1 MB, free: 5.027 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.01547, allocations: 4 kB / 285.1 MB, free: 5.023 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000403/0.01588, allocations: 364.9 kB / 285.5 MB, free: 4.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.01589, allocations: 8 kB / 285.5 MB, free: 4.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.01589, allocations: 0 / 285.5 MB, free: 4.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003638/0.01626, allocations: 231.4 kB / 285.7 MB, free: 4.422 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.01638, allocations: 55.83 kB / 285.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00207/0.01845, allocations: 2.784 MB / 288.6 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.01855, allocations: 19.98 kB / 288.6 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.548e-05/0.01858, allocations: 16 kB / 288.6 MB, free: 1.434 MB / 266.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.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 9.718e-05/0.01867, allocations: 176.5 kB / 288.8 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.781e-05/0.01873, allocations: 47.89 kB / 288.8 MB, free: 1.203 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.584e-05/0.01877, allocations: 39 kB / 288.8 MB, free: 1.164 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.01877, allocations: 7.938 kB / 288.9 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.01877, allocations: 0 / 288.9 MB, free: 1.156 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.01878, allocations: 3.984 kB / 288.9 MB, free: 1.152 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007915/0.01957, allocations: 0.7877 MB / 289.6 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.01957, allocations: 0 / 289.6 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.01968, allocations: 43.91 kB / 289.7 MB, free: 292 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003189/0.02, allocations: 211.5 kB / 289.9 MB, free: 76 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.02002, allocations: 15.98 kB / 289.9 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001723/0.02175, allocations: 2.777 MB / 292.7 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.02175, allocations: 0 / 292.7 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005395/0.02229, allocations: 0.5609 MB / 293.2 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.642e-05/0.02237, allocations: 75.73 kB / 293.3 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.779e-05/0.0224, allocations: 15.88 kB / 293.3 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.02251, allocations: 15.98 kB / 293.4 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.94e-05/0.0226, allocations: 63.88 kB / 293.4 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.02262, allocations: 11.98 kB / 293.4 MB, free: 12.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.108e-05/0.0227, allocations: 191.1 kB / 293.6 MB, free: 12.22 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0227, allocations: 0 / 293.6 MB, free: 12.22 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003539/0.02306, allocations: 144 kB / 293.8 MB, free: 12.08 MB / 282.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006568/0.02371, allocations: 336.4 kB / 294.1 MB, free: 11.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005109/0.02422, allocations: 0.5078 MB / 294.6 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.02423, allocations: 0 / 294.6 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005495/0.02478, allocations: 424.1 kB / 295 MB, free: 10.87 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.02503, allocations: 72.08 kB / 295.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008055/0.02584, allocations: 0.6045 MB / 295.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.382e-05/0.0259, allocations: 109.2 kB / 295.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000112/0.02601, allocations: 62.92 kB / 295.8 MB, free: 9.98 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.02614, allocations: 122.2 kB / 296 MB, free: 9.859 MB / 282.7 MB Notification: Performance of SimCode: time 4.31e-07/0.02614, allocations: 0 / 296 MB, free: 9.859 MB / 282.7 MB Notification: Performance of Templates: time 0.009098/0.03524, allocations: 7.799 MB / 303.8 MB, free: 2.109 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8749314239248633]