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.00142/0.00142, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001408/0.001408, allocations: 145.1 kB / 24.54 MB, free: 40 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 0.9333/0.9333, allocations: 173.4 MB / 201.1 MB, free: 8.977 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.203e-06/1.203e-06, allocations: 0 / 268 MB, free: 6.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.202e-05/1.323e-05, allocations: 2.312 kB / 268 MB, free: 6.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002435/0.002448, allocations: 2.451 MB / 270.4 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.00349, allocations: 0.9557 MB / 271.4 MB, free: 2.879 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.171e-05/0.003581, allocations: 4 kB / 271.4 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001791/0.00376, allocations: 47.52 kB / 271.4 MB, free: 2.828 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003769/0.004137, allocations: 175 kB / 271.6 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001945/0.004332, allocations: 179.6 kB / 271.8 MB, free: 2.48 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002993/0.004631, allocations: 486.3 kB / 272.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.004755, allocations: 61.06 kB / 272.3 MB, free: 1.938 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/0.004994, allocations: 283.5 kB / 272.6 MB, free: 1.66 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.005198, allocations: 223.5 kB / 272.8 MB, free: 1.441 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.349e-05/0.005242, allocations: 36 kB / 272.8 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.005386, allocations: 119.9 kB / 273 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.265e-05/0.005479, allocations: 111.7 kB / 273.1 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.425e-05/0.005573, allocations: 135.7 kB / 273.2 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.005915, allocations: 398.8 kB / 273.6 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.005917, allocations: 3.938 kB / 273.6 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.005918, allocations: 0 / 273.6 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.005922, allocations: 0 / 273.6 MB, free: 0.6523 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.0007714/0.006693, allocations: 0.6912 MB / 274.3 MB, free: 15.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.006724, allocations: 8.922 kB / 274.3 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002107/0.006935, allocations: 88.67 kB / 274.4 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.007222, allocations: 268.5 kB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.397e-05/0.007316, allocations: 148 kB / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.369e-05/0.00736, allocations: 36.33 kB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.007798, allocations: 348.9 kB / 275.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.007812, allocations: 4.188 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.007842, allocations: 15.75 kB / 275.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.007853, allocations: 11.98 kB / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000345/0.008198, allocations: 267.7 kB / 275.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009082/0.009106, allocations: 0.7605 MB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.009489, allocations: 269.7 kB / 276.5 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.009655, allocations: 137.1 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.009683, allocations: 8.5 kB / 276.6 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.009707, allocations: 49.83 kB / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.693e-06/0.009709, allocations: 0 / 276.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002557/0.01227, allocations: 1.535 MB / 278.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.0123, allocations: 85.55 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.01246, allocations: 273.6 kB / 278.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.01249, allocations: 41.7 kB / 278.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.844e-05/0.01256, allocations: 187.8 kB / 278.8 MB, free: 11.19 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.814e-05/0.01266, allocations: 190.4 kB / 279 MB, free: 11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.01276, allocations: 95.78 kB / 279.1 MB, free: 10.9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.01287, allocations: 0.5079 MB / 279.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.01302, allocations: 108.9 kB / 279.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.01321, allocations: 190.2 kB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/0.01351, allocations: 249.3 kB / 280.1 MB, free: 9.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.01351, allocations: 0 / 280.1 MB, free: 9.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005156/0.01402, allocations: 445.8 kB / 280.5 MB, free: 9.371 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.01404, allocations: 8 kB / 280.5 MB, free: 9.363 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.01404, allocations: 3.938 kB / 280.6 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004007/0.01444, allocations: 213.4 kB / 280.8 MB, free: 9.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.0146, allocations: 63.91 kB / 280.8 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/0.0167, allocations: 2.91 MB / 283.7 MB, free: 6.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.01681, allocations: 19.98 kB / 283.8 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.01683, allocations: 16 kB / 283.8 MB, free: 6.02 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.0001098/0.01694, allocations: 192.2 kB / 284 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.01701, allocations: 47.81 kB / 284 MB, free: 5.777 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.054e-05/0.01705, allocations: 47.31 kB / 284 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.01705, allocations: 7.938 kB / 284.1 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.01705, allocations: 0 / 284.1 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.01706, allocations: 3.984 kB / 284.1 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.01832, allocations: 0.9714 MB / 285 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.01832, allocations: 8.031 kB / 285 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.01848, allocations: 59.89 kB / 285.1 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003301/0.01881, allocations: 211.5 kB / 285.3 MB, free: 4.426 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.01884, allocations: 12 kB / 285.3 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001929/0.02076, allocations: 2.854 MB / 288.2 MB, free: 1.445 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.02077, allocations: 4 kB / 288.2 MB, free: 1.441 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007363/0.0215, allocations: 0.7129 MB / 288.9 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.274e-05/0.02159, allocations: 71.75 kB / 289 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.255e-05/0.02163, allocations: 15.98 kB / 289 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.02175, allocations: 19.98 kB / 289 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.02186, allocations: 68.36 kB / 289.1 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.02188, allocations: 20.06 kB / 289.1 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.942e-05/0.02198, allocations: 203.8 kB / 289.3 MB, free: 316 kB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02198, allocations: 0 / 289.3 MB, free: 316 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003441/0.02233, allocations: 151.9 kB / 289.4 MB, free: 164 kB / 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.0001708/0.0225, allocations: 151.1 kB / 289.6 MB, free: 0 / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.08742/0.1099, allocations: 0.5876 MB / 290.2 MB, free: 29.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1099, allocations: 0 / 290.2 MB, free: 29.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004463/0.1104, allocations: 468.2 kB / 290.6 MB, free: 29.44 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.1107, allocations: 65.44 kB / 290.7 MB, free: 29.44 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.1118, allocations: 0.6936 MB / 291.4 MB, free: 29.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.719e-05/0.1119, allocations: 114.3 kB / 291.5 MB, free: 29.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.112, allocations: 53.61 kB / 291.5 MB, free: 29.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.572e-05/0.1121, allocations: 38.12 kB / 291.6 MB, free: 29.06 MB / 266.7 MB Notification: Performance of SimCode: time 1.302e-06/0.1121, allocations: 0 / 291.6 MB, free: 29.06 MB / 266.7 MB Notification: Performance of Templates: time 0.01016/0.1222, allocations: 7.608 MB / 299.2 MB, free: 27.35 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.769036015961319]