Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001754/0.001754, allocations: 96.02 kB / 21.18 MB, free: 0.6484 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.001718/0.001718, allocations: 177 kB / 24.45 MB, free: 3.977 MB / 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.487/1.487, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 47.92 kB / 371.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.264, allocations: 52.17 MB / 423.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003774/0.2678, allocations: 2.324 MB / 426.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.2696, allocations: 0.9092 MB / 427 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.2697, allocations: 4 kB / 427 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002178/0.2699, allocations: 63.44 kB / 427.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005328/0.2704, allocations: 159 kB / 427.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00038/0.2708, allocations: 187.7 kB / 427.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004735/0.2713, allocations: 470.4 kB / 427.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.2715, allocations: 64.78 kB / 428 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000291/0.2718, allocations: 215.3 kB / 428.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003136/0.2721, allocations: 227.2 kB / 428.4 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.081e-05/0.2721, allocations: 36 kB / 428.4 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002352/0.2724, allocations: 127.8 kB / 428.6 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.2725, allocations: 103.7 kB / 428.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.2727, allocations: 163.3 kB / 428.8 MB, free: 9.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000586/0.2733, allocations: 0.4972 MB / 429.3 MB, free: 8.953 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.2733, allocations: 0 / 429.3 MB, free: 8.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2733, allocations: 0 / 429.3 MB, free: 8.953 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.2733, allocations: 0 / 429.3 MB, free: 8.953 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001273/0.2746, allocations: 0.6065 MB / 429.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.2746, allocations: 12.03 kB / 429.9 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003186/0.2749, allocations: 56.67 kB / 430 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000534/0.2754, allocations: 254.9 kB / 430.2 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001651/0.2756, allocations: 148 kB / 430.4 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.808e-05/0.2757, allocations: 32.38 kB / 430.4 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008471/0.2765, allocations: 446.7 kB / 430.8 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.077e-05/0.2765, allocations: 3.953 kB / 430.8 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.901e-05/0.2766, allocations: 12 kB / 430.9 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.2766, allocations: 8 kB / 430.9 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000988/0.2776, allocations: 462.2 kB / 431.3 MB, free: 6.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.2792, allocations: 0.7845 MB / 432.1 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008322/0.2801, allocations: 372.1 kB / 432.5 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004756/0.2806, allocations: 214 kB / 432.7 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.429e-05/0.2806, allocations: 4.438 kB / 432.7 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.2806, allocations: 43 kB / 432.7 MB, free: 5.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.355e-06/0.2806, allocations: 0 / 432.7 MB, free: 5.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.0053/0.2859, allocations: 1.925 MB / 434.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/0.286, allocations: 81.61 kB / 434.7 MB, free: 3.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003086/0.2863, allocations: 241 kB / 435 MB, free: 3.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.72e-05/0.2863, allocations: 37.7 kB / 435 MB, free: 3.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.2865, allocations: 145.1 kB / 435.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.2866, allocations: 190.4 kB / 435.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.2868, allocations: 86.19 kB / 435.4 MB, free: 2.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.2869, allocations: 342.8 kB / 435.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004522/0.2874, allocations: 192.9 kB / 435.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005058/0.2879, allocations: 273.6 kB / 436.2 MB, free: 1.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008622/0.2887, allocations: 407.4 kB / 436.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2888, allocations: 0 / 436.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001267/0.29, allocations: 0.5965 MB / 437.2 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.29, allocations: 8 kB / 437.2 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.29, allocations: 0 / 437.2 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007584/0.2908, allocations: 263.6 kB / 437.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003081/0.2911, allocations: 67.88 kB / 437.5 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0041/0.2952, allocations: 2.763 MB / 440.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003069/0.2955, allocations: 27.97 kB / 440.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.782e-05/0.2956, allocations: 19.98 kB / 440.3 MB, free: 13.54 MB / 350.1 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.0002178/0.2958, allocations: 161.8 kB / 440.5 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.402e-05/0.2959, allocations: 35.75 kB / 440.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000109/0.296, allocations: 47.3 kB / 440.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.296, allocations: 4 kB / 440.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.296, allocations: 0 / 440.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.296, allocations: 7.984 kB / 440.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.2982, allocations: 1.106 MB / 441.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.2982, allocations: 0 / 441.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003191/0.2986, allocations: 67.83 kB / 441.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006727/0.2992, allocations: 236.7 kB / 442 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.962e-05/0.2993, allocations: 11.98 kB / 442 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003871/0.3031, allocations: 2.686 MB / 444.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.3031, allocations: 4.031 kB / 444.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.3051, allocations: 0.9411 MB / 445.6 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001783/0.3053, allocations: 75.72 kB / 445.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.854e-05/0.3053, allocations: 12 kB / 445.7 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002985/0.3056, allocations: 32.09 kB / 445.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.3058, allocations: 76.23 kB / 445.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.892e-05/0.3058, allocations: 23.92 kB / 445.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002206/0.306, allocations: 179 kB / 446 MB, free: 7.672 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.306, allocations: 4 kB / 446 MB, free: 7.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006172/0.3067, allocations: 151.9 kB / 446.2 MB, free: 7.52 MB / 350.1 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.000234/0.3069, allocations: 131.2 kB / 446.3 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001431/0.3083, allocations: 0.6791 MB / 447 MB, free: 6.684 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3083, allocations: 0 / 447 MB, free: 6.684 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000828/0.3091, allocations: 456.2 kB / 447.4 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004148/0.3096, allocations: 42.5 kB / 447.5 MB, free: 6.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.3112, allocations: 0.8337 MB / 448.3 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.3114, allocations: 190.8 kB / 448.5 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.3115, allocations: 43.41 kB / 448.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3115, allocations: 0 / 448.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of Templates: time 0.01025/0.3217, allocations: 6.081 MB / 454.6 MB, free: 15 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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: 8.725237522739917]