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.0009483/0.0009483, allocations: 88.73 kB / 21.5 MB, free: 2.988 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.001157/0.001157, allocations: 164 kB / 24.91 MB, free: 8.715 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.9322/0.9322, allocations: 177 MB / 205.2 MB, free: 5.02 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.322e-06/1.322e-06, allocations: 0 / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.959e-05/2.091e-05, allocations: 5.266 kB / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004023/0.004043, allocations: 2.457 MB / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.006005, allocations: 1.053 MB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.006177, allocations: 4 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003366/0.006514, allocations: 63.44 kB / 276.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005588/0.007072, allocations: 152 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005264/0.007599, allocations: 167.6 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005708/0.00817, allocations: 486.5 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.008314, allocations: 50.84 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003766/0.008691, allocations: 283.4 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003162/0.009007, allocations: 203.5 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.286e-05/0.00908, allocations: 40 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002408/0.009321, allocations: 123.8 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.009447, allocations: 115.7 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.009586, allocations: 131.7 kB / 278.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005468/0.01013, allocations: 402.7 kB / 279 MB, free: 11.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.01014, allocations: 7.938 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.01014, allocations: 0 / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.01014, allocations: 0 / 279.1 MB, free: 11.36 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.0009357/0.01108, allocations: 0.558 MB / 279.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.01113, allocations: 15.98 kB / 279.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002954/0.01142, allocations: 68.88 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.0118, allocations: 226.7 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.01193, allocations: 140 kB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.711e-05/0.01199, allocations: 24.38 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004832/0.01247, allocations: 319.7 kB / 280.4 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.01249, allocations: 4.188 kB / 280.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/0.01252, allocations: 12.12 kB / 280.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.01253, allocations: 8 kB / 280.4 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003799/0.01291, allocations: 183.2 kB / 280.6 MB, free: 9.711 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.01438, allocations: 0.8161 MB / 281.4 MB, free: 8.863 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003494/0.01472, allocations: 170.4 kB / 281.6 MB, free: 8.688 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.01487, allocations: 80.77 kB / 281.7 MB, free: 8.605 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.01491, allocations: 12 kB / 281.7 MB, free: 8.594 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.01493, allocations: 34.56 kB / 281.7 MB, free: 8.551 MB / 266.7 MB Notification: Performance of pre-optimization done (n=43): time 1.703e-06/0.01494, allocations: 0 / 281.7 MB, free: 8.551 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002761/0.0177, allocations: 1.145 MB / 282.8 MB, free: 7.348 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.01774, allocations: 88.8 kB / 282.9 MB, free: 7.242 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.01795, allocations: 212.4 kB / 283.1 MB, free: 7.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.01799, allocations: 41.69 kB / 283.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.179e-05/0.01806, allocations: 132.8 kB / 283.3 MB, free: 6.836 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.01817, allocations: 150.7 kB / 283.5 MB, free: 6.688 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.01831, allocations: 86.14 kB / 283.5 MB, free: 6.598 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.01842, allocations: 338.8 kB / 283.9 MB, free: 6.258 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001518/0.01857, allocations: 63.8 kB / 283.9 MB, free: 6.191 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.01876, allocations: 144.3 kB / 284.1 MB, free: 6.027 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.01906, allocations: 205.8 kB / 284.3 MB, free: 5.809 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01906, allocations: 0 / 284.3 MB, free: 5.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005137/0.01957, allocations: 286.1 kB / 284.6 MB, free: 5.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.01959, allocations: 4 kB / 284.6 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.0196, allocations: 4.125 kB / 284.6 MB, free: 5.512 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005158/0.02011, allocations: 220.5 kB / 284.8 MB, free: 5.293 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.0203, allocations: 55.89 kB / 284.8 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002397/0.0227, allocations: 2.032 MB / 286.9 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.02287, allocations: 19.98 kB / 286.9 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.183e-05/0.02291, allocations: 19.98 kB / 286.9 MB, free: 3.082 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.0001298/0.02304, allocations: 132.5 kB / 287 MB, free: 2.941 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.926e-05/0.02312, allocations: 31.97 kB / 287.1 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.077e-05/0.02318, allocations: 39 kB / 287.1 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.02319, allocations: 4 kB / 287.1 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.02319, allocations: 7.938 kB / 287.1 MB, free: 2.859 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.0232, allocations: 3.984 kB / 287.1 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.02426, allocations: 0.575 MB / 287.7 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.02426, allocations: 0 / 287.7 MB, free: 2.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.02445, allocations: 47.95 kB / 287.7 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004847/0.02494, allocations: 207.7 kB / 287.9 MB, free: 2 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.02497, allocations: 15.92 kB / 288 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1037/0.1287, allocations: 2.008 MB / 290 MB, free: 24.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1287, allocations: 3.219 kB / 290 MB, free: 24.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005612/0.1293, allocations: 446.2 kB / 290.4 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.1294, allocations: 52.47 kB / 290.5 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.1294, allocations: 8.781 kB / 290.5 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001507/0.1296, allocations: 19.34 kB / 290.5 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.1297, allocations: 67.39 kB / 290.6 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/0.1297, allocations: 13.14 kB / 290.6 MB, free: 24.12 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.333e-05/0.1298, allocations: 61.08 kB / 290.6 MB, free: 24.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1298, allocations: 0 / 290.6 MB, free: 24.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003958/0.1302, allocations: 137.1 kB / 290.8 MB, free: 24.11 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.0009329/0.1311, allocations: 463.1 kB / 291.2 MB, free: 24.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005608/0.1317, allocations: 441.3 kB / 291.6 MB, free: 23.87 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.1317, allocations: 3.312 kB / 291.6 MB, free: 23.87 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002934/0.132, allocations: 346 kB / 292 MB, free: 23.73 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.1322, allocations: 73.75 kB / 292.1 MB, free: 23.72 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008268/0.133, allocations: 0.5834 MB / 292.6 MB, free: 23.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.102e-05/0.1331, allocations: 107.2 kB / 292.7 MB, free: 23.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000113/0.1332, allocations: 57.25 kB / 292.8 MB, free: 23.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.1333, allocations: 97.56 kB / 292.9 MB, free: 23.33 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.1333, allocations: 2.875 kB / 292.9 MB, free: 23.33 MB / 266.7 MB Notification: Performance of Templates: time 0.009323/0.1427, allocations: 7.698 MB / 300.6 MB, free: 21.44 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: 2.860977588221431]