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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 99.3 kB / 19.61 MB, free: 2.559 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002048/0.002048, allocations: 199.1 kB / 22.76 MB, free: 5.621 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 225.6 MB / 251.4 MB, free: 13.57 MB / 206.1 MB [Timeout remaining time 88] 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.001499/0.001499, allocations: 51.92 kB / 369.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2612, allocations: 52.14 MB / 421.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004044/0.2652, allocations: 2.445 MB / 423.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.2671, allocations: 0.9715 MB / 424.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.2673, allocations: 4 kB / 424.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002378/0.2675, allocations: 51.5 kB / 424.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005621/0.2681, allocations: 166.2 kB / 424.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003717/0.2685, allocations: 179.7 kB / 425.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005203/0.269, allocations: 474.5 kB / 425.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001818/0.2692, allocations: 60.95 kB / 425.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003056/0.2695, allocations: 207.3 kB / 425.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003455/0.2698, allocations: 247.2 kB / 426 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.956e-05/0.2699, allocations: 40 kB / 426.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002413/0.2701, allocations: 135.8 kB / 426.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.2703, allocations: 103.7 kB / 426.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001991/0.2705, allocations: 191 kB / 426.5 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006415/0.2711, allocations: 0.4917 MB / 427 MB, free: 9.414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2711, allocations: 4 kB / 427 MB, free: 9.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2711, allocations: 0 / 427 MB, free: 9.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.2711, allocations: 3.938 kB / 427 MB, free: 9.406 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.001385/0.2725, allocations: 0.6778 MB / 427.7 MB, free: 8.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2726, allocations: 12.03 kB / 427.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003369/0.2729, allocations: 52.69 kB / 427.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005311/0.2734, allocations: 319.7 kB / 428.1 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.2736, allocations: 88.61 kB / 428.1 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.057e-05/0.2736, allocations: 28.38 kB / 428.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008371/0.2745, allocations: 425 kB / 428.6 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.2745, allocations: 3.953 kB / 428.6 MB, free: 7.707 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-05/0.2745, allocations: 12 kB / 428.6 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.2745, allocations: 8 kB / 428.6 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.2756, allocations: 474.2 kB / 429.1 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.2774, allocations: 0.9737 MB / 430.1 MB, free: 6.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008588/0.2783, allocations: 386 kB / 430.4 MB, free: 5.809 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004761/0.2788, allocations: 214 kB / 430.6 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.2788, allocations: 8.422 kB / 430.6 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.2788, allocations: 39 kB / 430.7 MB, free: 5.543 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.763e-06/0.2788, allocations: 0 / 430.7 MB, free: 5.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005647/0.2845, allocations: 2.156 MB / 432.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/0.2846, allocations: 81.67 kB / 432.9 MB, free: 3.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004393/0.2851, allocations: 279 kB / 433.2 MB, free: 2.898 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.2851, allocations: 41.69 kB / 433.2 MB, free: 2.852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.2853, allocations: 125.3 kB / 433.4 MB, free: 2.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001815/0.2854, allocations: 194.4 kB / 433.5 MB, free: 2.535 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.2856, allocations: 82.25 kB / 433.6 MB, free: 2.449 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.2858, allocations: 342.8 kB / 434 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004638/0.2862, allocations: 201 kB / 434.2 MB, free: 1.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005012/0.2867, allocations: 244.6 kB / 434.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008915/0.2876, allocations: 392.4 kB / 434.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.2876, allocations: 0 / 434.8 MB, free: 1.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00138/0.289, allocations: 0.6096 MB / 435.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.289, allocations: 7.938 kB / 435.4 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.289, allocations: 0 / 435.4 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008428/0.2899, allocations: 258.6 kB / 435.6 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.2902, allocations: 71.88 kB / 435.7 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004424/0.2946, allocations: 2.934 MB / 438.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003364/0.295, allocations: 35.97 kB / 438.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.295, allocations: 16 kB / 438.7 MB, free: 13.2 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.0002405/0.2952, allocations: 157.8 kB / 438.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.66e-05/0.2953, allocations: 35.75 kB / 438.9 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001169/0.2955, allocations: 51.3 kB / 438.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.2955, allocations: 8 kB / 438.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2955, allocations: 0 / 438.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2955, allocations: 7.938 kB / 439 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002344/0.2978, allocations: 1.247 MB / 440.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2978, allocations: 3.938 kB / 440.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003243/0.2981, allocations: 75.91 kB / 440.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006833/0.2988, allocations: 240.6 kB / 440.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.852e-05/0.2989, allocations: 12 kB / 440.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004037/0.3029, allocations: 2.847 MB / 443.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3029, allocations: 4.031 kB / 443.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001925/0.3048, allocations: 0.9469 MB / 444.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002112/0.305, allocations: 156.8 kB / 444.5 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.585e-05/0.3051, allocations: 15.94 kB / 444.5 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/0.3054, allocations: 27.91 kB / 444.5 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.3056, allocations: 68.34 kB / 444.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.3056, allocations: 24.05 kB / 444.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002661/0.3059, allocations: 196.6 kB / 444.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3059, allocations: 0 / 444.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006697/0.3066, allocations: 151.9 kB / 445 MB, free: 6.707 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.0002847/0.3069, allocations: 139.9 kB / 445.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.3084, allocations: 0.6721 MB / 445.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3084, allocations: 0 / 445.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009011/0.3093, allocations: 459.7 kB / 446.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004513/0.3098, allocations: 43.7 kB / 446.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.3116, allocations: 0.8443 MB / 447.1 MB, free: 4.484 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005003/0.3121, allocations: 0.789 MB / 447.9 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.3122, allocations: 43.41 kB / 447.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3122, allocations: 0 / 447.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of Templates: time 0.01144/0.3237, allocations: 6.04 MB / 454 MB, free: 13.6 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