Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001366/0.001366, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001199, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2669, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004108/0.2711, allocations: 2.532 MB / 412.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002006/0.2731, allocations: 1.139 MB / 413.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.2733, allocations: 4 kB / 413.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003106/0.2737, allocations: 67.42 kB / 413.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000544/0.2742, allocations: 170.2 kB / 413.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004674/0.2747, allocations: 179.7 kB / 414 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000586/0.2753, allocations: 0.5179 MB / 414.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.2755, allocations: 88.92 kB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003735/0.2759, allocations: 247.3 kB / 414.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004688/0.2764, allocations: 275.1 kB / 415.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.2765, allocations: 40 kB / 415.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000338/0.2768, allocations: 135.9 kB / 415.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.277, allocations: 115.7 kB / 415.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.2772, allocations: 203.1 kB / 415.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006265/0.2778, allocations: 0.5385 MB / 416.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2778, allocations: 0 / 416.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2778, allocations: 4 kB / 416.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.2778, allocations: 0 / 416.1 MB, free: 11.35 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.001336/0.2792, allocations: 0.7094 MB / 416.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2792, allocations: 8.031 kB / 416.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005384/0.2798, allocations: 68.44 kB / 416.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000546/0.2803, allocations: 319.6 kB / 417.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.2805, allocations: 96.59 kB / 417.3 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.684e-05/0.2806, allocations: 32.38 kB / 417.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008248/0.2814, allocations: 413 kB / 417.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.2814, allocations: 7.906 kB / 417.8 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.466e-05/0.2815, allocations: 16 kB / 417.8 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.2815, allocations: 8 kB / 417.8 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000978/0.2825, allocations: 474.2 kB / 418.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.2842, allocations: 0.9968 MB / 419.3 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008669/0.2851, allocations: 392.5 kB / 419.6 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004726/0.2856, allocations: 234.1 kB / 419.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.2856, allocations: 8.422 kB / 419.9 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.2857, allocations: 39 kB / 419.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.084e-06/0.2857, allocations: 0 / 419.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005416/0.2911, allocations: 2.148 MB / 422.1 MB, free: 5.129 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.2912, allocations: 81.67 kB / 422.1 MB, free: 5.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.2915, allocations: 273 kB / 422.4 MB, free: 4.754 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.2916, allocations: 37.7 kB / 422.4 MB, free: 4.711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.311e-05/0.2917, allocations: 145 kB / 422.6 MB, free: 4.566 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001437/0.2919, allocations: 177.5 kB / 422.8 MB, free: 4.391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.292, allocations: 98.12 kB / 422.9 MB, free: 4.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.2922, allocations: 338.8 kB / 423.2 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004726/0.2926, allocations: 193 kB / 423.4 MB, free: 3.762 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000482/0.2931, allocations: 244.6 kB / 423.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008482/0.294, allocations: 388.3 kB / 424 MB, free: 3.129 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.294, allocations: 0 / 424 MB, free: 3.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001292/0.2953, allocations: 0.6095 MB / 424.6 MB, free: 2.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.2953, allocations: 11.97 kB / 424.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2953, allocations: 0 / 424.6 MB, free: 2.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008196/0.2962, allocations: 302.5 kB / 424.9 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003292/0.2965, allocations: 63.95 kB / 425 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004053/0.3006, allocations: 2.94 MB / 427.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003538/0.301, allocations: 32.06 kB / 427.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.547e-05/0.301, allocations: 23.98 kB / 428 MB, free: 15 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.0002225/0.3013, allocations: 161.3 kB / 428.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.3014, allocations: 35.56 kB / 428.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001409/0.3015, allocations: 51.61 kB / 428.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3015, allocations: 8 kB / 428.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.3016, allocations: 3.938 kB / 428.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3016, allocations: 7.922 kB / 428.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00234/0.3039, allocations: 1.297 MB / 429.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3039, allocations: 0 / 429.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003563/0.3043, allocations: 67.89 kB / 429.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007161/0.305, allocations: 292.6 kB / 429.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.236e-05/0.3051, allocations: 15.98 kB / 429.9 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003851/0.3089, allocations: 2.849 MB / 432.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.309, allocations: 0 / 432.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001901/0.3109, allocations: 0.9466 MB / 433.7 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.3111, allocations: 156.7 kB / 433.8 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.228e-05/0.3112, allocations: 15.94 kB / 433.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00033/0.3115, allocations: 31.97 kB / 433.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.3117, allocations: 68.33 kB / 434 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.113e-05/0.3118, allocations: 23.97 kB / 434 MB, free: 8.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002663/0.312, allocations: 204.5 kB / 434.2 MB, free: 8.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.312, allocations: 0 / 434.2 MB, free: 8.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006682/0.3127, allocations: 152 kB / 434.3 MB, free: 8.391 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.0008966/0.3136, allocations: 367 kB / 434.7 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001502/0.3151, allocations: 0.6993 MB / 435.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3152, allocations: 0 / 435.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008839/0.3161, allocations: 487.6 kB / 435.9 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.3166, allocations: 43.47 kB / 435.9 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.3182, allocations: 0.8419 MB / 436.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.3186, allocations: 0.7968 MB / 437.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.3188, allocations: 43.41 kB / 437.6 MB, free: 5.148 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3188, allocations: 0 / 437.6 MB, free: 5.148 MB / 350.1 MB Notification: Performance of Templates: time 0.01053/0.3293, allocations: 6.718 MB / 444.3 MB, free: 14.44 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches