Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001617/0.001616, allocations: 113.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002048/0.002048, allocations: 206.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.8/1.8, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 59.91 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2963, allocations: 50.55 MB / 409.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004658/0.301, allocations: 2.449 MB / 412.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.3031, allocations: 1.053 MB / 413.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002674/0.3034, allocations: 4 kB / 413.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003775/0.3039, allocations: 55.52 kB / 413.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006016/0.3045, allocations: 154.4 kB / 413.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004846/0.305, allocations: 163.7 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006608/0.3056, allocations: 478.7 kB / 414.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.3059, allocations: 60.7 kB / 414.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003298/0.3062, allocations: 207.5 kB / 414.5 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004231/0.3066, allocations: 239.2 kB / 414.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.3068, allocations: 40 kB / 414.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003149/0.3071, allocations: 131.9 kB / 414.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.3073, allocations: 111.6 kB / 415 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002213/0.3075, allocations: 175.2 kB / 415.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007366/0.3082, allocations: 499.7 kB / 415.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3082, allocations: 0 / 415.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3083, allocations: 0 / 415.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.744e-05/0.3083, allocations: 0 / 415.7 MB, free: 11.84 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.001534/0.3098, allocations: 0.6666 MB / 416.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.3099, allocations: 8.031 kB / 416.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003869/0.3103, allocations: 48.55 kB / 416.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006353/0.3109, allocations: 305.4 kB / 416.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.3111, allocations: 92.45 kB / 416.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.206e-05/0.3112, allocations: 28.38 kB / 416.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008327/0.312, allocations: 385.4 kB / 417.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.3121, allocations: 4 kB / 417.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.3121, allocations: 8 kB / 417.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.3121, allocations: 8 kB / 417.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000955/0.3131, allocations: 417.9 kB / 417.6 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.3155, allocations: 1.269 MB / 418.9 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007583/0.3163, allocations: 347.6 kB / 419.2 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/0.3168, allocations: 180.8 kB / 419.4 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.295e-05/0.3168, allocations: 8 kB / 419.4 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.3169, allocations: 39.22 kB / 419.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 3.286e-06/0.3169, allocations: 0 / 419.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.005285/0.3222, allocations: 1.905 MB / 421.4 MB, free: 5.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.748e-05/0.3223, allocations: 84.86 kB / 421.4 MB, free: 5.727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003576/0.3226, allocations: 243 kB / 421.7 MB, free: 5.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.885e-05/0.3227, allocations: 41.69 kB / 421.7 MB, free: 5.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.3228, allocations: 140.8 kB / 421.9 MB, free: 5.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.323, allocations: 149.9 kB / 422 MB, free: 5.145 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.3231, allocations: 86.02 kB / 422.1 MB, free: 5.055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3233, allocations: 338.8 kB / 422.4 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004132/0.3237, allocations: 164.8 kB / 422.6 MB, free: 4.555 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004367/0.3241, allocations: 229.9 kB / 422.8 MB, free: 4.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007444/0.3249, allocations: 339.2 kB / 423.1 MB, free: 3.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3249, allocations: 0 / 423.1 MB, free: 3.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00125/0.3262, allocations: 0.5473 MB / 423.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3262, allocations: 7.984 kB / 423.7 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.3262, allocations: 4.125 kB / 423.7 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008882/0.3271, allocations: 296.6 kB / 424 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002774/0.3274, allocations: 55.89 kB / 424 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004349/0.3318, allocations: 2.885 MB / 426.9 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003865/0.3322, allocations: 32 kB / 427 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.872e-05/0.3323, allocations: 19.94 kB / 427 MB, free: 15.97 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.0002602/0.3326, allocations: 166.1 kB / 427.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.3327, allocations: 23.72 kB / 427.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.3328, allocations: 43 kB / 427.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.156e-06/0.3328, allocations: 7.984 kB / 427.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3328, allocations: 0 / 427.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3328, allocations: 0 / 427.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002156/0.335, allocations: 1.125 MB / 428.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-06/0.335, allocations: 0 / 428.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/0.3353, allocations: 43.97 kB / 428.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000824/0.3361, allocations: 288.8 kB / 428.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/0.3362, allocations: 15.98 kB / 428.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004039/0.3403, allocations: 2.85 MB / 431.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.3403, allocations: 0 / 431.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.342, allocations: 0.8083 MB / 432.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002295/0.3423, allocations: 148.8 kB / 432.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.529e-05/0.3424, allocations: 15.94 kB / 432.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.3427, allocations: 23.92 kB / 432.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.3429, allocations: 67.95 kB / 432.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.041e-05/0.3429, allocations: 15.98 kB / 432.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002555/0.3432, allocations: 184.2 kB / 432.8 MB, free: 9.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3432, allocations: 0 / 432.8 MB, free: 9.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007296/0.3439, allocations: 132 kB / 432.9 MB, free: 9.789 MB / 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.001025/0.345, allocations: 387 kB / 433.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.3466, allocations: 0.6174 MB / 433.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3466, allocations: 0 / 433.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008291/0.3474, allocations: 433.7 kB / 434.3 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005641/0.348, allocations: 43.75 kB / 434.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.3497, allocations: 0.7356 MB / 435.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004542/0.3502, allocations: 0.7761 MB / 435.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001849/0.3504, allocations: 43.39 kB / 435.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3504, allocations: 0 / 435.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of Templates: time 0.01063/0.361, allocations: 5.958 MB / 441.9 MB, free: 0.8398 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches