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.0009918/0.0009919, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001047/0.001047, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001318, allocations: 63.91 kB / 358.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2562, allocations: 50.53 MB / 409.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003627/0.2598, allocations: 2.546 MB / 411.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.2616, allocations: 1.127 MB / 412.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.2618, allocations: 7.938 kB / 412.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002934/0.2621, allocations: 71.42 kB / 413 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004559/0.2626, allocations: 169.4 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003821/0.2629, allocations: 191.5 kB / 413.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004644/0.2634, allocations: 0.5102 MB / 413.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001763/0.2636, allocations: 96.91 kB / 413.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003085/0.2639, allocations: 235.3 kB / 414.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003252/0.2643, allocations: 275.1 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.834e-05/0.2643, allocations: 40 kB / 414.5 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002338/0.2646, allocations: 139.9 kB / 414.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.2647, allocations: 111.7 kB / 414.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.2649, allocations: 203.1 kB / 414.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005548/0.2655, allocations: 0.5447 MB / 415.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2655, allocations: 0 / 415.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2655, allocations: 4 kB / 415.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.2655, allocations: 0 / 415.5 MB, free: 11.36 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.001256/0.2668, allocations: 0.7166 MB / 416.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.2668, allocations: 11.97 kB / 416.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003877/0.2672, allocations: 64.67 kB / 416.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004881/0.2677, allocations: 323.7 kB / 416.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/0.2678, allocations: 92.61 kB / 416.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/0.2679, allocations: 36.33 kB / 416.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007753/0.2687, allocations: 425 kB / 417.1 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.2687, allocations: 0 / 417.1 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.888e-05/0.2687, allocations: 12 kB / 417.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.2688, allocations: 11.98 kB / 417.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009704/0.2697, allocations: 470.3 kB / 417.6 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.2716, allocations: 0.9931 MB / 418.6 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008339/0.2725, allocations: 396.5 kB / 419 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004613/0.2729, allocations: 234.2 kB / 419.2 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.143e-05/0.273, allocations: 12.36 kB / 419.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.273, allocations: 39 kB / 419.3 MB, free: 7.383 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.743e-06/0.273, allocations: 0 / 419.3 MB, free: 7.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005132/0.2782, allocations: 2.149 MB / 421.4 MB, free: 5.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.2783, allocations: 81.67 kB / 421.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003892/0.2787, allocations: 277 kB / 421.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.798e-05/0.2788, allocations: 37.7 kB / 421.8 MB, free: 4.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.2789, allocations: 141.2 kB / 421.9 MB, free: 4.562 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.279, allocations: 194.4 kB / 422.1 MB, free: 4.371 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.2792, allocations: 94.22 kB / 422.2 MB, free: 4.273 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2793, allocations: 338.8 kB / 422.5 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004298/0.2798, allocations: 193 kB / 422.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004602/0.2802, allocations: 244.6 kB / 423 MB, free: 3.496 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008004/0.2811, allocations: 384.3 kB / 423.3 MB, free: 3.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.2811, allocations: 0 / 423.3 MB, free: 3.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001222/0.2823, allocations: 0.6136 MB / 424 MB, free: 2.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.2823, allocations: 14.75 kB / 424 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.2823, allocations: 0 / 424 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007805/0.2831, allocations: 302.6 kB / 424.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.2834, allocations: 63.89 kB / 424.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003645/0.2871, allocations: 2.947 MB / 427.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002965/0.2874, allocations: 32.06 kB / 427.3 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/0.2875, allocations: 19.98 kB / 427.3 MB, free: 14.98 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.0002028/0.2877, allocations: 165.7 kB / 427.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.605e-05/0.2878, allocations: 35.75 kB / 427.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001163/0.2879, allocations: 43.62 kB / 427.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.2879, allocations: 8 kB / 427.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.2879, allocations: 7.938 kB / 427.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2879, allocations: 7.922 kB / 427.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002205/0.2901, allocations: 1.297 MB / 428.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.2902, allocations: 0 / 428.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003333/0.2905, allocations: 71.92 kB / 429 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006955/0.2912, allocations: 292.5 kB / 429.2 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.139e-05/0.2913, allocations: 15.98 kB / 429.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003479/0.2947, allocations: 2.849 MB / 432.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2948, allocations: 0 / 432.1 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.2965, allocations: 0.9546 MB / 433.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.2967, allocations: 152.9 kB / 433.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.77e-05/0.2968, allocations: 19.92 kB / 433.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002997/0.2971, allocations: 23.98 kB / 433.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001782/0.2973, allocations: 80.38 kB / 433.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.2973, allocations: 19.98 kB / 433.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000237/0.2976, allocations: 204.4 kB / 433.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2976, allocations: 0 / 433.6 MB, free: 8.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000604/0.2982, allocations: 147.9 kB / 433.7 MB, free: 8.363 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.0009029/0.2991, allocations: 373 kB / 434.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.3005, allocations: 0.7033 MB / 434.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3006, allocations: 3.938 kB / 434.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008076/0.3014, allocations: 475.7 kB / 435.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004507/0.3018, allocations: 52.91 kB / 435.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.3033, allocations: 0.816 MB / 436.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.3037, allocations: 0.8006 MB / 436.9 MB, free: 5.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002328/0.3039, allocations: 78.91 kB / 437 MB, free: 5.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001243/0.3041, allocations: 43.41 kB / 437 MB, free: 5.059 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3041, allocations: 0 / 437 MB, free: 5.059 MB / 350.1 MB Notification: Performance of Templates: time 0.0135/0.3176, allocations: 8.331 MB / 445.3 MB, free: 12.75 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches