Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001286/0.001286, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009343/0.0009343, allocations: 139.9 kB / 24.89 MB, free: 9.207 MB / 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 0.8669/0.8669, allocations: 173.4 MB / 201.5 MB, free: 9.207 MB / 186.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 268.5 MB, free: 6.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.19e-05/1.338e-05, allocations: 2.312 kB / 268.5 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00233/0.002344, allocations: 2.426 MB / 270.9 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.003546, allocations: 0.9672 MB / 271.9 MB, free: 2.805 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.003649, allocations: 4 kB / 271.9 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.003833, allocations: 51.52 kB / 271.9 MB, free: 2.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003971/0.00423, allocations: 166.9 kB / 272.1 MB, free: 2.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002258/0.004456, allocations: 183.6 kB / 272.2 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003253/0.004781, allocations: 486.3 kB / 272.7 MB, free: 1.93 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.004906, allocations: 71.03 kB / 272.8 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/0.005173, allocations: 287.4 kB / 273.1 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002031/0.005376, allocations: 207.5 kB / 273.3 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.532e-05/0.005422, allocations: 40 kB / 273.3 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.005563, allocations: 119.9 kB / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.819e-05/0.005661, allocations: 103.7 kB / 273.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.453e-05/0.005756, allocations: 139.6 kB / 273.7 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000346/0.006102, allocations: 402.7 kB / 274.1 MB, free: 0.582 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.006103, allocations: 4 kB / 274.1 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.006104, allocations: 0 / 274.1 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.006109, allocations: 0 / 274.1 MB, free: 0.5781 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.000649/0.006758, allocations: 0.5544 MB / 274.6 MB, free: 0 / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.691e-05/0.006784, allocations: 17.03 kB / 274.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001994/0.006984, allocations: 80.8 kB / 274.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000253/0.007237, allocations: 221.8 kB / 274.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.416e-05/0.007331, allocations: 144 kB / 275.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.557e-05/0.007377, allocations: 28.38 kB / 275.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003459/0.007722, allocations: 326 kB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.007735, allocations: 8.172 kB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.007759, allocations: 20.12 kB / 275.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.505e-06/0.007767, allocations: 8 kB / 275.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.008014, allocations: 187.2 kB / 275.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000796/0.00881, allocations: 0.5791 MB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.009082, allocations: 205.1 kB / 276.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.009189, allocations: 98.25 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.009214, allocations: 8.5 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.009236, allocations: 39.06 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.332e-06/0.009238, allocations: 0 / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.001898/0.01114, allocations: 1.283 MB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.01117, allocations: 85.61 kB / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.01129, allocations: 211.9 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.01132, allocations: 41.7 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.854e-05/0.01137, allocations: 125.1 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.01148, allocations: 194.4 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.381e-05/0.01157, allocations: 82.14 kB / 278.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.756e-05/0.01166, allocations: 350.7 kB / 278.9 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.01176, allocations: 71.78 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.01188, allocations: 133.7 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.01208, allocations: 209.2 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.01208, allocations: 8.031 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0003315/0.01241, allocations: 302.9 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.01243, allocations: 4 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.01243, allocations: 4 kB / 279.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003289/0.01276, allocations: 198.6 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.0129, allocations: 63.89 kB / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001658/0.01456, allocations: 2.058 MB / 281.9 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.01468, allocations: 19.98 kB / 282 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.0147, allocations: 12 kB / 282 MB, free: 8.305 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0001049/0.0148, allocations: 144.6 kB / 282.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.068e-05/0.01485, allocations: 35.97 kB / 282.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.374e-05/0.0149, allocations: 51.3 kB / 282.2 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.0149, allocations: 4 kB / 282.2 MB, free: 8.066 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.0149, allocations: 0 / 282.2 MB, free: 8.066 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.01491, allocations: 7.969 kB / 282.2 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007411/0.01565, allocations: 0.6597 MB / 282.9 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01565, allocations: 4.031 kB / 282.9 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.01581, allocations: 59.95 kB / 282.9 MB, free: 7.305 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002882/0.01609, allocations: 192.6 kB / 283.1 MB, free: 7.113 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.01611, allocations: 15.92 kB / 283.1 MB, free: 7.098 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001396/0.01751, allocations: 1.99 MB / 285.1 MB, free: 5.023 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.01751, allocations: 0 / 285.1 MB, free: 5.023 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004889/0.018, allocations: 0.5152 MB / 285.6 MB, free: 4.484 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.688e-05/0.01808, allocations: 47.77 kB / 285.7 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.27e-05/0.01811, allocations: 12 kB / 285.7 MB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.01823, allocations: 19.98 kB / 285.7 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.124e-05/0.01832, allocations: 68.36 kB / 285.8 MB, free: 4.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.01834, allocations: 20.05 kB / 285.8 MB, free: 4.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.744e-05/0.0184, allocations: 76.31 kB / 285.9 MB, free: 4.242 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0184, allocations: 0 / 285.9 MB, free: 4.242 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003211/0.01872, allocations: 147.9 kB / 286 MB, free: 4.098 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.0001547/0.01887, allocations: 132.3 kB / 286.2 MB, free: 3.961 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004619/0.01933, allocations: 469.5 kB / 286.6 MB, free: 3.484 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.01934, allocations: 4 kB / 286.6 MB, free: 3.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002844/0.01962, allocations: 370 kB / 287 MB, free: 3.098 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002153/0.01984, allocations: 67.95 kB / 287 MB, free: 3.031 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008516/0.02069, allocations: 0.6535 MB / 287.7 MB, free: 2.348 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.138e-05/0.02075, allocations: 110.3 kB / 287.8 MB, free: 2.219 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.14e-05/0.02084, allocations: 50.98 kB / 287.9 MB, free: 2.172 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.02096, allocations: 95.34 kB / 287.9 MB, free: 2.078 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.02096, allocations: 0 / 287.9 MB, free: 2.078 MB / 266.7 MB Notification: Performance of Templates: time 0.128/0.149, allocations: 7.647 MB / 295.6 MB, free: 28.22 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.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.7381662568077445]