Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 114.9 kB / 17.75 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 188.4 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 242.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 51.86 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.261, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003275/0.2643, allocations: 2.355 MB / 403.7 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.2661, allocations: 0.9131 MB / 404.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002356/0.2664, allocations: 4 kB / 404.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003076/0.2667, allocations: 43.58 kB / 404.7 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006546/0.2674, allocations: 135.3 kB / 404.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.2678, allocations: 179.5 kB / 405 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005158/0.2684, allocations: 418.8 kB / 405.4 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.2686, allocations: 68.66 kB / 405.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002899/0.2689, allocations: 183.5 kB / 405.7 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003451/0.2692, allocations: 219.3 kB / 405.9 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.623e-05/0.2693, allocations: 32 kB / 405.9 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002518/0.2696, allocations: 119.9 kB / 406 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000141/0.2697, allocations: 99.7 kB / 406.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001929/0.2699, allocations: 167.2 kB / 406.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005361/0.2705, allocations: 443.8 kB / 406.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2705, allocations: 0 / 406.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2705, allocations: 0 / 406.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.2705, allocations: 0 / 406.7 MB, free: 3.523 MB / 318.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.001222/0.2717, allocations: 0.6432 MB / 407.4 MB, free: 2.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.2718, allocations: 8.031 kB / 407.4 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003326/0.2721, allocations: 52.53 kB / 407.4 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/0.2727, allocations: 300.5 kB / 407.7 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.2728, allocations: 88.45 kB / 407.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.345e-05/0.2729, allocations: 32.36 kB / 407.8 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007075/0.2736, allocations: 377.4 kB / 408.2 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.2736, allocations: 3.984 kB / 408.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.578e-05/0.2736, allocations: 12 kB / 408.2 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.2737, allocations: 8 kB / 408.2 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008216/0.2745, allocations: 417.9 kB / 408.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/0.2765, allocations: 1.241 MB / 409.9 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006728/0.2772, allocations: 356 kB / 410.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003722/0.2776, allocations: 184.8 kB / 410.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.2776, allocations: 4 kB / 410.4 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.2776, allocations: 42.5 kB / 410.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 2.345e-06/0.2777, allocations: 0 / 410.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004818/0.2825, allocations: 1.918 MB / 412.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.2826, allocations: 88.86 kB / 412.5 MB, free: 13.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002915/0.2829, allocations: 242.1 kB / 412.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.34e-05/0.2829, allocations: 37.7 kB / 412.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.144e-05/0.283, allocations: 132.7 kB / 412.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.2832, allocations: 150 kB / 413 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.2833, allocations: 86.12 kB / 413.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2834, allocations: 330.8 kB / 413.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003573/0.2838, allocations: 172.8 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000387/0.2842, allocations: 225.9 kB / 413.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000662/0.2849, allocations: 347.2 kB / 414.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2849, allocations: 0 / 414.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001122/0.286, allocations: 0.5589 MB / 414.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.286, allocations: 4 kB / 414.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.2861, allocations: 8.125 kB / 414.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007333/0.2868, allocations: 252.6 kB / 415 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.287, allocations: 51.91 kB / 415 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003819/0.2909, allocations: 2.886 MB / 417.9 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002861/0.2912, allocations: 23.97 kB / 417.9 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.947e-05/0.2913, allocations: 16 kB / 417.9 MB, free: 7.742 MB / 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.0002084/0.2915, allocations: 169.7 kB / 418.1 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-05/0.2916, allocations: 31.62 kB / 418.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.07e-05/0.2917, allocations: 39 kB / 418.2 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2917, allocations: 4 kB / 418.2 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.2917, allocations: 0 / 418.2 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2917, allocations: 3.984 kB / 418.2 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.2935, allocations: 1.086 MB / 419.3 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.2935, allocations: 0 / 419.3 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002213/0.2937, allocations: 39.97 kB / 419.3 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006659/0.2944, allocations: 237.1 kB / 419.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.499e-05/0.2944, allocations: 15.98 kB / 419.5 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003721/0.2982, allocations: 2.845 MB / 422.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.2982, allocations: 0 / 422.4 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.2997, allocations: 0.8197 MB / 423.2 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.2998, allocations: 136.8 kB / 423.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.347e-05/0.2999, allocations: 15.94 kB / 423.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002568/0.3002, allocations: 23.92 kB / 423.4 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.3003, allocations: 63.97 kB / 423.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.973e-05/0.3004, allocations: 15.98 kB / 423.5 MB, free: 1.965 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002275/0.3006, allocations: 180.3 kB / 423.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3006, allocations: 3.938 kB / 423.6 MB, free: 1.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006025/0.3012, allocations: 144 kB / 423.8 MB, free: 1.645 MB / 334.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.000253/0.3015, allocations: 139.2 kB / 423.9 MB, free: 1.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.3028, allocations: 0.6251 MB / 424.5 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3028, allocations: 0 / 424.5 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007027/0.3035, allocations: 437.6 kB / 425 MB, free: 424 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004299/0.304, allocations: 55.78 kB / 425 MB, free: 368 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.3054, allocations: 0.7117 MB / 425.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.3057, allocations: 0.78 MB / 426.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.3059, allocations: 31.42 kB / 426.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3059, allocations: 0 / 426.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of Templates: time 0.008477/0.3144, allocations: 5.239 MB / 431.8 MB, free: 9.547 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches