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.001016/0.001016, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001144/0.001144, allocations: 174.4 kB / 25.61 MB, free: 8.902 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 1.037/1.037, allocations: 177.1 MB / 206.1 MB, free: 4.496 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 9.92e-07/9.92e-07, allocations: 0 / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.875e-05/1.974e-05, allocations: 2.312 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002958/0.002977, allocations: 2.536 MB / 276.7 MB, free: 1.902 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.004395, allocations: 1.096 MB / 277.8 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.004507, allocations: 7.938 kB / 277.8 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002294/0.004736, allocations: 71.41 kB / 277.9 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003334/0.00507, allocations: 182.4 kB / 278.1 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002749/0.005345, allocations: 187.6 kB / 278.2 MB, free: 376 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004077/0.005752, allocations: 0.5256 MB / 278.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.005884, allocations: 65.06 kB / 278.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004267/0.00631, allocations: 315.4 kB / 279.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005665/0.006877, allocations: 231.5 kB / 279.4 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8e-05/0.006957, allocations: 40 kB / 279.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001659/0.007123, allocations: 147.8 kB / 279.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.148e-05/0.007214, allocations: 111.7 kB / 279.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.797e-05/0.007312, allocations: 155.6 kB / 279.8 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.007715, allocations: 454.5 kB / 280.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.493e-06/0.007717, allocations: 0 / 280.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.007717, allocations: 0 / 280.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.007722, allocations: 0 / 280.3 MB, free: 14.34 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.0007452/0.008467, allocations: 0.7295 MB / 281 MB, free: 13.58 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/0.008497, allocations: 8.031 kB / 281 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002504/0.008748, allocations: 92.67 kB / 281.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002807/0.009028, allocations: 260.7 kB / 281.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.892e-05/0.009117, allocations: 148 kB / 281.5 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.48e-05/0.009162, allocations: 36.33 kB / 281.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003612/0.009523, allocations: 336.8 kB / 281.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.009537, allocations: 192 / 281.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.009562, allocations: 16.12 kB / 281.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.009571, allocations: 11.94 kB / 281.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000275/0.009846, allocations: 220.2 kB / 282.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008692/0.01071, allocations: 0.7414 MB / 282.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.01102, allocations: 213.7 kB / 283 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.01115, allocations: 109.1 kB / 283.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.01117, allocations: 8.5 kB / 283.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.0112, allocations: 45.89 kB / 283.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.572e-06/0.0112, allocations: 192 / 283.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002086/0.01328, allocations: 1.336 MB / 284.5 MB, free: 9.844 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.01332, allocations: 85.61 kB / 284.6 MB, free: 9.742 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.01349, allocations: 262.6 kB / 284.9 MB, free: 9.465 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.01353, allocations: 37.7 kB / 284.9 MB, free: 9.422 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.948e-05/0.01361, allocations: 191.9 kB / 285.1 MB, free: 9.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.01371, allocations: 194.3 kB / 285.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.01381, allocations: 99.78 kB / 285.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.01393, allocations: 0.5234 MB / 285.9 MB, free: 8.398 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.01405, allocations: 72.94 kB / 286 MB, free: 8.328 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.01419, allocations: 158.1 kB / 286.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.01443, allocations: 209.2 kB / 286.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.01443, allocations: 0 / 286.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007265/0.01515, allocations: 385.7 kB / 286.7 MB, free: 7.559 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.01517, allocations: 8.031 kB / 286.7 MB, free: 7.551 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.01517, allocations: 0 / 286.7 MB, free: 7.551 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003906/0.01556, allocations: 226.8 kB / 287 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.01572, allocations: 59.89 kB / 287 MB, free: 7.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002139/0.01786, allocations: 2.83 MB / 289.8 MB, free: 4.324 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001728/0.01803, allocations: 27.92 kB / 289.9 MB, free: 4.297 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.01806, allocations: 15.98 kB / 289.9 MB, free: 4.281 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.0001235/0.01819, allocations: 176.5 kB / 290.1 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-05/0.01827, allocations: 51.77 kB / 290.1 MB, free: 4.047 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.328e-05/0.01832, allocations: 47.3 kB / 290.2 MB, free: 4 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.01832, allocations: 8 kB / 290.2 MB, free: 3.992 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.01833, allocations: 4.031 kB / 290.2 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.01834, allocations: 3.984 kB / 290.2 MB, free: 3.984 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.01981, allocations: 0.89 MB / 291.1 MB, free: 3.051 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.01981, allocations: 4 kB / 291.1 MB, free: 3.047 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/0.02007, allocations: 63.89 kB / 291.1 MB, free: 2.984 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004053/0.02048, allocations: 223.4 kB / 291.3 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.529e-05/0.02052, allocations: 19.97 kB / 291.4 MB, free: 2.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002944/0.02346, allocations: 2.777 MB / 294.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.02347, allocations: 3.984 kB / 294.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009722/0.02444, allocations: 0.6307 MB / 294.8 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.02459, allocations: 75.73 kB / 294.8 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.724e-05/0.02465, allocations: 15.94 kB / 294.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.02487, allocations: 15.98 kB / 294.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002857/0.02516, allocations: 84.28 kB / 295 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.02519, allocations: 15.98 kB / 295 MB, free: 15 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001321/0.02533, allocations: 185.3 kB / 295.2 MB, free: 14.82 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02533, allocations: 0 / 295.2 MB, free: 14.82 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00063/0.02596, allocations: 155.9 kB / 295.3 MB, free: 14.66 MB / 282.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.0009484/0.02691, allocations: 370.8 kB / 295.7 MB, free: 14.41 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007974/0.0277, allocations: 0.5386 MB / 296.2 MB, free: 13.85 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.0277, allocations: 0 / 296.2 MB, free: 13.85 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005247/0.02823, allocations: 448 kB / 296.6 MB, free: 13.39 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004472/0.02868, allocations: 74.8 kB / 296.7 MB, free: 13.32 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.02983, allocations: 0.6904 MB / 297.4 MB, free: 12.59 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.096e-05/0.0299, allocations: 110.3 kB / 297.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001339/0.03003, allocations: 70.84 kB / 297.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.0302, allocations: 130.2 kB / 297.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.0302, allocations: 0 / 297.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of Templates: time 0.009864/0.04006, allocations: 8.517 MB / 306.2 MB, free: 3.805 MB / 282.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: 3.050530397798866]