Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001419/0.001419, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.001489/0.001489, allocations: 168.6 kB / 24.82 MB, free: 9.203 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9949/0.9949, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 273.4 MB, free: 1.285 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.28e-05/1.422e-05, allocations: 2.312 kB / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002583/0.002597, allocations: 2.531 MB / 275.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001629/0.004225, allocations: 1.096 MB / 277 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.004336, allocations: 7.938 kB / 277 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00023/0.004566, allocations: 63.48 kB / 277.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003291/0.004895, allocations: 190.7 kB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002495/0.005145, allocations: 191.5 kB / 277.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003506/0.005495, allocations: 0.5256 MB / 278 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.005624, allocations: 65.06 kB / 278 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.005945, allocations: 315.4 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002246/0.006169, allocations: 235.5 kB / 278.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.022e-05/0.006219, allocations: 40 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.006386, allocations: 139.8 kB / 278.8 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.694e-05/0.006483, allocations: 115.7 kB / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004541/0.006937, allocations: 151.6 kB / 279 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003784/0.007315, allocations: 446.5 kB / 279.5 MB, free: 11.19 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.007318, allocations: 8 kB / 279.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.007318, allocations: 0 / 279.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.007323, allocations: 0 / 279.5 MB, free: 11.18 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.000764/0.008087, allocations: 0.7295 MB / 280.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.008119, allocations: 8.031 kB / 280.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002359/0.008355, allocations: 92.67 kB / 280.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.008632, allocations: 268.7 kB / 280.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.765e-05/0.008729, allocations: 144 kB / 280.7 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.399e-05/0.008773, allocations: 32.33 kB / 280.7 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005117/0.009285, allocations: 336.8 kB / 281.1 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.0093, allocations: 4.188 kB / 281.1 MB, free: 9.473 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.594e-05/0.009326, allocations: 16.12 kB / 281.1 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.009336, allocations: 8 kB / 281.1 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002774/0.009613, allocations: 224.2 kB / 281.3 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009296/0.01054, allocations: 0.7336 MB / 282 MB, free: 8.469 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003139/0.01086, allocations: 224.1 kB / 282.3 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.01099, allocations: 109.1 kB / 282.4 MB, free: 8.133 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.01101, allocations: 12.48 kB / 282.4 MB, free: 8.117 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.01104, allocations: 46.02 kB / 282.4 MB, free: 8.062 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.653e-06/0.01104, allocations: 0 / 282.4 MB, free: 8.062 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002026/0.01307, allocations: 1.336 MB / 283.8 MB, free: 6.668 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.01311, allocations: 85.61 kB / 283.8 MB, free: 6.566 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.01329, allocations: 266.6 kB / 284.1 MB, free: 6.285 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/0.01332, allocations: 37.7 kB / 284.1 MB, free: 6.242 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.727e-05/0.01341, allocations: 183.9 kB / 284.3 MB, free: 6.059 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.01353, allocations: 198.3 kB / 284.5 MB, free: 5.863 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.01365, allocations: 95.8 kB / 284.6 MB, free: 5.762 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.0138, allocations: 0.5195 MB / 285.1 MB, free: 5.23 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.01391, allocations: 72.94 kB / 285.2 MB, free: 5.156 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.01406, allocations: 158.2 kB / 285.3 MB, free: 4.984 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.01428, allocations: 213.1 kB / 285.6 MB, free: 4.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.01429, allocations: 0 / 285.6 MB, free: 4.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0004275/0.01471, allocations: 385.7 kB / 285.9 MB, free: 4.383 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.01473, allocations: 4 kB / 285.9 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.01473, allocations: 0 / 285.9 MB, free: 4.379 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006358/0.01537, allocations: 229.4 kB / 286.2 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.01552, allocations: 67.88 kB / 286.2 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001897/0.01741, allocations: 2.81 MB / 289 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.01753, allocations: 27.92 kB / 289.1 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.01756, allocations: 20.02 kB / 289.1 MB, free: 1.113 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.0001082/0.01767, allocations: 180.5 kB / 289.3 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.835e-05/0.01774, allocations: 47.81 kB / 289.3 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.513e-05/0.01779, allocations: 51.3 kB / 289.4 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.01779, allocations: 4 kB / 289.4 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.01779, allocations: 0 / 289.4 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.01779, allocations: 3.984 kB / 289.4 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1073/0.1251, allocations: 0.8965 MB / 290.3 MB, free: 24.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.1251, allocations: 0 / 290.3 MB, free: 24.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00028/0.1254, allocations: 65.14 kB / 290.3 MB, free: 24.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004175/0.1258, allocations: 217.8 kB / 290.5 MB, free: 24.65 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.293e-05/0.1258, allocations: 16.61 kB / 290.6 MB, free: 24.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001753/0.1276, allocations: 2.777 MB / 293.3 MB, free: 22.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1276, allocations: 1.25 kB / 293.3 MB, free: 22.73 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006534/0.1282, allocations: 0.6351 MB / 294 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.1283, allocations: 79.39 kB / 294 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.1284, allocations: 16.03 kB / 294.1 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.1285, allocations: 21.84 kB / 294.1 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.1286, allocations: 70.52 kB / 294.1 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.1287, allocations: 13.83 kB / 294.2 MB, free: 22.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.159e-05/0.1287, allocations: 190.5 kB / 294.3 MB, free: 22.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1287, allocations: 0 / 294.3 MB, free: 22.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004372/0.1292, allocations: 158 kB / 294.5 MB, free: 22.39 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.0007199/0.1299, allocations: 366 kB / 294.9 MB, free: 22.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006361/0.1305, allocations: 0.5395 MB / 295.4 MB, free: 22.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.1305, allocations: 4.688 kB / 295.4 MB, free: 22.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003672/0.1309, allocations: 450.5 kB / 295.8 MB, free: 21.86 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/0.1312, allocations: 75.58 kB / 295.9 MB, free: 21.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009967/0.1322, allocations: 0.6965 MB / 296.6 MB, free: 21.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.688e-05/0.1323, allocations: 115.4 kB / 296.7 MB, free: 21.44 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001401/0.1324, allocations: 61.73 kB / 296.8 MB, free: 21.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001489/0.1326, allocations: 127.2 kB / 296.9 MB, free: 21.36 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.1326, allocations: 0 / 296.9 MB, free: 21.36 MB / 266.7 MB Notification: Performance of Templates: time 0.009925/0.1425, allocations: 8.364 MB / 305.3 MB, free: 18.81 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.901557377073914]