Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001588/0.002651, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009609/0.0009609, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001702/0.002663, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8143/0.8143, allocations: 173.4 MB / 186 MB, free: 7.543 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.138/0.9524, allocations: 52.49 MB / 238.5 MB, free: 7.648 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 239.7 MB, free: 6.398 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.528e-06/1.078e-05, allocations: 2.312 kB / 239.7 MB, free: 6.395 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002403/0.002413, allocations: 2.401 MB / 242.1 MB, free: 3.996 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.003457, allocations: 0.9231 MB / 243.1 MB, free: 3.074 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.597e-05/0.003553, allocations: 4 kB / 243.1 MB, free: 3.07 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.003668, allocations: 44.39 kB / 243.1 MB, free: 3.027 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002887/0.003957, allocations: 143.3 kB / 243.2 MB, free: 2.891 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.004189, allocations: 171.6 kB / 243.4 MB, free: 2.723 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003018/0.004491, allocations: 422.6 kB / 243.8 MB, free: 2.309 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.004599, allocations: 48.19 kB / 243.9 MB, free: 2.258 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002392/0.004838, allocations: 271.4 kB / 244.1 MB, free: 1.992 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.005036, allocations: 183.6 kB / 244.3 MB, free: 1.812 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.001e-05/0.005076, allocations: 36 kB / 244.4 MB, free: 1.777 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.00526, allocations: 124.9 kB / 244.5 MB, free: 1.656 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.85e-05/0.005339, allocations: 75.77 kB / 244.5 MB, free: 1.582 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.082e-05/0.00541, allocations: 87.81 kB / 244.6 MB, free: 1.496 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000304/0.005714, allocations: 314.1 kB / 244.9 MB, free: 1.191 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.005724, allocations: 0 / 244.9 MB, free: 1.191 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.005725, allocations: 0 / 244.9 MB, free: 1.191 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.005735, allocations: 0 / 244.9 MB, free: 1.191 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.0006957/0.006431, allocations: 0.591 MB / 245.5 MB, free: 0.5781 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.744e-05/0.006458, allocations: 12.03 kB / 245.5 MB, free: 0.5664 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002258/0.006684, allocations: 146 kB / 245.7 MB, free: 416 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.006924, allocations: 223.7 kB / 245.9 MB, free: 164 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.812e-05/0.007002, allocations: 136 kB / 246 MB, free: 4 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.39e-05/0.007056, allocations: 29.08 kB / 246.1 MB, free: 15.97 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003094/0.007366, allocations: 316.3 kB / 246.4 MB, free: 15.64 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.007378, allocations: 6.109 kB / 246.4 MB, free: 15.64 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.0074, allocations: 20.11 kB / 246.4 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.007407, allocations: 4 kB / 246.4 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.00761, allocations: 180.7 kB / 246.6 MB, free: 15.44 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008812/0.008491, allocations: 0.8101 MB / 247.4 MB, free: 14.6 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.0087, allocations: 188 kB / 247.6 MB, free: 14.41 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.316e-05/0.008783, allocations: 76.78 kB / 247.6 MB, free: 14.33 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.008808, allocations: 7.938 kB / 247.7 MB, free: 14.32 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.008829, allocations: 43.77 kB / 247.7 MB, free: 14.27 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 1.413e-06/0.00883, allocations: 0.8438 kB / 247.7 MB, free: 14.27 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.002018/0.01085, allocations: 1.177 MB / 248.9 MB, free: 13.04 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.225e-05/0.01087, allocations: 59.16 kB / 248.9 MB, free: 12.96 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.01099, allocations: 216 kB / 249.1 MB, free: 12.74 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.01102, allocations: 33.7 kB / 249.2 MB, free: 12.7 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.55e-05/0.01106, allocations: 124.8 kB / 249.3 MB, free: 12.57 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.219e-05/0.01114, allocations: 162.6 kB / 249.5 MB, free: 12.41 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.66e-05/0.01121, allocations: 78.14 kB / 249.5 MB, free: 12.33 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.857e-05/0.01128, allocations: 338.8 kB / 249.9 MB, free: 11.99 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.51e-05/0.01137, allocations: 67.8 kB / 249.9 MB, free: 11.93 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001062/0.01147, allocations: 148.3 kB / 250.1 MB, free: 11.76 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.01164, allocations: 201.7 kB / 250.3 MB, free: 11.55 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.01164, allocations: 0 / 250.3 MB, free: 11.55 MB / 250.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0002901/0.01193, allocations: 298.1 kB / 250.6 MB, free: 11.25 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.01195, allocations: 8 kB / 250.6 MB, free: 11.24 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.01195, allocations: 3.938 kB / 250.6 MB, free: 11.23 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003896/0.01234, allocations: 251.7 kB / 250.8 MB, free: 10.99 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.01247, allocations: 55.97 kB / 250.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001533/0.014, allocations: 2.037 MB / 252.9 MB, free: 8.812 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.832e-05/0.0141, allocations: 19.98 kB / 252.9 MB, free: 8.793 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.01412, allocations: 19.94 kB / 253 MB, free: 8.773 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 8.809e-05/0.01421, allocations: 140.4 kB / 253.1 MB, free: 8.629 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.281e-05/0.01425, allocations: 31.97 kB / 253.1 MB, free: 8.598 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.154e-05/0.01429, allocations: 46.92 kB / 253.2 MB, free: 8.551 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.0143, allocations: 8 kB / 253.2 MB, free: 8.543 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.0143, allocations: 0 / 253.2 MB, free: 8.543 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.0143, allocations: 0 / 253.2 MB, free: 8.543 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00062/0.01492, allocations: 0.5711 MB / 253.7 MB, free: 7.945 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.01492, allocations: 0 / 253.7 MB, free: 7.945 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.01505, allocations: 51.91 kB / 253.8 MB, free: 7.895 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.202e-05/0.01511, allocations: 47.72 kB / 253.8 MB, free: 7.848 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000357/0.01546, allocations: 229.7 kB / 254.1 MB, free: 7.621 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.01548, allocations: 12 kB / 254.1 MB, free: 7.609 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001713/0.0172, allocations: 2.009 MB / 256.1 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.0172, allocations: 0 / 256.1 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004197/0.01762, allocations: 470.7 kB / 256.5 MB, free: 5.035 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.585e-05/0.01764, allocations: 12 kB / 256.6 MB, free: 5.023 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.903e-05/0.01774, allocations: 19.92 kB / 256.6 MB, free: 5.004 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.01786, allocations: 63.94 kB / 256.6 MB, free: 4.941 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.01788, allocations: 7.984 kB / 256.7 MB, free: 4.934 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.327e-05/0.01794, allocations: 72.61 kB / 256.7 MB, free: 4.859 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01794, allocations: 0 / 256.7 MB, free: 4.859 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003594/0.0183, allocations: 139.9 kB / 256.9 MB, free: 4.723 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.0001911/0.01849, allocations: 132.2 kB / 257 MB, free: 4.586 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005237/0.01901, allocations: 446.8 kB / 257.4 MB, free: 4.133 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/0.01902, allocations: 4 kB / 257.4 MB, free: 4.129 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003022/0.01933, allocations: 371.9 kB / 257.8 MB, free: 3.75 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.01958, allocations: 202.6 kB / 258 MB, free: 3.527 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.02175, allocations: 0.5641 MB / 258.6 MB, free: 2.934 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.2e-05/0.02182, allocations: 105.3 kB / 258.7 MB, free: 2.812 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.876e-05/0.02191, allocations: 34.97 kB / 258.7 MB, free: 2.773 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.02201, allocations: 87.36 kB / 258.8 MB, free: 2.688 MB / 250.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02201, allocations: 3.938 kB / 258.8 MB, free: 2.684 MB / 250.7 MB Notification: Performance of Templates: time 0.008698/0.03071, allocations: 7.361 MB / 266.1 MB, free: 11.38 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.519096123985946]