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.001923/0.001923, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 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.002138/0.002138, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 18.57 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 1.443/1.443, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] 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.643e-06/1.643e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.574e-05/2.738e-05, allocations: 2.312 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004008/0.004035, allocations: 2.231 MB / 269.5 MB, free: 4.492 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.005821, allocations: 0.8818 MB / 270.4 MB, free: 3.605 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.00593, allocations: 7.938 kB / 270.4 MB, free: 3.598 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00021/0.00614, allocations: 47.58 kB / 270.5 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004956/0.006636, allocations: 147.1 kB / 270.6 MB, free: 3.406 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003589/0.006995, allocations: 171.6 kB / 270.8 MB, free: 3.238 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005398/0.007535, allocations: 434.6 kB / 271.2 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.007676, allocations: 44.88 kB / 271.3 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003373/0.008014, allocations: 259.4 kB / 271.5 MB, free: 2.512 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000323/0.008337, allocations: 191.5 kB / 271.7 MB, free: 2.324 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.764e-05/0.008404, allocations: 32 kB / 271.7 MB, free: 2.293 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00022/0.008624, allocations: 115.9 kB / 271.8 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.008767, allocations: 95.7 kB / 271.9 MB, free: 2.086 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.008924, allocations: 119.7 kB / 272 MB, free: 1.969 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006492/0.009573, allocations: 490.5 kB / 272.5 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.009577, allocations: 0 / 272.5 MB, free: 1.488 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.009578, allocations: 0 / 272.5 MB, free: 1.488 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.009583, allocations: 0 / 272.5 MB, free: 1.488 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.001306/0.01089, allocations: 0.5597 MB / 273.1 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.01093, allocations: 8.922 kB / 273.1 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004084/0.01134, allocations: 76.73 kB / 273.2 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005088/0.01185, allocations: 257.2 kB / 273.4 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001958/0.01204, allocations: 140 kB / 273.6 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.481e-05/0.01212, allocations: 32.33 kB / 273.6 MB, free: 356 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008207/0.01294, allocations: 401 kB / 274 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.01296, allocations: 4.125 kB / 274 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.374e-05/0.01301, allocations: 16.12 kB / 274 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.01302, allocations: 7.938 kB / 274 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000928/0.01395, allocations: 410.3 kB / 274.4 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.01615, allocations: 1.069 MB / 275.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000746/0.01689, allocations: 338.4 kB / 275.8 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004202/0.01732, allocations: 168.8 kB / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.01735, allocations: 12.72 kB / 276 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.01739, allocations: 38.56 kB / 276 MB, free: 13.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.833e-06/0.01739, allocations: 0 / 276 MB, free: 13.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.00545/0.02284, allocations: 1.7 MB / 277.7 MB, free: 12.06 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.779e-05/0.02293, allocations: 92.8 kB / 277.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003392/0.02327, allocations: 234.3 kB / 278 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.141e-05/0.02332, allocations: 37.7 kB / 278.1 MB, free: 11.67 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.02344, allocations: 140.8 kB / 278.2 MB, free: 11.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.0236, allocations: 158.8 kB / 278.4 MB, free: 11.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.02376, allocations: 90.06 kB / 278.5 MB, free: 11.28 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.02397, allocations: 330.8 kB / 278.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004164/0.02438, allocations: 168.9 kB / 278.9 MB, free: 10.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004991/0.02488, allocations: 256.2 kB / 279.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007917/0.02567, allocations: 352.1 kB / 279.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.02568, allocations: 0 / 279.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001309/0.02698, allocations: 0.5607 MB / 280.1 MB, free: 9.574 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.027, allocations: 7.938 kB / 280.1 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.02701, allocations: 4 kB / 280.1 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008141/0.02783, allocations: 244.7 kB / 280.4 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.02808, allocations: 51.91 kB / 280.4 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004638/0.03272, allocations: 2.744 MB / 283.1 MB, free: 6.426 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003038/0.03302, allocations: 27.97 kB / 283.2 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.874e-05/0.03307, allocations: 16 kB / 283.2 MB, free: 6.383 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 0.0004867/0.03356, allocations: 153.8 kB / 283.3 MB, free: 6.223 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.03367, allocations: 47.75 kB / 283.4 MB, free: 6.176 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001187/0.03379, allocations: 42.98 kB / 283.4 MB, free: 6.133 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.0338, allocations: 4 kB / 283.4 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.0338, allocations: 4.062 kB / 283.4 MB, free: 6.125 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.0338, allocations: 0 / 283.4 MB, free: 6.125 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/0.03584, allocations: 0.9534 MB / 284.4 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.03584, allocations: 0 / 284.4 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002438/0.03608, allocations: 43.91 kB / 284.4 MB, free: 5.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007582/0.03684, allocations: 236.7 kB / 284.7 MB, free: 4.855 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.138e-05/0.03688, allocations: 15.98 kB / 284.7 MB, free: 4.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004364/0.04125, allocations: 2.69 MB / 287.4 MB, free: 2.047 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.04125, allocations: 3.938 kB / 287.4 MB, free: 2.043 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.04303, allocations: 0.8199 MB / 288.2 MB, free: 1.203 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.0432, allocations: 67.78 kB / 288.3 MB, free: 1.137 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.73e-05/0.04325, allocations: 12 kB / 288.3 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002777/0.04353, allocations: 24.11 kB / 288.3 MB, free: 1.102 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.04372, allocations: 59.88 kB / 288.4 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.444e-05/0.04376, allocations: 23.98 kB / 288.4 MB, free: 1.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002457/0.04401, allocations: 176.3 kB / 288.5 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04401, allocations: 0 / 288.5 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006629/0.04467, allocations: 143.9 kB / 288.7 MB, free: 0.707 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.0002762/0.04495, allocations: 147 kB / 288.8 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.09521/0.1402, allocations: 0.6043 MB / 289.4 MB, free: 32.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.1402, allocations: 0 / 289.4 MB, free: 32.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008246/0.141, allocations: 418.2 kB / 289.8 MB, free: 32.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004671/0.1415, allocations: 53.27 kB / 289.9 MB, free: 32.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.1426, allocations: 0.6394 MB / 290.5 MB, free: 32.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001485/0.1427, allocations: 174.3 kB / 290.7 MB, free: 32.01 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001719/0.1429, allocations: 58.97 kB / 290.8 MB, free: 32.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.957e-05/0.143, allocations: 33.59 kB / 290.8 MB, free: 32.01 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.143, allocations: 0 / 290.8 MB, free: 32.01 MB / 266.7 MB Notification: Performance of Templates: time 0.0116/0.1546, allocations: 6.553 MB / 297.3 MB, free: 30.65 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.518270316068083]