Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001657/0.001657, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 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.001862/0.001862, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 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 1.51/1.51, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 51.92 kB / 368.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2646, allocations: 52.15 MB / 420.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003652/0.2683, allocations: 2.375 MB / 423.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.2699, allocations: 0.9209 MB / 424.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.27, allocations: 4 kB / 424.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001926/0.2702, allocations: 47.58 kB / 424.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004408/0.2706, allocations: 139.2 kB / 424.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003631/0.271, allocations: 179.6 kB / 424.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004511/0.2714, allocations: 418.8 kB / 424.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.2716, allocations: 48.69 kB / 425 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002167/0.2718, allocations: 187.5 kB / 425.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002928/0.2721, allocations: 223.3 kB / 425.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.283e-05/0.2721, allocations: 32 kB / 425.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002503/0.2724, allocations: 119.8 kB / 425.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.2725, allocations: 99.72 kB / 425.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.2727, allocations: 167.2 kB / 425.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005715/0.2733, allocations: 455.5 kB / 426.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2733, allocations: 0 / 426.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2733, allocations: 0 / 426.2 MB, free: 9.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.2733, allocations: 0 / 426.2 MB, free: 9.738 MB / 334.1 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.001138/0.2744, allocations: 0.6351 MB / 426.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.2744, allocations: 8.031 kB / 426.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003058/0.2747, allocations: 48.73 kB / 426.9 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005057/0.2752, allocations: 312.6 kB / 427.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.2754, allocations: 88.52 kB / 427.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.045e-05/0.2754, allocations: 28.38 kB / 427.3 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006951/0.2761, allocations: 377.4 kB / 427.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.2762, allocations: 7.953 kB / 427.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.2762, allocations: 12 kB / 427.7 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.2762, allocations: 8 kB / 427.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008221/0.277, allocations: 413.9 kB / 428.1 MB, free: 7.715 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.2791, allocations: 1.245 MB / 429.4 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000658/0.2797, allocations: 341.3 kB / 429.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003631/0.2801, allocations: 172.8 kB / 429.9 MB, free: 5.883 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.2801, allocations: 4 kB / 429.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.2801, allocations: 34.56 kB / 429.9 MB, free: 5.836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.553e-06/0.2801, allocations: 0 / 429.9 MB, free: 5.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004773/0.2849, allocations: 1.915 MB / 431.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.634e-05/0.285, allocations: 84.86 kB / 431.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003014/0.2853, allocations: 242.2 kB / 432.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.2853, allocations: 29.7 kB / 432.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.2854, allocations: 148.9 kB / 432.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.2856, allocations: 154.7 kB / 432.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.2857, allocations: 82.11 kB / 432.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2859, allocations: 338.8 kB / 432.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003686/0.2862, allocations: 164.8 kB / 433 MB, free: 2.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004342/0.2867, allocations: 233.8 kB / 433.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006955/0.2874, allocations: 343.1 kB / 433.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/0.2874, allocations: 4 kB / 433.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001114/0.2885, allocations: 0.5512 MB / 434.2 MB, free: 1.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.2885, allocations: 11.28 kB / 434.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2885, allocations: 0 / 434.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007663/0.2893, allocations: 248.8 kB / 434.4 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.2895, allocations: 55.89 kB / 434.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004198/0.2937, allocations: 2.887 MB / 437.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.294, allocations: 23.97 kB / 437.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.094e-05/0.294, allocations: 16 kB / 437.4 MB, free: 14 MB / 350.1 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.0002092/0.2942, allocations: 169.6 kB / 437.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.067e-05/0.2943, allocations: 27.84 kB / 437.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.972e-05/0.2944, allocations: 43.06 kB / 437.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.2944, allocations: 4 kB / 437.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.2944, allocations: 0 / 437.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2944, allocations: 3.984 kB / 437.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001874/0.2963, allocations: 1.078 MB / 438.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2963, allocations: 0 / 438.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.2965, allocations: 47.91 kB / 438.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006738/0.2972, allocations: 237.1 kB / 439 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.2972, allocations: 11.98 kB / 439 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003947/0.3012, allocations: 2.839 MB / 441.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3012, allocations: 0 / 441.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.3027, allocations: 0.8198 MB / 442.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.3028, allocations: 132.9 kB / 442.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.818e-05/0.3029, allocations: 15.94 kB / 442.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002524/0.3031, allocations: 27.97 kB / 442.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.3033, allocations: 59.84 kB / 442.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.534e-05/0.3033, allocations: 15.98 kB / 442.9 MB, free: 8.234 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002143/0.3035, allocations: 180.3 kB / 443.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3035, allocations: 0 / 443.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005785/0.3041, allocations: 144 kB / 443.2 MB, free: 7.918 MB / 350.1 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.0002433/0.3044, allocations: 139.1 kB / 443.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.3056, allocations: 0.6057 MB / 444 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3056, allocations: 0 / 444 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000733/0.3064, allocations: 413.5 kB / 444.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.3067, allocations: 39.86 kB / 444.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.308, allocations: 0.705 MB / 445.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/0.3085, allocations: 0.78 MB / 445.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001719/0.3086, allocations: 62.94 kB / 446 MB, free: 5.098 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.961e-05/0.3087, allocations: 27.42 kB / 446 MB, free: 5.07 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3087, allocations: 0 / 446 MB, free: 5.07 MB / 350.1 MB Notification: Performance of Templates: time 0.01301/0.3217, allocations: 7.487 MB / 453.5 MB, free: 13.59 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.796572738327086]