Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001902/0.001902, allocations: 92.31 kB / 21.73 MB, free: 2.684 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002814/0.002814, allocations: 157.2 kB / 25.02 MB, free: 8.961 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 158.6 MB / 186.8 MB, free: 2.91 MB / 170.7 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 250.3 MB, free: 7.875 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.803e-05/4.024e-05, allocations: 5.969 kB / 250.3 MB, free: 7.871 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.005577/0.005617, allocations: 2.234 MB / 252.6 MB, free: 5.621 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002865/0.008482, allocations: 0.9332 MB / 253.5 MB, free: 4.672 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003213/0.008803, allocations: 0 / 253.5 MB, free: 4.672 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003707/0.009174, allocations: 43.58 kB / 253.5 MB, free: 4.629 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009235/0.0101, allocations: 143.1 kB / 253.7 MB, free: 4.488 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006408/0.01074, allocations: 179.6 kB / 253.9 MB, free: 4.312 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008404/0.01158, allocations: 430.5 kB / 254.3 MB, free: 3.891 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.01179, allocations: 40.92 kB / 254.3 MB, free: 3.852 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000652/0.01245, allocations: 255.5 kB / 254.6 MB, free: 3.602 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007654/0.01321, allocations: 195.6 kB / 254.8 MB, free: 3.41 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.01333, allocations: 32 kB / 254.8 MB, free: 3.379 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003761/0.01371, allocations: 115.8 kB / 254.9 MB, free: 3.266 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.01392, allocations: 95.7 kB / 255 MB, free: 3.172 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002761/0.0142, allocations: 115.8 kB / 255.1 MB, free: 3.059 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.01526, allocations: 498.5 kB / 255.6 MB, free: 2.57 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.01527, allocations: 3.984 kB / 255.6 MB, free: 2.566 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.01527, allocations: 0 / 255.6 MB, free: 2.566 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.01529, allocations: 0 / 255.6 MB, free: 2.566 MB / 234.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.001935/0.01722, allocations: 0.5558 MB / 256.2 MB, free: 1.98 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.01728, allocations: 15.98 kB / 256.2 MB, free: 1.965 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005442/0.01782, allocations: 76.69 kB / 256.2 MB, free: 1.891 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008177/0.01864, allocations: 253.2 kB / 256.5 MB, free: 1.613 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002538/0.01889, allocations: 136 kB / 256.6 MB, free: 1.457 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.019, allocations: 32.38 kB / 256.7 MB, free: 1.426 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.02012, allocations: 401 kB / 257.1 MB, free: 1.008 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.02014, allocations: 192 / 257.1 MB, free: 1.008 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.267e-05/0.0202, allocations: 16.12 kB / 257.1 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.02021, allocations: 4 kB / 257.1 MB, free: 0.9883 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.02154, allocations: 418.2 kB / 257.5 MB, free: 0.582 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003178/0.02471, allocations: 1.076 MB / 258.6 MB, free: 15.46 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.02576, allocations: 326.5 kB / 258.9 MB, free: 15.13 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005883/0.02634, allocations: 172.7 kB / 259 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.848e-05/0.02639, allocations: 12.72 kB / 259.1 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.402e-05/0.02646, allocations: 38.56 kB / 259.1 MB, free: 14.9 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 3.697e-06/0.02646, allocations: 0 / 259.1 MB, free: 14.9 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.007432/0.03389, allocations: 1.691 MB / 260.8 MB, free: 13.15 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.03399, allocations: 92.8 kB / 260.9 MB, free: 13.04 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000515/0.03451, allocations: 242.2 kB / 261.1 MB, free: 12.8 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.794e-05/0.03459, allocations: 41.69 kB / 261.2 MB, free: 12.75 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.03477, allocations: 132.8 kB / 261.3 MB, free: 12.62 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.035, allocations: 154.9 kB / 261.4 MB, free: 12.46 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/0.03524, allocations: 82.17 kB / 261.5 MB, free: 12.38 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0005206/0.03576, allocations: 338.8 kB / 261.8 MB, free: 12.04 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005824/0.03634, allocations: 160.9 kB / 262 MB, free: 11.88 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007303/0.03707, allocations: 260.2 kB / 262.3 MB, free: 11.6 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.03819, allocations: 348.2 kB / 262.6 MB, free: 11.25 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.03819, allocations: 3.938 kB / 262.6 MB, free: 11.24 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00191/0.0401, allocations: 0.5685 MB / 263.2 MB, free: 10.66 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.04013, allocations: 7.938 kB / 263.2 MB, free: 10.66 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.04014, allocations: 4 kB / 263.2 MB, free: 10.65 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.04127, allocations: 248.6 kB / 263.4 MB, free: 10.41 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003631/0.04164, allocations: 55.95 kB / 263.5 MB, free: 10.35 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006609/0.04824, allocations: 2.744 MB / 266.2 MB, free: 7.504 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004767/0.04872, allocations: 27.92 kB / 266.2 MB, free: 7.477 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.77e-05/0.04882, allocations: 19.98 kB / 266.3 MB, free: 7.457 MB / 250.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 0.0003776/0.0492, allocations: 153.7 kB / 266.4 MB, free: 7.297 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.04939, allocations: 43.8 kB / 266.5 MB, free: 7.254 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001598/0.04955, allocations: 42.98 kB / 266.5 MB, free: 7.215 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.04956, allocations: 4 kB / 266.5 MB, free: 7.211 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.04957, allocations: 64 / 266.5 MB, free: 7.211 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.04958, allocations: 7.984 kB / 266.5 MB, free: 7.203 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002977/0.05256, allocations: 0.9491 MB / 267.5 MB, free: 6.211 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.05256, allocations: 0 / 267.5 MB, free: 6.211 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.05289, allocations: 47.91 kB / 267.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.0539, allocations: 236.8 kB / 267.7 MB, free: 5.93 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.208e-05/0.05396, allocations: 15.98 kB / 267.8 MB, free: 5.914 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006429/0.06039, allocations: 2.687 MB / 270.4 MB, free: 3.133 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.06039, allocations: 0 / 270.4 MB, free: 3.133 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002504/0.0629, allocations: 0.828 MB / 271.3 MB, free: 2.285 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.06315, allocations: 63.83 kB / 271.3 MB, free: 2.223 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.134e-05/0.06323, allocations: 8 kB / 271.3 MB, free: 2.215 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004052/0.06364, allocations: 32.09 kB / 271.4 MB, free: 2.184 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/0.06388, allocations: 63.81 kB / 271.4 MB, free: 2.121 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.89e-05/0.06393, allocations: 15.98 kB / 271.5 MB, free: 2.105 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003565/0.06428, allocations: 184.1 kB / 271.6 MB, free: 1.926 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.06428, allocations: 0 / 271.6 MB, free: 1.926 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00101/0.06529, allocations: 139.9 kB / 271.8 MB, free: 1.789 MB / 250.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.0004117/0.0657, allocations: 143.1 kB / 271.9 MB, free: 1.637 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001815/0.06752, allocations: 0.6125 MB / 272.5 MB, free: 1.012 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.06752, allocations: 0 / 272.5 MB, free: 1.012 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000882/0.0684, allocations: 409.7 kB / 272.9 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/0.06886, allocations: 63.89 kB / 273 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.07045, allocations: 0.6433 MB / 273.6 MB, free: 15.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.07068, allocations: 171.8 kB / 273.8 MB, free: 15.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001918/0.07087, allocations: 54.95 kB / 273.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.07098, allocations: 36.47 kB / 273.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.07098, allocations: 4 kB / 273.9 MB, free: 15.58 MB / 266.7 MB Notification: Performance of Templates: time 0.01474/0.08573, allocations: 6.551 MB / 280.4 MB, free: 9.055 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.863090492086485]