Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001314/0.001314, allocations: 107.6 kB / 21.18 MB, free: 0.5273 MB / 14.72 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.001503/0.001503, allocations: 205.1 kB / 24.48 MB, free: 3.695 MB / 14.72 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.528/1.528, allocations: 230.6 MB / 258.2 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 55.91 kB / 379 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2542, allocations: 53.36 MB / 432.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003997/0.2582, allocations: 2.326 MB / 434.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.26, allocations: 1.01 MB / 435.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.2601, allocations: 7.938 kB / 435.7 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002745/0.2604, allocations: 63.5 kB / 435.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00043/0.2608, allocations: 159.3 kB / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00038/0.2612, allocations: 170.9 kB / 436 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005252/0.2617, allocations: 474.7 kB / 436.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.2619, allocations: 52.56 kB / 436.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002441/0.2621, allocations: 211.4 kB / 436.8 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003438/0.2624, allocations: 247.3 kB / 437 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.539e-05/0.2625, allocations: 40 kB / 437 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002336/0.2627, allocations: 123.9 kB / 437.2 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.2629, allocations: 115.6 kB / 437.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.2631, allocations: 151.3 kB / 437.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005951/0.2636, allocations: 0.4933 MB / 437.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2637, allocations: 0 / 437.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2637, allocations: 0 / 437.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.2637, allocations: 4 kB / 437.9 MB, free: 1.062 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.001264/0.2649, allocations: 0.5907 MB / 438.5 MB, free: 452 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.265, allocations: 8.031 kB / 438.5 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003332/0.2653, allocations: 60.72 kB / 438.6 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005203/0.2658, allocations: 251.6 kB / 438.8 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001896/0.266, allocations: 144 kB / 439 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.731e-05/0.2661, allocations: 24.38 kB / 439 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007963/0.2669, allocations: 412.5 kB / 439.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.2669, allocations: 3.953 kB / 439.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.106e-05/0.2669, allocations: 19.94 kB / 439.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.2669, allocations: 7.938 kB / 439.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008857/0.2678, allocations: 406.3 kB / 439.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002123/0.2699, allocations: 1.084 MB / 440.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007336/0.2707, allocations: 325.5 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003982/0.2711, allocations: 164.7 kB / 441.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.564e-05/0.2711, allocations: 12 kB / 441.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.2711, allocations: 35.28 kB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.724e-06/0.2712, allocations: 0 / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005207/0.2764, allocations: 1.671 MB / 443.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/0.2764, allocations: 85.11 kB / 443.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003851/0.2768, allocations: 247.4 kB / 443.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.2769, allocations: 37.7 kB / 443.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.277, allocations: 141 kB / 443.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001821/0.2772, allocations: 158.6 kB / 443.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001792/0.2774, allocations: 90.06 kB / 443.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.2776, allocations: 334.8 kB / 444.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004159/0.278, allocations: 168.8 kB / 444.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005214/0.2785, allocations: 247.6 kB / 444.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007778/0.2793, allocations: 343.1 kB / 444.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2793, allocations: 0 / 444.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001277/0.2806, allocations: 0.5397 MB / 445.5 MB, free: 9.207 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.2806, allocations: 7.938 kB / 445.5 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.2806, allocations: 4 kB / 445.5 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009109/0.2815, allocations: 296.7 kB / 445.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.2818, allocations: 47.97 kB / 445.8 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004293/0.2861, allocations: 2.72 MB / 448.5 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.2864, allocations: 27.97 kB / 448.6 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.813e-05/0.2864, allocations: 19.92 kB / 448.6 MB, free: 5.984 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.0002256/0.2867, allocations: 153.7 kB / 448.7 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.284e-05/0.2867, allocations: 31.81 kB / 448.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.2869, allocations: 46.98 kB / 448.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.2869, allocations: 4 kB / 448.8 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2869, allocations: 4.062 kB / 448.8 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.2869, allocations: 3.984 kB / 448.8 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/0.2889, allocations: 0.9724 MB / 449.8 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2889, allocations: 0 / 449.8 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.2891, allocations: 43.97 kB / 449.8 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00079/0.2899, allocations: 288.6 kB / 450.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.2899, allocations: 15.98 kB / 450.1 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003987/0.2939, allocations: 2.663 MB / 452.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2939, allocations: 0 / 452.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.2956, allocations: 0.8037 MB / 453.6 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001746/0.2958, allocations: 71.8 kB / 453.7 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.476e-05/0.2959, allocations: 12 kB / 453.7 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.2961, allocations: 24.11 kB / 453.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.2963, allocations: 67.86 kB / 453.8 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.879e-05/0.2963, allocations: 19.92 kB / 453.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002468/0.2966, allocations: 180.5 kB / 454 MB, free: 436 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2966, allocations: 0 / 454 MB, free: 436 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006287/0.2972, allocations: 135.9 kB / 454.1 MB, free: 300 kB / 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.001455/0.2987, allocations: 409.2 kB / 454.5 MB, free: 40 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001363/0.3, allocations: 0.5985 MB / 455.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3, allocations: 0 / 455.1 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000752/0.3008, allocations: 413.5 kB / 455.5 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.3012, allocations: 44.14 kB / 455.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.3029, allocations: 0.7473 MB / 456.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.3031, allocations: 175.8 kB / 456.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.3032, allocations: 43.33 kB / 456.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3032, allocations: 0 / 456.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of Templates: time 0.009555/0.3128, allocations: 6.036 MB / 462.5 MB, free: 7.918 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.995344676979585]