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.001012/0.001012, allocations: 88.73 kB / 21.5 MB, free: 2.98 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.001637/0.001637, allocations: 170.8 kB / 24.92 MB, free: 8.758 MB / 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.9503/0.9503, allocations: 177 MB / 205.2 MB, free: 5.059 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.312e-06/1.312e-06, allocations: 0 / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.935e-05/2.066e-05, allocations: 2.312 kB / 273.4 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002701/0.002722, allocations: 2.507 MB / 275.9 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.00391, allocations: 1.045 MB / 277 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.184e-05/0.004002, allocations: 7.938 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002368/0.004238, allocations: 67.38 kB / 277 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002877/0.004526, allocations: 156 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.004753, allocations: 159.6 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000327/0.00508, allocations: 486.5 kB / 277.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.005187, allocations: 50.84 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.005404, allocations: 279.5 kB / 278.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.00562, allocations: 199.6 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.005662, allocations: 40 kB / 278.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001878/0.00585, allocations: 135.7 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.6e-05/0.005936, allocations: 107.7 kB / 278.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.7e-05/0.006013, allocations: 127.7 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003659/0.006379, allocations: 414.6 kB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.006382, allocations: 4 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.006383, allocations: 0 / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.006387, allocations: 0 / 279.1 MB, free: 11.3 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.0006466/0.007033, allocations: 0.5503 MB / 279.7 MB, free: 10.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.007065, allocations: 11.98 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002135/0.007278, allocations: 80.88 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.007544, allocations: 218.8 kB / 280 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.948e-05/0.007643, allocations: 144 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.909e-05/0.007682, allocations: 28.36 kB / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000327/0.008009, allocations: 311.7 kB / 280.5 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.008022, allocations: 4.172 kB / 280.5 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/0.008043, allocations: 16.12 kB / 280.5 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.00805, allocations: 12 kB / 280.5 MB, free: 9.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.008281, allocations: 191.1 kB / 280.7 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009684/0.009249, allocations: 0.8083 MB / 281.5 MB, free: 8.812 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/0.009481, allocations: 178.3 kB / 281.7 MB, free: 8.629 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.091e-05/0.009572, allocations: 80.78 kB / 281.8 MB, free: 8.547 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.009599, allocations: 8 kB / 281.8 MB, free: 8.539 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.009621, allocations: 38.55 kB / 281.8 MB, free: 8.492 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.262e-06/0.009622, allocations: 0 / 281.8 MB, free: 8.492 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001817/0.01144, allocations: 1.14 MB / 282.9 MB, free: 7.297 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.01147, allocations: 81.11 kB / 283 MB, free: 7.199 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.0116, allocations: 212.5 kB / 283.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.01163, allocations: 37.7 kB / 283.3 MB, free: 6.934 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.372e-05/0.01168, allocations: 132.8 kB / 283.4 MB, free: 6.797 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.83e-05/0.01175, allocations: 154.7 kB / 283.5 MB, free: 6.645 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.663e-05/0.01184, allocations: 86.12 kB / 283.6 MB, free: 6.555 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.434e-05/0.01191, allocations: 338.8 kB / 284 MB, free: 6.215 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.891e-05/0.012, allocations: 59.8 kB / 284 MB, free: 6.152 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.01212, allocations: 152.2 kB / 284.2 MB, free: 5.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.01231, allocations: 197.7 kB / 284.4 MB, free: 5.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.01231, allocations: 0 / 284.4 MB, free: 5.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0003242/0.01263, allocations: 294.1 kB / 284.6 MB, free: 5.473 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.01265, allocations: 8 kB / 284.7 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.01265, allocations: 0 / 284.7 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000351/0.013, allocations: 224.6 kB / 284.9 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.01314, allocations: 59.89 kB / 284.9 MB, free: 5.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001699/0.01484, allocations: 2.032 MB / 287 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.01494, allocations: 15.98 kB / 287 MB, free: 3.051 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/0.01497, allocations: 19.94 kB / 287 MB, free: 3.031 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 9.936e-05/0.01507, allocations: 140.6 kB / 287.1 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.984e-05/0.01512, allocations: 31.92 kB / 287.2 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.194e-05/0.01516, allocations: 46.92 kB / 287.2 MB, free: 2.805 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.01517, allocations: 8 kB / 287.2 MB, free: 2.797 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.01517, allocations: 0 / 287.2 MB, free: 2.797 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.01517, allocations: 3.984 kB / 287.2 MB, free: 2.793 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006814/0.01585, allocations: 0.5789 MB / 287.8 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.01586, allocations: 8 kB / 287.8 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.01598, allocations: 51.83 kB / 287.9 MB, free: 2.129 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003163/0.0163, allocations: 207.7 kB / 288.1 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.01632, allocations: 15.98 kB / 288.1 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1061/0.1224, allocations: 2.019 MB / 290.1 MB, free: 24.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.1224, allocations: 0 / 290.1 MB, free: 24.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006737/0.1231, allocations: 444.9 kB / 290.5 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.1232, allocations: 49.45 kB / 290.6 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.1233, allocations: 9.5 kB / 290.6 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.1234, allocations: 21.8 kB / 290.6 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.1236, allocations: 62.47 kB / 290.7 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.698e-05/0.1236, allocations: 14.14 kB / 290.7 MB, free: 24.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.999e-05/0.1237, allocations: 60.83 kB / 290.7 MB, free: 24.06 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1237, allocations: 1.188 kB / 290.7 MB, free: 24.06 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004607/0.1241, allocations: 138.8 kB / 290.9 MB, free: 24.06 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.001009/0.1251, allocations: 455.1 kB / 291.3 MB, free: 23.96 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006098/0.1257, allocations: 439.4 kB / 291.8 MB, free: 23.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.1258, allocations: 2.469 kB / 291.8 MB, free: 23.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003305/0.1261, allocations: 351.2 kB / 292.1 MB, free: 23.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.1263, allocations: 68.06 kB / 292.2 MB, free: 23.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009252/0.1273, allocations: 0.5844 MB / 292.8 MB, free: 23.4 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.514e-05/0.1273, allocations: 110.9 kB / 292.9 MB, free: 23.33 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001268/0.1275, allocations: 60.81 kB / 292.9 MB, free: 23.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.1276, allocations: 94.53 kB / 293 MB, free: 23.28 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1276, allocations: 2.531 kB / 293 MB, free: 23.28 MB / 266.7 MB Notification: Performance of Templates: time 0.01181/0.1394, allocations: 7.702 MB / 300.7 MB, free: 21.38 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 -s gbode -gbm=radauIIA3 -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: 2.6930152815766633]