Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001436/0.001436, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001386/0.001386, allocations: 165.3 kB / 25.33 MB, free: 8.594 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.8915/0.8915, allocations: 158.6 MB / 187.2 MB, free: 2.93 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 251 MB, free: 7.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.247e-05/2.428e-05, allocations: 6.25 kB / 251 MB, free: 7.625 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002638/0.002662, allocations: 2.448 MB / 253.5 MB, free: 5.16 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.004043, allocations: 0.9918 MB / 254.5 MB, free: 4.152 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.004176, allocations: 7.938 kB / 254.5 MB, free: 4.145 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002069/0.004383, allocations: 47.52 kB / 254.5 MB, free: 4.098 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004506/0.004833, allocations: 170.9 kB / 254.7 MB, free: 3.93 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.005102, allocations: 183.6 kB / 254.9 MB, free: 3.75 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003645/0.005467, allocations: 486.3 kB / 255.3 MB, free: 3.273 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.005603, allocations: 57.08 kB / 255.4 MB, free: 3.219 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002927/0.005896, allocations: 295.3 kB / 255.7 MB, free: 2.93 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.006112, allocations: 203.5 kB / 255.9 MB, free: 2.73 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.653e-05/0.006158, allocations: 40 kB / 255.9 MB, free: 2.691 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001641/0.006322, allocations: 123.9 kB / 256 MB, free: 2.57 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.006428, allocations: 107.6 kB / 256.2 MB, free: 2.465 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.006531, allocations: 139.7 kB / 256.3 MB, free: 2.328 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003743/0.006905, allocations: 402.7 kB / 256.7 MB, free: 1.934 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.006907, allocations: 0 / 256.7 MB, free: 1.934 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.006908, allocations: 0 / 256.7 MB, free: 1.934 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.006913, allocations: 0 / 256.7 MB, free: 1.934 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008065/0.00772, allocations: 0.6908 MB / 257.4 MB, free: 1.203 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.007754, allocations: 11.98 kB / 257.4 MB, free: 1.191 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000217/0.007971, allocations: 84.67 kB / 257.5 MB, free: 1.109 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.008288, allocations: 276.5 kB / 257.7 MB, free: 0.8086 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.00839, allocations: 140 kB / 257.9 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.629e-05/0.008437, allocations: 32.38 kB / 257.9 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.008875, allocations: 364.8 kB / 258.3 MB, free: 244 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.008887, allocations: 192 / 258.3 MB, free: 244 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.752e-05/0.008915, allocations: 20.12 kB / 258.3 MB, free: 224 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.008924, allocations: 8 kB / 258.3 MB, free: 216 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003579/0.009282, allocations: 271.6 kB / 258.6 MB, free: 15.95 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009692/0.01025, allocations: 0.7681 MB / 259.3 MB, free: 15.14 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003941/0.01065, allocations: 265.9 kB / 259.6 MB, free: 14.88 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.01082, allocations: 145.1 kB / 259.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.01084, allocations: 8.5 kB / 259.7 MB, free: 14.72 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.01087, allocations: 37.89 kB / 259.8 MB, free: 14.68 MB / 250.7 MB Notification: Performance of pre-optimization done (n=49): time 1.513e-06/0.01087, allocations: 8 kB / 259.8 MB, free: 14.67 MB / 250.7 MB Notification: Performance of matching and sorting (n=55): time 0.002351/0.01322, allocations: 1.519 MB / 261.3 MB, free: 13.09 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.01326, allocations: 89.61 kB / 261.4 MB, free: 12.98 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.01343, allocations: 273.5 kB / 261.6 MB, free: 12.7 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.01346, allocations: 41.69 kB / 261.7 MB, free: 12.65 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.353e-05/0.01353, allocations: 183.9 kB / 261.9 MB, free: 12.46 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.01363, allocations: 190.4 kB / 262.1 MB, free: 12.28 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.898e-05/0.01373, allocations: 99.83 kB / 262.2 MB, free: 12.17 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.01384, allocations: 0.5157 MB / 262.7 MB, free: 11.64 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.014, allocations: 104.9 kB / 262.8 MB, free: 11.54 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.01418, allocations: 190.2 kB / 263 MB, free: 11.34 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.01447, allocations: 245.3 kB / 263.2 MB, free: 11.09 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.01447, allocations: 0 / 263.2 MB, free: 11.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005095/0.01498, allocations: 445.7 kB / 263.6 MB, free: 10.65 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.01499, allocations: 4 kB / 263.6 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.015, allocations: 4.031 kB / 263.6 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000399/0.0154, allocations: 220.7 kB / 263.9 MB, free: 10.42 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.01555, allocations: 59.89 kB / 263.9 MB, free: 10.36 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002153/0.01771, allocations: 2.915 MB / 266.8 MB, free: 7.324 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/0.01783, allocations: 23.92 kB / 266.9 MB, free: 7.301 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.799e-05/0.01785, allocations: 16 kB / 266.9 MB, free: 7.285 MB / 250.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.0001138/0.01797, allocations: 180.5 kB / 267 MB, free: 7.098 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.747e-05/0.01804, allocations: 43.81 kB / 267.1 MB, free: 7.055 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.69e-05/0.01808, allocations: 51.3 kB / 267.1 MB, free: 7 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.01809, allocations: 8 kB / 267.1 MB, free: 6.992 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.01809, allocations: 3.938 kB / 267.1 MB, free: 6.988 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.0181, allocations: 4.016 kB / 267.2 MB, free: 6.984 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.01914, allocations: 0.9715 MB / 268.1 MB, free: 5.965 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.01914, allocations: 0 / 268.1 MB, free: 5.965 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.01931, allocations: 59.91 kB / 268.2 MB, free: 5.906 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003314/0.01964, allocations: 211.4 kB / 268.4 MB, free: 5.695 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/0.01967, allocations: 19.98 kB / 268.4 MB, free: 5.676 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001988/0.02165, allocations: 2.846 MB / 271.3 MB, free: 2.711 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.02166, allocations: 0 / 271.3 MB, free: 2.711 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007481/0.0224, allocations: 0.7166 MB / 272 MB, free: 1.969 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.223e-05/0.0225, allocations: 75.81 kB / 272 MB, free: 1.895 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.02253, allocations: 12 kB / 272.1 MB, free: 1.883 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.02266, allocations: 23.98 kB / 272.1 MB, free: 1.859 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.02278, allocations: 72.3 kB / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/0.0228, allocations: 15.98 kB / 272.2 MB, free: 1.773 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.0229, allocations: 195.1 kB / 272.4 MB, free: 1.582 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0229, allocations: 0 / 272.4 MB, free: 1.582 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003712/0.02327, allocations: 151.9 kB / 272.5 MB, free: 1.434 MB / 250.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.0001732/0.02345, allocations: 151.1 kB / 272.7 MB, free: 1.277 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006528/0.0241, allocations: 0.5846 MB / 273.2 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.0241, allocations: 0 / 273.2 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003866/0.02449, allocations: 480 kB / 273.7 MB, free: 188 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.02475, allocations: 63.8 kB / 273.8 MB, free: 124 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.02576, allocations: 0.6981 MB / 274.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.752e-05/0.02584, allocations: 118.3 kB / 274.6 MB, free: 15.24 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.02595, allocations: 46.94 kB / 274.6 MB, free: 15.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.36e-05/0.02602, allocations: 36.48 kB / 274.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02602, allocations: 0 / 274.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of Templates: time 0.009236/0.03526, allocations: 7.609 MB / 282.3 MB, free: 7.578 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.8645993107929826]