Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001053/0.001053, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001424/0.002477, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001063/0.001063, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001365/0.002428, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9265/0.9265, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08144/1.008, allocations: 53.66 MB / 243.3 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.813e-05/1.983e-05, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002821/0.00284, allocations: 2.511 MB / 247 MB, free: 11.79 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.004139, allocations: 1.064 MB / 248.1 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.004245, allocations: 7.938 kB / 248.1 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002042/0.004449, allocations: 51.52 kB / 248.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003602/0.004809, allocations: 158.8 kB / 248.3 MB, free: 10.51 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.005118, allocations: 171.6 kB / 248.5 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00043/0.005548, allocations: 470.6 kB / 248.9 MB, free: 9.883 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.005677, allocations: 46.83 kB / 249 MB, free: 9.836 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003261/0.006003, allocations: 315.4 kB / 249.3 MB, free: 9.527 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002514/0.006254, allocations: 199.6 kB / 249.5 MB, free: 9.332 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.225e-05/0.006306, allocations: 36 kB / 249.5 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002316/0.006538, allocations: 135.9 kB / 249.6 MB, free: 9.164 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.37e-05/0.006632, allocations: 67.81 kB / 249.7 MB, free: 9.098 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.006736, allocations: 95.81 kB / 249.8 MB, free: 9.004 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004272/0.007163, allocations: 354.9 kB / 250.2 MB, free: 8.656 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.618e-05/0.007179, allocations: 4 kB / 250.2 MB, free: 8.652 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.007181, allocations: 0 / 250.2 MB, free: 8.652 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.007196, allocations: 0 / 250.2 MB, free: 8.652 MB / 250.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.0009093/0.008105, allocations: 0.6241 MB / 250.8 MB, free: 8.004 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.00814, allocations: 12.03 kB / 250.8 MB, free: 7.992 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002855/0.008425, allocations: 157.9 kB / 250.9 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/0.008756, allocations: 216.8 kB / 251.2 MB, free: 7.578 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.008872, allocations: 140 kB / 251.3 MB, free: 7.418 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.949e-05/0.008921, allocations: 36.31 kB / 251.3 MB, free: 7.383 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004123/0.009334, allocations: 319.7 kB / 251.6 MB, free: 7.043 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.009347, allocations: 192 / 251.6 MB, free: 7.043 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.009374, allocations: 16.12 kB / 251.7 MB, free: 7.027 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.009383, allocations: 8 kB / 251.7 MB, free: 7.02 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.009691, allocations: 183.2 kB / 251.8 MB, free: 6.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.0109, allocations: 0.8161 MB / 252.7 MB, free: 5.992 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.01119, allocations: 174.4 kB / 252.8 MB, free: 5.812 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.0113, allocations: 77.48 kB / 252.9 MB, free: 5.734 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.01133, allocations: 15.94 kB / 252.9 MB, free: 5.719 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.01136, allocations: 42.5 kB / 253 MB, free: 5.668 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 2.665e-06/0.01136, allocations: 3.984 kB / 253 MB, free: 5.664 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.002282/0.01364, allocations: 1.135 MB / 254.1 MB, free: 4.473 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.01367, allocations: 55.41 kB / 254.2 MB, free: 4.406 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.01384, allocations: 211.9 kB / 254.4 MB, free: 4.184 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.01387, allocations: 29.7 kB / 254.4 MB, free: 4.148 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.715e-05/0.01394, allocations: 144.7 kB / 254.5 MB, free: 4.004 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.852e-05/0.01404, allocations: 154.7 kB / 254.7 MB, free: 3.852 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.01415, allocations: 82.14 kB / 254.8 MB, free: 3.766 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.643e-05/0.01424, allocations: 342.8 kB / 255.1 MB, free: 3.422 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.01436, allocations: 59.8 kB / 255.2 MB, free: 3.359 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.01451, allocations: 144.3 kB / 255.3 MB, free: 3.195 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002539/0.01476, allocations: 201.7 kB / 255.5 MB, free: 2.98 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.01476, allocations: 0 / 255.5 MB, free: 2.98 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0004245/0.01519, allocations: 294.1 kB / 255.8 MB, free: 2.68 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.01521, allocations: 4 kB / 255.8 MB, free: 2.676 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.01521, allocations: 4 kB / 255.8 MB, free: 2.672 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004484/0.01566, allocations: 217.3 kB / 256 MB, free: 2.457 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.01585, allocations: 63.89 kB / 256.1 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002073/0.01792, allocations: 2.043 MB / 258.1 MB, free: 276 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.01806, allocations: 16 kB / 258.1 MB, free: 260 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.247e-05/0.01809, allocations: 11.98 kB / 258.1 MB, free: 248 kB / 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.0001119/0.0182, allocations: 144.6 kB / 258.3 MB, free: 92 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.245e-05/0.01827, allocations: 31.97 kB / 258.3 MB, free: 60 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.481e-05/0.01832, allocations: 46.92 kB / 258.4 MB, free: 12 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.01833, allocations: 4 kB / 258.4 MB, free: 8 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.01833, allocations: 0 / 258.4 MB, free: 8 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.01833, allocations: 0 / 258.4 MB, free: 8 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009022/0.01923, allocations: 0.5789 MB / 258.9 MB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.01924, allocations: 4 kB / 258.9 MB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.01941, allocations: 63.88 kB / 259 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.56e-05/0.01951, allocations: 39.83 kB / 259 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004007/0.01991, allocations: 215.6 kB / 259.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.01994, allocations: 15.98 kB / 259.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002065/0.022, allocations: 2.017 MB / 261.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.022, allocations: 0 / 261.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005513/0.02255, allocations: 449.3 kB / 261.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.313e-05/0.0226, allocations: 15.98 kB / 261.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.02274, allocations: 19.88 kB / 261.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.02286, allocations: 63.86 kB / 261.8 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.02289, allocations: 20.05 kB / 261.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.339e-05/0.02296, allocations: 56.8 kB / 261.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.02296, allocations: 0 / 261.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004976/0.02346, allocations: 139.9 kB / 262 MB, free: 12.19 MB / 266.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.00125/0.02471, allocations: 0.5128 MB / 262.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006179/0.02533, allocations: 441.6 kB / 263 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/0.02534, allocations: 8.25 kB / 263 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003621/0.0257, allocations: 346.3 kB / 263.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.02599, allocations: 102.7 kB / 263.4 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002992/0.02898, allocations: 0.5693 MB / 264 MB, free: 10.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.148e-05/0.02907, allocations: 109.2 kB / 264.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001536/0.02922, allocations: 62.88 kB / 264.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.02938, allocations: 95.28 kB / 264.3 MB, free: 10.12 MB / 266.7 MB Notification: Performance of SimCode: time 4.8e-07/0.02938, allocations: 0 / 264.3 MB, free: 10.12 MB / 266.7 MB Notification: Performance of Templates: time 0.01171/0.04108, allocations: 7.791 MB / 272 MB, free: 2.375 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.5701343566179276]