Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 95.5 kB / 21.2 MB, free: 3.363 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009731/0.0009731, allocations: 160.5 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9813/0.9813, allocations: 177 MB / 204.8 MB, free: 5.16 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 272.9 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.11e-05/2.279e-05, allocations: 5.266 kB / 272.9 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002868/0.00289, allocations: 2.482 MB / 275.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.004441, allocations: 1.03 MB / 276.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.004606, allocations: 7.938 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003233/0.00493, allocations: 63.42 kB / 276.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000432/0.005362, allocations: 160 kB / 276.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003491/0.005711, allocations: 159.6 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004365/0.006147, allocations: 486.5 kB / 277.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.006289, allocations: 48.91 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002599/0.006549, allocations: 279.5 kB / 277.6 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002596/0.006808, allocations: 207.5 kB / 277.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.747e-05/0.006866, allocations: 40 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.007077, allocations: 127.8 kB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.007189, allocations: 111.7 kB / 278.1 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.007292, allocations: 131.7 kB / 278.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004604/0.007752, allocations: 406.7 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.007755, allocations: 0 / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.007756, allocations: 4 kB / 278.6 MB, free: 11.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.007762, allocations: 4 kB / 278.6 MB, free: 11.57 MB / 266.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.0008531/0.008615, allocations: 0.6827 MB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.008653, allocations: 11.98 kB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002349/0.008888, allocations: 76.73 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.00923, allocations: 261.5 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.009367, allocations: 140 kB / 279.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.746e-05/0.009414, allocations: 36.36 kB / 279.8 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004469/0.009861, allocations: 340.2 kB / 280.1 MB, free: 9.918 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.009878, allocations: 8.141 kB / 280.1 MB, free: 9.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.00991, allocations: 12.12 kB / 280.1 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.009921, allocations: 8 kB / 280.1 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000344/0.01027, allocations: 255.6 kB / 280.4 MB, free: 9.641 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.01155, allocations: 1.12 MB / 281.5 MB, free: 8.469 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.0119, allocations: 226.9 kB / 281.7 MB, free: 8.234 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.01206, allocations: 115.6 kB / 281.9 MB, free: 8.117 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.01209, allocations: 8 kB / 281.9 MB, free: 8.109 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.01211, allocations: 37.39 kB / 281.9 MB, free: 8.062 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.302e-06/0.01211, allocations: 0 / 281.9 MB, free: 8.062 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002427/0.01454, allocations: 1.336 MB / 283.2 MB, free: 6.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.01458, allocations: 96.78 kB / 283.3 MB, free: 6.547 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.01476, allocations: 261.9 kB / 283.6 MB, free: 6.273 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.01479, allocations: 37.64 kB / 283.6 MB, free: 6.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.386e-05/0.01488, allocations: 195.5 kB / 283.8 MB, free: 6.031 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.592e-05/0.01496, allocations: 154.7 kB / 284 MB, free: 5.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.891e-05/0.01506, allocations: 87.83 kB / 284 MB, free: 5.785 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.01518, allocations: 0.5079 MB / 284.6 MB, free: 5.266 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.01533, allocations: 88.94 kB / 284.6 MB, free: 5.176 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001869/0.01552, allocations: 197.2 kB / 284.8 MB, free: 4.953 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.01579, allocations: 234.3 kB / 285.1 MB, free: 4.703 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.0158, allocations: 4 kB / 285.1 MB, free: 4.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005214/0.01632, allocations: 409 kB / 285.5 MB, free: 4.293 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.01633, allocations: 11.94 kB / 285.5 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.01634, allocations: 0 / 285.5 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000449/0.01679, allocations: 239.4 kB / 285.7 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.01694, allocations: 51.91 kB / 285.8 MB, free: 3.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002468/0.01941, allocations: 2.876 MB / 288.6 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.01952, allocations: 15.98 kB / 288.7 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.138e-05/0.01955, allocations: 27.92 kB / 288.7 MB, free: 0.9531 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.0001187/0.01967, allocations: 180.3 kB / 288.9 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.152e-05/0.01973, allocations: 43.8 kB / 288.9 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.188e-05/0.01977, allocations: 46.98 kB / 288.9 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.01978, allocations: 8.031 kB / 289 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.01978, allocations: 0 / 289 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.01978, allocations: 0 / 289 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1234/0.1431, allocations: 0.8492 MB / 289.8 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1431, allocations: 0 / 289.8 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002061/0.1434, allocations: 48.91 kB / 289.9 MB, free: 24.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004732/0.1438, allocations: 214.2 kB / 290.1 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.1439, allocations: 15.11 kB / 290.1 MB, free: 24.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002056/0.1459, allocations: 2.858 MB / 292.9 MB, free: 22.37 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1459, allocations: 1.828 kB / 292.9 MB, free: 22.37 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007324/0.1467, allocations: 0.6166 MB / 293.6 MB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.1468, allocations: 73.42 kB / 293.6 MB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.333e-05/0.1468, allocations: 8.812 kB / 293.6 MB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.1469, allocations: 19.97 kB / 293.7 MB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.1471, allocations: 62.52 kB / 293.7 MB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.1471, allocations: 17.39 kB / 293.7 MB, free: 22.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001084/0.1472, allocations: 201.6 kB / 293.9 MB, free: 22.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1472, allocations: 0 / 293.9 MB, free: 22.05 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004411/0.1476, allocations: 134.8 kB / 294.1 MB, free: 22.05 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.0007752/0.1484, allocations: 360.8 kB / 294.4 MB, free: 21.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007042/0.1491, allocations: 0.5457 MB / 295 MB, free: 21.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1491, allocations: 0 / 295 MB, free: 21.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003739/0.1495, allocations: 444.8 kB / 295.4 MB, free: 21.53 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.1498, allocations: 71.98 kB / 295.5 MB, free: 21.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.1508, allocations: 0.6093 MB / 296.1 MB, free: 21.24 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.101e-05/0.1509, allocations: 109.5 kB / 296.2 MB, free: 21.17 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.151, allocations: 75.7 kB / 296.3 MB, free: 21.15 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.216e-05/0.1511, allocations: 37.88 kB / 296.3 MB, free: 21.15 MB / 266.7 MB Notification: Performance of SimCode: time 6.92e-07/0.1511, allocations: 0 / 296.3 MB, free: 21.15 MB / 266.7 MB Notification: Performance of Templates: time 0.009153/0.1603, allocations: 7.122 MB / 303.4 MB, free: 19.21 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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: 3.2318924362771213]