Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.00101/0.00101, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.004255/0.004255, allocations: 158.3 kB / 24.99 MB, free: 9.266 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.9853/0.9853, allocations: 177 MB / 205.2 MB, free: 5.605 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 273 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.696e-05/1.806e-05, allocations: 5.125 kB / 273 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002788/0.002806, allocations: 2.559 MB / 275.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.004164, allocations: 1.107 MB / 276.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.004293, allocations: 7.938 kB / 276.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002465/0.004539, allocations: 63.44 kB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003769/0.004916, allocations: 184.7 kB / 276.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003006/0.005217, allocations: 179.6 kB / 277.1 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003957/0.005613, allocations: 0.5373 MB / 277.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.005752, allocations: 65.11 kB / 277.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003343/0.006086, allocations: 315.4 kB / 278 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.006312, allocations: 235.4 kB / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.938e-05/0.006362, allocations: 44 kB / 278.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.006531, allocations: 127.8 kB / 278.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.006635, allocations: 127.6 kB / 278.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003514/0.006987, allocations: 147.7 kB / 278.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004131/0.0074, allocations: 446.5 kB / 279.1 MB, free: 11.65 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.993e-06/0.007402, allocations: 4 kB / 279.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.007402, allocations: 0 / 279.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.007408, allocations: 0 / 279.1 MB, free: 11.64 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.0008365/0.008244, allocations: 0.7218 MB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.008278, allocations: 19.98 kB / 279.8 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002777/0.008555, allocations: 92.61 kB / 279.9 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.008876, allocations: 272.7 kB / 280.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.008979, allocations: 144 kB / 280.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.653e-05/0.009025, allocations: 36.31 kB / 280.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004489/0.009474, allocations: 360.8 kB / 280.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.009488, allocations: 192 / 280.7 MB, free: 9.906 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.00952, allocations: 24.12 kB / 280.7 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.009529, allocations: 4 kB / 280.7 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003784/0.009908, allocations: 263.6 kB / 281 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.01093, allocations: 0.776 MB / 281.8 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.01134, allocations: 249.5 kB / 282 MB, free: 8.559 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001886/0.01153, allocations: 133.3 kB / 282.2 MB, free: 8.426 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.01156, allocations: 12.44 kB / 282.2 MB, free: 8.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/0.01159, allocations: 41.88 kB / 282.2 MB, free: 8.359 MB / 266.7 MB Notification: Performance of pre-optimization done (n=49): time 1.583e-06/0.01159, allocations: 4 kB / 282.2 MB, free: 8.355 MB / 266.7 MB Notification: Performance of matching and sorting (n=55): time 0.002559/0.01415, allocations: 1.484 MB / 283.7 MB, free: 6.812 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.01419, allocations: 89.59 kB / 283.8 MB, free: 6.707 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.01437, allocations: 274.6 kB / 284 MB, free: 6.418 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.0144, allocations: 41.64 kB / 284.1 MB, free: 6.371 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.771e-05/0.01448, allocations: 184 kB / 284.3 MB, free: 6.188 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.01458, allocations: 194.3 kB / 284.5 MB, free: 5.996 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.01469, allocations: 95.83 kB / 284.6 MB, free: 5.895 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.0148, allocations: 0.5079 MB / 285.1 MB, free: 5.375 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.01498, allocations: 104.9 kB / 285.2 MB, free: 5.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.01517, allocations: 186.1 kB / 285.3 MB, free: 5.074 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003183/0.01549, allocations: 237.3 kB / 285.6 MB, free: 4.836 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.01549, allocations: 0 / 285.6 MB, free: 4.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008139/0.01631, allocations: 441.7 kB / 286 MB, free: 4.391 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.01632, allocations: 4 kB / 286 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.01633, allocations: 0 / 286 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004393/0.01676, allocations: 237.5 kB / 286.2 MB, free: 4.152 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.01693, allocations: 67.88 kB / 286.3 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002201/0.01913, allocations: 2.911 MB / 289.2 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.01926, allocations: 23.98 kB / 289.2 MB, free: 1.031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/0.01929, allocations: 19.98 kB / 289.3 MB, free: 1.012 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.0001162/0.01941, allocations: 180.6 kB / 289.4 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.511e-05/0.01949, allocations: 47.81 kB / 289.5 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.906e-05/0.01953, allocations: 47.3 kB / 289.5 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.01954, allocations: 11.94 kB / 289.5 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.01954, allocations: 3.938 kB / 289.5 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.01955, allocations: 3.984 kB / 289.6 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.02065, allocations: 0.9715 MB / 290.5 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.02065, allocations: 0 / 290.5 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000175/0.02082, allocations: 67.89 kB / 290.6 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003563/0.02118, allocations: 227.4 kB / 290.8 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.02121, allocations: 19.97 kB / 290.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002263/0.02347, allocations: 2.873 MB / 293.7 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.02347, allocations: 0 / 293.7 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007967/0.02427, allocations: 0.6931 MB / 294.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.02438, allocations: 75.73 kB / 294.5 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.83e-05/0.02441, allocations: 12 kB / 294.5 MB, free: 11.58 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.02456, allocations: 28.05 kB / 294.5 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.02468, allocations: 72.34 kB / 294.6 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.0247, allocations: 19.98 kB / 294.6 MB, free: 11.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001087/0.02481, allocations: 197.4 kB / 294.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02481, allocations: 0 / 294.8 MB, free: 11.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003907/0.0252, allocations: 151.9 kB / 294.9 MB, free: 11.12 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.0007043/0.02591, allocations: 357.8 kB / 295.3 MB, free: 10.86 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006945/0.0266, allocations: 0.5854 MB / 295.9 MB, free: 10.25 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.0266, allocations: 0 / 295.9 MB, free: 10.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003912/0.02699, allocations: 472.1 kB / 296.3 MB, free: 9.766 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.02729, allocations: 83.91 kB / 296.4 MB, free: 9.684 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001073/0.02836, allocations: 0.7097 MB / 297.1 MB, free: 8.938 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.37e-05/0.02843, allocations: 122.3 kB / 297.2 MB, free: 8.797 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.02858, allocations: 62.92 kB / 297.3 MB, free: 8.734 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.776e-05/0.02867, allocations: 48.47 kB / 297.4 MB, free: 8.688 MB / 282.7 MB Notification: Performance of SimCode: time 4.9e-07/0.02867, allocations: 0 / 297.4 MB, free: 8.688 MB / 282.7 MB Notification: Performance of Templates: time 0.009019/0.03768, allocations: 7.659 MB / 305 MB, free: 1.07 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.992960391798988]