Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 114.3 kB / 17.07 MB, free: 6.016 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.001309/0.001309, allocations: 191 kB / 18 MB, free: 5.098 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 47.92 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2703, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003493/0.2738, allocations: 2.431 MB / 403.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.2754, allocations: 0.9637 MB / 404.1 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.2756, allocations: 7.938 kB / 404.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002293/0.2758, allocations: 47.58 kB / 404.2 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005375/0.2764, allocations: 163 kB / 404.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.2767, allocations: 179.6 kB / 404.5 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004451/0.2772, allocations: 474.5 kB / 405 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.2774, allocations: 88.92 kB / 405 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002772/0.2777, allocations: 199.4 kB / 405.2 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003095/0.278, allocations: 251.1 kB / 405.5 MB, free: 4.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.819e-05/0.278, allocations: 36 kB / 405.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002392/0.2783, allocations: 139.8 kB / 405.7 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.2785, allocations: 107.7 kB / 405.8 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.2786, allocations: 187.1 kB / 405.9 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005477/0.2792, allocations: 498 kB / 406.4 MB, free: 3.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2792, allocations: 0 / 406.4 MB, free: 3.145 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2792, allocations: 0 / 406.4 MB, free: 3.145 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.2792, allocations: 0 / 406.4 MB, free: 3.145 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001246/0.2805, allocations: 0.6817 MB / 407.1 MB, free: 2.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.2805, allocations: 12.03 kB / 407.1 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000316/0.2808, allocations: 56.67 kB / 407.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004823/0.2813, allocations: 319.7 kB / 407.5 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.2815, allocations: 92.61 kB / 407.6 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.083e-05/0.2815, allocations: 32.38 kB / 407.6 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007776/0.2823, allocations: 413.1 kB / 408 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.2824, allocations: 3.953 kB / 408 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.791e-05/0.2824, allocations: 12 kB / 408 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.2824, allocations: 8 kB / 408 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009535/0.2834, allocations: 478.1 kB / 408.5 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.285, allocations: 0.9738 MB / 409.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008134/0.2859, allocations: 401.2 kB / 409.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004587/0.2863, allocations: 234.1 kB / 410.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.2864, allocations: 8.344 kB / 410.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.2864, allocations: 43 kB / 410.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 1.633e-06/0.2864, allocations: 0 / 410.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005313/0.2918, allocations: 2.176 MB / 412.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.2918, allocations: 85.67 kB / 412.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.2921, allocations: 267 kB / 412.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.2922, allocations: 37.7 kB / 412.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.2923, allocations: 133.3 kB / 412.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/0.2925, allocations: 190.4 kB / 413 MB, free: 12.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.2927, allocations: 90.23 kB / 413.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.2928, allocations: 342.8 kB / 413.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004815/0.2933, allocations: 193 kB / 413.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004843/0.2938, allocations: 244.6 kB / 413.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008169/0.2947, allocations: 396.3 kB / 414.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2947, allocations: 0 / 414.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001232/0.2959, allocations: 0.6136 MB / 414.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.2959, allocations: 11.92 kB / 414.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.296, allocations: 0 / 414.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007436/0.2967, allocations: 266.5 kB / 415.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003019/0.297, allocations: 63.95 kB / 415.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003787/0.3008, allocations: 2.937 MB / 418.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.3011, allocations: 27.97 kB / 418.2 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.576e-05/0.3012, allocations: 19.98 kB / 418.2 MB, free: 6.855 MB / 334.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.0001835/0.3014, allocations: 153.8 kB / 418.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.174e-05/0.3015, allocations: 39.81 kB / 418.4 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.3016, allocations: 51.3 kB / 418.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.3016, allocations: 8 kB / 418.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.3016, allocations: 0 / 418.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.3016, allocations: 3.984 kB / 418.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.3037, allocations: 1.27 MB / 419.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.3037, allocations: 0 / 419.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003075/0.304, allocations: 67.83 kB / 419.8 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006368/0.3047, allocations: 240.7 kB / 420 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.774e-05/0.3047, allocations: 15.98 kB / 420 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003537/0.3083, allocations: 2.843 MB / 422.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3083, allocations: 0 / 422.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.31, allocations: 0.9664 MB / 423.8 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.3102, allocations: 152.8 kB / 424 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.907e-05/0.3103, allocations: 15.94 kB / 424 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/0.3106, allocations: 36.03 kB / 424 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.3107, allocations: 64.33 kB / 424.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.792e-05/0.3108, allocations: 19.98 kB / 424.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002165/0.311, allocations: 200.6 kB / 424.3 MB, free: 500 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.311, allocations: 0 / 424.3 MB, free: 500 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005911/0.3116, allocations: 147.9 kB / 424.5 MB, free: 352 kB / 334.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.0002569/0.3119, allocations: 153.9 kB / 424.6 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.3133, allocations: 0.6956 MB / 425.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3133, allocations: 0 / 425.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007996/0.3141, allocations: 487.6 kB / 425.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.3145, allocations: 45.34 kB / 425.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.316, allocations: 0.8114 MB / 426.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.3163, allocations: 0.8007 MB / 427.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001898/0.3165, allocations: 54.95 kB / 427.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.3167, allocations: 31.42 kB / 427.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3167, allocations: 0 / 427.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Templates: time 0.01318/0.3298, allocations: 7.869 MB / 435.4 MB, free: 5.336 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches