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.001106/0.001106, allocations: 117.2 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 208.6 kB / 18.74 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 56.14 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2532, allocations: 50.55 MB / 409.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003646/0.2568, allocations: 2.457 MB / 411.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.2584, allocations: 1.049 MB / 412.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.2586, allocations: 4 kB / 412.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002792/0.2588, allocations: 59.5 kB / 412.8 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003818/0.2592, allocations: 154.2 kB / 413 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.2596, allocations: 167.6 kB / 413.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004496/0.2601, allocations: 474.7 kB / 413.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.2602, allocations: 68.69 kB / 413.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002105/0.2604, allocations: 203.5 kB / 413.8 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002764/0.2607, allocations: 239.2 kB / 414.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.765e-05/0.2608, allocations: 44 kB / 414.1 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.261, allocations: 131.9 kB / 414.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.2611, allocations: 107.7 kB / 414.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.2613, allocations: 175.2 kB / 414.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005085/0.2618, allocations: 499.7 kB / 415 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2618, allocations: 0 / 415 MB, free: 11.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2619, allocations: 4 kB / 415 MB, free: 11.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.2619, allocations: 0 / 415 MB, free: 11.8 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.001134/0.263, allocations: 0.6588 MB / 415.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.263, allocations: 8.031 kB / 415.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002975/0.2633, allocations: 52.53 kB / 415.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000457/0.2638, allocations: 301.4 kB / 416 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.2639, allocations: 92.5 kB / 416.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.046e-05/0.264, allocations: 32.38 kB / 416.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000674/0.2647, allocations: 381.3 kB / 416.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.2647, allocations: 3.984 kB / 416.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/0.2648, allocations: 12 kB / 416.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.2648, allocations: 11.94 kB / 416.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008317/0.2656, allocations: 417.9 kB / 417 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.2676, allocations: 1.261 MB / 418.2 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006697/0.2683, allocations: 350 kB / 418.6 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003705/0.2687, allocations: 180.8 kB / 418.7 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.2687, allocations: 8 kB / 418.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.2687, allocations: 39.28 kB / 418.8 MB, free: 7.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 3.497e-06/0.2688, allocations: 0 / 418.8 MB, free: 7.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004579/0.2733, allocations: 1.917 MB / 420.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.2734, allocations: 84.86 kB / 420.8 MB, free: 5.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.2737, allocations: 239 kB / 421 MB, free: 5.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.2737, allocations: 37.7 kB / 421.1 MB, free: 5.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.02e-05/0.2738, allocations: 136.6 kB / 421.2 MB, free: 5.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.2739, allocations: 149.9 kB / 421.3 MB, free: 5.113 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.2741, allocations: 86.02 kB / 421.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.2742, allocations: 342.8 kB / 421.8 MB, free: 4.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003659/0.2746, allocations: 160.8 kB / 421.9 MB, free: 4.523 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004207/0.275, allocations: 225.9 kB / 422.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006626/0.2757, allocations: 339.2 kB / 422.5 MB, free: 3.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2757, allocations: 4 kB / 422.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001108/0.2768, allocations: 0.5512 MB / 423 MB, free: 3.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.2768, allocations: 8 kB / 423 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.2769, allocations: 0 / 423 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007941/0.2777, allocations: 300.6 kB / 423.3 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.2779, allocations: 59.89 kB / 423.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003706/0.2816, allocations: 2.888 MB / 426.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.2819, allocations: 27.97 kB / 426.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.476e-05/0.2819, allocations: 19.98 kB / 426.3 MB, free: 15.93 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.0001681/0.2821, allocations: 158.1 kB / 426.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.643e-05/0.2822, allocations: 23.72 kB / 426.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.161e-05/0.2823, allocations: 42.98 kB / 426.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.2823, allocations: 4 kB / 426.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.2823, allocations: 4.062 kB / 426.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2823, allocations: 4 kB / 426.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.2841, allocations: 1.113 MB / 427.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2842, allocations: 3.938 kB / 427.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002235/0.2844, allocations: 47.95 kB / 427.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007124/0.2851, allocations: 288.8 kB / 428 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-05/0.2852, allocations: 15.98 kB / 428 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003556/0.2887, allocations: 2.847 MB / 430.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2887, allocations: 0 / 430.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001486/0.2902, allocations: 0.8082 MB / 431.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.2904, allocations: 152.8 kB / 431.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.039e-05/0.2904, allocations: 15.94 kB / 431.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.2907, allocations: 23.97 kB / 431.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.2909, allocations: 67.84 kB / 431.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-05/0.2909, allocations: 15.98 kB / 431.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.2911, allocations: 184.2 kB / 432.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2912, allocations: 0 / 432.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005649/0.2917, allocations: 136 kB / 432.2 MB, free: 9.754 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.0008321/0.2926, allocations: 376.2 kB / 432.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.2938, allocations: 0.6212 MB / 433.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2938, allocations: 0 / 433.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006607/0.2945, allocations: 437.9 kB / 433.7 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003967/0.2949, allocations: 35.77 kB / 433.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.296, allocations: 0.7079 MB / 434.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.2964, allocations: 0.7761 MB / 435.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001936/0.2966, allocations: 78.84 kB / 435.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.802e-05/0.2967, allocations: 35.42 kB / 435.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2967, allocations: 0 / 435.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of Templates: time 0.01186/0.3085, allocations: 7.66 MB / 443 MB, free: 15.09 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches