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.001406/0.001406, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001709/0.001709, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001087/0.001087, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2852, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003912/0.2892, allocations: 2.46 MB / 411.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.2913, allocations: 1.049 MB / 412.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.2914, allocations: 4 kB / 412.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002876/0.2917, allocations: 67.44 kB / 412.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004013/0.2921, allocations: 150.4 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003552/0.2925, allocations: 159.7 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004609/0.293, allocations: 474.7 kB / 413.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001751/0.2932, allocations: 76.67 kB / 413.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.2934, allocations: 195.5 kB / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003089/0.2937, allocations: 247.2 kB / 414.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.439e-05/0.2937, allocations: 36 kB / 414.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002314/0.294, allocations: 135.9 kB / 414.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.2941, allocations: 103.7 kB / 414.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.2943, allocations: 175.2 kB / 414.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005438/0.2949, allocations: 0.4903 MB / 415 MB, free: 11.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2949, allocations: 0 / 415 MB, free: 11.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2949, allocations: 0 / 415 MB, free: 11.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.2949, allocations: 0 / 415 MB, free: 11.79 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.001177/0.2961, allocations: 0.6777 MB / 415.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.2961, allocations: 8.031 kB / 415.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002998/0.2964, allocations: 52.72 kB / 415.7 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004586/0.2969, allocations: 297.5 kB / 416 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.297, allocations: 96.5 kB / 416.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.24e-05/0.2971, allocations: 24.38 kB / 416.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006795/0.2978, allocations: 385.3 kB / 416.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.2978, allocations: 11.94 kB / 416.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.2978, allocations: 8 kB / 416.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2979, allocations: 8 kB / 416.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008138/0.2987, allocations: 421.9 kB / 417 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.3006, allocations: 1.261 MB / 418.2 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006728/0.3013, allocations: 346 kB / 418.6 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003816/0.3017, allocations: 184.8 kB / 418.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.756e-05/0.3018, allocations: 4 kB / 418.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.3018, allocations: 43.28 kB / 418.8 MB, free: 7.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 3.526e-06/0.3018, allocations: 0 / 418.8 MB, free: 7.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.00468/0.3065, allocations: 1.914 MB / 420.7 MB, free: 5.758 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.3066, allocations: 84.86 kB / 420.8 MB, free: 5.656 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.3069, allocations: 246.9 kB / 421 MB, free: 5.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/0.3069, allocations: 37.7 kB / 421.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.059e-05/0.307, allocations: 132.9 kB / 421.2 MB, free: 5.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.3071, allocations: 158.8 kB / 421.4 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.3073, allocations: 86.06 kB / 421.4 MB, free: 4.984 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3074, allocations: 338.8 kB / 421.8 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003578/0.3078, allocations: 172.8 kB / 421.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004004/0.3082, allocations: 225.9 kB / 422.2 MB, free: 4.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006746/0.3089, allocations: 335.2 kB / 422.5 MB, free: 3.898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3089, allocations: 0 / 422.5 MB, free: 3.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001108/0.31, allocations: 0.5631 MB / 423 MB, free: 3.324 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.31, allocations: 4 kB / 423.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.31, allocations: 0 / 423.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007955/0.3108, allocations: 296.6 kB / 423.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.3111, allocations: 59.89 kB / 423.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003825/0.315, allocations: 2.89 MB / 426.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.3153, allocations: 28.06 kB / 426.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.316e-05/0.3153, allocations: 20 kB / 426.3 MB, free: 15.88 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.000207/0.3155, allocations: 165.6 kB / 426.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.435e-05/0.3156, allocations: 27.81 kB / 426.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.511e-05/0.3157, allocations: 46.98 kB / 426.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3157, allocations: 4 kB / 426.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3157, allocations: 0 / 426.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3158, allocations: 0 / 426.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/0.3176, allocations: 1.117 MB / 427.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3176, allocations: 3.938 kB / 427.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.3178, allocations: 47.89 kB / 427.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006956/0.3186, allocations: 288.8 kB / 428 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/0.3186, allocations: 15.98 kB / 428 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003535/0.3221, allocations: 2.847 MB / 430.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.3222, allocations: 3.984 kB / 430.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.3237, allocations: 0.8161 MB / 431.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.3238, allocations: 144.9 kB / 431.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.761e-05/0.3239, allocations: 11.94 kB / 431.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.3242, allocations: 28.09 kB / 431.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.3243, allocations: 67.84 kB / 432 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/0.3244, allocations: 15.98 kB / 432 MB, free: 10.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002116/0.3246, allocations: 184.2 kB / 432.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3246, allocations: 0 / 432.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005896/0.3252, allocations: 135.9 kB / 432.3 MB, free: 9.695 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.000848/0.326, allocations: 373.9 kB / 432.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.3274, allocations: 0.6213 MB / 433.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3274, allocations: 0 / 433.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007111/0.3281, allocations: 433.7 kB / 433.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.3286, allocations: 55.33 kB / 433.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.3298, allocations: 0.7181 MB / 434.5 MB, free: 7.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.3302, allocations: 0.78 MB / 435.2 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002113/0.3304, allocations: 74.91 kB / 435.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.3305, allocations: 31.42 kB / 435.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3305, allocations: 0 / 435.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of Templates: time 0.01224/0.3428, allocations: 7.658 MB / 443 MB, free: 15.01 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