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.001352/0.001352, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001647/0.001647, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 63.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2691, allocations: 50.55 MB / 409.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004305/0.2734, allocations: 2.449 MB / 411.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.2751, allocations: 1.049 MB / 412.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.2752, allocations: 7.938 kB / 412.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002549/0.2754, allocations: 63.48 kB / 412.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003661/0.2758, allocations: 154.4 kB / 413 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.2762, allocations: 163.3 kB / 413.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004387/0.2766, allocations: 474.7 kB / 413.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.2768, allocations: 68.69 kB / 413.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002143/0.277, allocations: 203.5 kB / 413.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002854/0.2773, allocations: 247.2 kB / 414.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.561e-05/0.2774, allocations: 36 kB / 414.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002144/0.2776, allocations: 131.9 kB / 414.2 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.2777, allocations: 107.7 kB / 414.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.2779, allocations: 171.2 kB / 414.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005001/0.2784, allocations: 0.4958 MB / 415 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.2784, allocations: 3.984 kB / 415 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2784, allocations: 0 / 415 MB, free: 11.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.2784, allocations: 0 / 415 MB, free: 11.95 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.001121/0.2795, allocations: 0.6589 MB / 415.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.2796, allocations: 8.031 kB / 415.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002976/0.2799, allocations: 52.53 kB / 415.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004762/0.2804, allocations: 309.3 kB / 416 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.2805, allocations: 88.5 kB / 416.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.778e-05/0.2806, allocations: 32.38 kB / 416.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006847/0.2813, allocations: 377.4 kB / 416.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.2813, allocations: 3.938 kB / 416.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.702e-05/0.2813, allocations: 15.98 kB / 416.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.2813, allocations: 4 kB / 416.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000832/0.2822, allocations: 417.9 kB / 417 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.2842, allocations: 1.261 MB / 418.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006851/0.2849, allocations: 346.5 kB / 418.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00039/0.2853, allocations: 184.7 kB / 418.7 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-05/0.2853, allocations: 12.14 kB / 418.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.2854, allocations: 39.28 kB / 418.8 MB, free: 7.965 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.503e-06/0.2854, allocations: 0 / 418.8 MB, free: 7.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004677/0.29, allocations: 1.905 MB / 420.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.2901, allocations: 88.86 kB / 420.8 MB, free: 5.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003026/0.2904, allocations: 239 kB / 421 MB, free: 5.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.37e-05/0.2905, allocations: 33.7 kB / 421 MB, free: 5.559 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.51e-05/0.2906, allocations: 140.6 kB / 421.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.2907, allocations: 145.9 kB / 421.3 MB, free: 5.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.2908, allocations: 94.02 kB / 421.4 MB, free: 5.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2909, allocations: 330.8 kB / 421.7 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003613/0.2913, allocations: 168.8 kB / 421.9 MB, free: 4.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000403/0.2917, allocations: 225.9 kB / 422.1 MB, free: 4.445 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006888/0.2924, allocations: 343.1 kB / 422.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2924, allocations: 0 / 422.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001116/0.2936, allocations: 0.5551 MB / 423 MB, free: 3.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.2936, allocations: 10.81 kB / 423 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2936, allocations: 0 / 423 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000759/0.2944, allocations: 300.6 kB / 423.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002255/0.2946, allocations: 47.95 kB / 423.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003628/0.2982, allocations: 2.896 MB / 426.3 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002513/0.2985, allocations: 27.97 kB / 426.3 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.043e-05/0.2986, allocations: 16 kB / 426.3 MB, free: 96 kB / 334.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.0001733/0.2987, allocations: 162.1 kB / 426.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.744e-05/0.2988, allocations: 27.66 kB / 426.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.645e-05/0.2989, allocations: 42.94 kB / 426.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2989, allocations: 4.062 kB / 426.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.2989, allocations: 4 kB / 426.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.2989, allocations: 0 / 426.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001834/0.3008, allocations: 1.121 MB / 427.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3008, allocations: 4 kB / 427.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.3011, allocations: 47.95 kB / 427.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007022/0.3018, allocations: 292.7 kB / 428 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.558e-05/0.3018, allocations: 15.98 kB / 428 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00354/0.3054, allocations: 2.843 MB / 430.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3054, allocations: 0 / 430.9 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.3069, allocations: 0.8081 MB / 431.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001736/0.3071, allocations: 148.9 kB / 431.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.637e-05/0.3071, allocations: 15.94 kB / 431.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002616/0.3074, allocations: 23.97 kB / 431.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.3076, allocations: 59.91 kB / 431.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.549e-05/0.3076, allocations: 19.98 kB / 431.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002051/0.3078, allocations: 184.2 kB / 432.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3078, allocations: 0 / 432.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006141/0.3085, allocations: 136 kB / 432.2 MB, free: 9.91 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.0008468/0.3093, allocations: 387.8 kB / 432.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001282/0.3106, allocations: 0.6134 MB / 433.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.3106, allocations: 4 kB / 433.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007206/0.3113, allocations: 438 kB / 433.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.3117, allocations: 39.77 kB / 433.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.313, allocations: 0.6918 MB / 434.4 MB, free: 7.809 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.3134, allocations: 0.78 MB / 435.2 MB, free: 7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002168/0.3136, allocations: 78.91 kB / 435.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.3137, allocations: 31.42 kB / 435.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3137, allocations: 4 kB / 435.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of Templates: time 0.0134/0.3271, allocations: 7.947 MB / 443.2 MB, free: 14.96 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