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.001016/0.001016, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.001312/0.001312, allocations: 168.3 kB / 25.33 MB, free: 9.445 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 0.921/0.921, allocations: 158.6 MB / 187.2 MB, free: 2.562 MB / 170.7 MB " [Timeout remaining time 179] 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.004e-06/2.004e-06, allocations: 0 / 251 MB, free: 3.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.977e-05/3.177e-05, allocations: 2.312 kB / 251 MB, free: 3.609 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004018/0.004049, allocations: 2.357 MB / 253.4 MB, free: 1.234 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.006008, allocations: 0.9566 MB / 254.3 MB, free: 268 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002031/0.006212, allocations: 4 kB / 254.3 MB, free: 264 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.006491, allocations: 51.52 kB / 254.4 MB, free: 212 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005941/0.007085, allocations: 135.1 kB / 254.5 MB, free: 76 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004277/0.007513, allocations: 175.6 kB / 254.7 MB, free: 15.9 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005235/0.008036, allocations: 430.6 kB / 255.1 MB, free: 15.48 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.008219, allocations: 47.86 kB / 255.2 MB, free: 15.44 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003999/0.008618, allocations: 247.6 kB / 255.4 MB, free: 15.2 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003302/0.008949, allocations: 191.6 kB / 255.6 MB, free: 15.01 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.825e-05/0.009017, allocations: 32 kB / 255.6 MB, free: 14.98 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002491/0.009266, allocations: 123.8 kB / 255.8 MB, free: 14.86 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.009412, allocations: 99.69 kB / 255.8 MB, free: 14.76 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.00955, allocations: 123.7 kB / 256 MB, free: 14.64 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005796/0.01013, allocations: 362.8 kB / 256.3 MB, free: 14.28 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.01013, allocations: 4 kB / 256.3 MB, free: 14.28 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.01014, allocations: 0 / 256.3 MB, free: 14.28 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.01015, allocations: 0 / 256.3 MB, free: 14.28 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.001142/0.01129, allocations: 0.6557 MB / 257 MB, free: 13.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.01134, allocations: 11.98 kB / 257 MB, free: 13.57 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003459/0.01168, allocations: 80.69 kB / 257.1 MB, free: 13.5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004903/0.01217, allocations: 252.8 kB / 257.3 MB, free: 13.22 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.01234, allocations: 144 kB / 257.5 MB, free: 13.05 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.691e-05/0.01241, allocations: 28.38 kB / 257.5 MB, free: 13.03 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006686/0.01308, allocations: 336.3 kB / 257.8 MB, free: 12.67 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.0131, allocations: 12.19 kB / 257.8 MB, free: 12.66 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.642e-05/0.01313, allocations: 12.12 kB / 257.8 MB, free: 12.64 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.01315, allocations: 8 kB / 257.8 MB, free: 12.64 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005347/0.01368, allocations: 251.6 kB / 258.1 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.01559, allocations: 1.128 MB / 259.2 MB, free: 11.21 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005235/0.01612, allocations: 247 kB / 259.5 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002344/0.01635, allocations: 108.3 kB / 259.6 MB, free: 10.85 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.01639, allocations: 15.98 kB / 259.6 MB, free: 10.84 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.01643, allocations: 45.28 kB / 259.6 MB, free: 10.78 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 2.695e-06/0.01643, allocations: 0 / 259.6 MB, free: 10.78 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.003639/0.02007, allocations: 1.359 MB / 261 MB, free: 9.355 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/0.02012, allocations: 92.8 kB / 261.1 MB, free: 9.246 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002723/0.0204, allocations: 273.7 kB / 261.3 MB, free: 8.961 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.089e-05/0.02044, allocations: 41.69 kB / 261.4 MB, free: 8.914 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.02055, allocations: 179.5 kB / 261.6 MB, free: 8.734 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.02067, allocations: 158.9 kB / 261.7 MB, free: 8.578 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.02081, allocations: 87.83 kB / 261.8 MB, free: 8.484 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.02096, allocations: 0.5079 MB / 262.3 MB, free: 7.965 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002339/0.0212, allocations: 96.94 kB / 262.4 MB, free: 7.871 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/0.02147, allocations: 197.2 kB / 262.6 MB, free: 7.645 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004247/0.0219, allocations: 246.3 kB / 262.8 MB, free: 7.383 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.0219, allocations: 32 / 262.8 MB, free: 7.383 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008226/0.02272, allocations: 424.9 kB / 263.3 MB, free: 6.957 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.02275, allocations: 7.938 kB / 263.3 MB, free: 6.949 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.02276, allocations: 4 kB / 263.3 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006282/0.02339, allocations: 227.5 kB / 263.5 MB, free: 6.719 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.0236, allocations: 43.97 kB / 263.5 MB, free: 6.676 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003489/0.02709, allocations: 2.865 MB / 266.4 MB, free: 3.688 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.02738, allocations: 19.98 kB / 266.4 MB, free: 3.668 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.02742, allocations: 16 kB / 266.4 MB, free: 3.652 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.0002033/0.02763, allocations: 180.5 kB / 266.6 MB, free: 3.465 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.02774, allocations: 47.73 kB / 266.7 MB, free: 3.418 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.021e-05/0.02781, allocations: 42.98 kB / 266.7 MB, free: 3.379 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.02782, allocations: 4 kB / 266.7 MB, free: 3.375 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.02782, allocations: 4 kB / 266.7 MB, free: 3.371 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.02783, allocations: 3.984 kB / 266.7 MB, free: 3.367 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.02897, allocations: 0.8301 MB / 267.5 MB, free: 2.488 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.02897, allocations: 4 kB / 267.5 MB, free: 2.484 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.02913, allocations: 35.98 kB / 267.6 MB, free: 2.449 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003818/0.02951, allocations: 211.4 kB / 267.8 MB, free: 2.238 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.02953, allocations: 15.98 kB / 267.8 MB, free: 2.223 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002553/0.03209, allocations: 2.863 MB / 270.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.03209, allocations: 0 / 270.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006845/0.03277, allocations: 0.6434 MB / 271.3 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.771e-05/0.03286, allocations: 63.75 kB / 271.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.167e-05/0.03289, allocations: 12 kB / 271.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.03302, allocations: 15.98 kB / 271.4 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.03317, allocations: 59.88 kB / 271.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.0332, allocations: 15.98 kB / 271.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001563/0.03335, allocations: 208.1 kB / 271.7 MB, free: 14.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03335, allocations: 3.938 kB / 271.7 MB, free: 14.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004462/0.0338, allocations: 135.9 kB / 271.8 MB, free: 14.07 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.000232/0.03403, allocations: 151 kB / 272 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007368/0.03477, allocations: 0.554 MB / 272.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.03477, allocations: 0 / 272.5 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003774/0.03515, allocations: 436.5 kB / 272.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.03545, allocations: 59.56 kB / 273 MB, free: 12.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.03675, allocations: 0.5973 MB / 273.6 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.333e-05/0.03683, allocations: 109.1 kB / 273.7 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.03694, allocations: 46.95 kB / 273.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.534e-05/0.03701, allocations: 32.48 kB / 273.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of SimCode: time 1.653e-06/0.03701, allocations: 0 / 273.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of Templates: time 0.009263/0.04627, allocations: 7.048 MB / 280.8 MB, free: 4.977 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] 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","",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.9401488951407373]