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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=1000,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=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 107.2 kB / 17.74 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 184.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2702, allocations: 49.43 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003449/0.2737, allocations: 2.425 MB / 403.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.2754, allocations: 0.9675 MB / 404.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.2756, allocations: 4 kB / 404.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.2758, allocations: 47.52 kB / 404.8 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005132/0.2764, allocations: 163.1 kB / 405 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003703/0.2767, allocations: 175.6 kB / 405.2 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004252/0.2772, allocations: 474.5 kB / 405.6 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.2774, allocations: 88.91 kB / 405.7 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.2776, allocations: 207.3 kB / 405.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002792/0.2779, allocations: 243.2 kB / 406.2 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.489e-05/0.278, allocations: 40 kB / 406.2 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002198/0.2782, allocations: 135.8 kB / 406.3 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.2784, allocations: 107.6 kB / 406.4 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001585/0.2785, allocations: 187.1 kB / 406.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005217/0.2791, allocations: 0.4918 MB / 407.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2791, allocations: 0 / 407.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2791, allocations: 0 / 407.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.375e-06/0.2791, allocations: 0 / 407.1 MB, free: 3.121 MB / 318.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.001201/0.2803, allocations: 0.673 MB / 407.8 MB, free: 2.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.2804, allocations: 12.03 kB / 407.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002985/0.2807, allocations: 48.55 kB / 407.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004975/0.2812, allocations: 327.5 kB / 408.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.2813, allocations: 88.61 kB / 408.2 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.204e-05/0.2814, allocations: 36.28 kB / 408.3 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007557/0.2821, allocations: 417 kB / 408.7 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.2821, allocations: 0 / 408.7 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.2822, allocations: 12 kB / 408.7 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.2822, allocations: 12 kB / 408.7 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009213/0.2831, allocations: 470.2 kB / 409.2 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001662/0.2848, allocations: 0.9697 MB / 410.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007847/0.2856, allocations: 401.2 kB / 410.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.2861, allocations: 246.2 kB / 410.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.2861, allocations: 8.375 kB / 410.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.2862, allocations: 39 kB / 410.8 MB, free: 15.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.114e-06/0.2862, allocations: 0 / 410.8 MB, free: 15.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005101/0.2913, allocations: 2.163 MB / 413 MB, free: 12.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.2914, allocations: 85.67 kB / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.2917, allocations: 263.1 kB / 413.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.966e-05/0.2917, allocations: 37.7 kB / 413.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.065e-05/0.2918, allocations: 133.1 kB / 413.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.292, allocations: 185.4 kB / 413.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.2921, allocations: 94.14 kB / 413.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.2923, allocations: 346.8 kB / 414.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/0.2927, allocations: 189 kB / 414.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004498/0.2932, allocations: 248.6 kB / 414.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007706/0.2939, allocations: 392.3 kB / 414.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2939, allocations: 0 / 414.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00119/0.2951, allocations: 0.6135 MB / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.2952, allocations: 7.938 kB / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.2952, allocations: 0 / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007071/0.2959, allocations: 262.6 kB / 415.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.2962, allocations: 71.88 kB / 415.9 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003733/0.3, allocations: 2.936 MB / 418.8 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003265/0.3003, allocations: 31.91 kB / 418.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.021e-05/0.3004, allocations: 12 kB / 418.8 MB, free: 6.863 MB / 334.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.0002067/0.3006, allocations: 165.8 kB / 419 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.831e-05/0.3007, allocations: 35.56 kB / 419 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.3008, allocations: 47.3 kB / 419.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.3008, allocations: 8 kB / 419.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3008, allocations: 0 / 419.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.3008, allocations: 0 / 419.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/0.3029, allocations: 1.262 MB / 420.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.3029, allocations: 0 / 420.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003071/0.3032, allocations: 75.81 kB / 420.4 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006256/0.3038, allocations: 240.7 kB / 420.7 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.3039, allocations: 16 kB / 420.7 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00351/0.3074, allocations: 2.85 MB / 423.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3074, allocations: 0 / 423.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002/0.3094, allocations: 0.9507 MB / 424.5 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001731/0.3096, allocations: 156.8 kB / 424.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.33e-05/0.3097, allocations: 15.94 kB / 424.6 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.31, allocations: 31.97 kB / 424.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.3102, allocations: 64.34 kB / 424.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.046e-05/0.3102, allocations: 19.98 kB / 424.8 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002083/0.3104, allocations: 200.5 kB / 425 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3104, allocations: 0 / 425 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006319/0.3111, allocations: 152 kB / 425.1 MB, free: 368 kB / 334.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.0002399/0.3113, allocations: 150.2 kB / 425.2 MB, free: 208 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001368/0.3127, allocations: 0.6994 MB / 425.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3127, allocations: 4 kB / 426 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00076/0.3135, allocations: 475.7 kB / 426.4 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004197/0.3139, allocations: 40.41 kB / 426.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.3153, allocations: 0.8297 MB / 427.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.3157, allocations: 0.7967 MB / 428.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.3158, allocations: 39.41 kB / 428.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3158, allocations: 0 / 428.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of Templates: time 0.008769/0.3246, allocations: 6.001 MB / 434.1 MB, free: 7.242 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (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) 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) Reference file matches