Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 196.2 kB / 17.43 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007187/0.0007187, allocations: 93.78 kB / 299.9 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002092/0.0002092, allocations: 8 kB / 360.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2579, allocations: 51.41 MB / 412 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002111/0.2601, allocations: 2.145 MB / 414.2 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.2616, allocations: 1.433 MB / 415.6 MB, free: 22.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000186/0.2618, allocations: 7.938 kB / 415.6 MB, free: 22.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002834/0.2621, allocations: 55.67 kB / 415.7 MB, free: 22.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004329/0.2626, allocations: 143.4 kB / 415.8 MB, free: 22.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003658/0.2629, allocations: 147.8 kB / 416 MB, free: 21.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003979/0.2634, allocations: 0.4907 MB / 416.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.2635, allocations: 73.38 kB / 416.5 MB, free: 21.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003028/0.2638, allocations: 215.2 kB / 416.7 MB, free: 21.12 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002809/0.2641, allocations: 247.2 kB / 417 MB, free: 20.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.505e-05/0.2642, allocations: 20 kB / 417 MB, free: 20.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.2644, allocations: 111.8 kB / 417.1 MB, free: 20.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.2645, allocations: 95.7 kB / 417.2 MB, free: 20.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001446/0.2647, allocations: 204.8 kB / 417.4 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004112/0.2651, allocations: 0.5115 MB / 417.9 MB, free: 19.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2651, allocations: 4 kB / 417.9 MB, free: 19.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2651, allocations: 0 / 417.9 MB, free: 19.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.2651, allocations: 0 / 417.9 MB, free: 19.93 MB / 298.7 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.001017/0.2662, allocations: 0.6316 MB / 418.6 MB, free: 19.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.2662, allocations: 12.03 kB / 418.6 MB, free: 19.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003633/0.2666, allocations: 64.53 kB / 418.6 MB, free: 19.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004043/0.267, allocations: 316 kB / 418.9 MB, free: 18.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.2671, allocations: 96.59 kB / 419 MB, free: 18.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.824e-05/0.2672, allocations: 36.28 kB / 419.1 MB, free: 18.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006806/0.2679, allocations: 429 kB / 419.5 MB, free: 18.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.2679, allocations: 0 / 419.5 MB, free: 18.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.696e-05/0.2679, allocations: 15.98 kB / 419.5 MB, free: 18.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.2679, allocations: 8 kB / 419.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008462/0.2688, allocations: 494.2 kB / 420 MB, free: 17.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.2702, allocations: 0.9969 MB / 421 MB, free: 16.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007388/0.2709, allocations: 392.5 kB / 421.4 MB, free: 16.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004105/0.2713, allocations: 238.1 kB / 421.6 MB, free: 16.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.2714, allocations: 12.42 kB / 421.6 MB, free: 16.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.2714, allocations: 38.98 kB / 421.7 MB, free: 16.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.543e-06/0.2714, allocations: 0 / 421.7 MB, free: 16.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004418/0.2758, allocations: 2.218 MB / 423.9 MB, free: 13.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.701e-05/0.2759, allocations: 81.67 kB / 424 MB, free: 13.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002404/0.2761, allocations: 272.1 kB / 424.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.2762, allocations: 37.7 kB / 424.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.079e-05/0.2762, allocations: 129.2 kB / 424.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.305e-05/0.2763, allocations: 197.3 kB / 424.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.2764, allocations: 11.94 kB / 424.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.765e-05/0.2764, allocations: 338.8 kB / 424.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003865/0.2768, allocations: 201 kB / 425.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003972/0.2772, allocations: 248.6 kB / 425.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006952/0.2779, allocations: 396.3 kB / 425.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2779, allocations: 0 / 425.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001064/0.279, allocations: 0.6135 MB / 426.4 MB, free: 11.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.279, allocations: 7.938 kB / 426.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.279, allocations: 4 kB / 426.4 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006921/0.2797, allocations: 297.5 kB / 426.7 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002895/0.28, allocations: 71.94 kB / 426.7 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002883/0.2829, allocations: 2.711 MB / 429.4 MB, free: 7.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002883/0.2832, allocations: 36 kB / 429.5 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.501e-05/0.2833, allocations: 23.98 kB / 429.5 MB, free: 7.859 MB / 298.7 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.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * 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.0001428/0.2834, allocations: 161.8 kB / 429.7 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.303e-05/0.2835, allocations: 31.62 kB / 429.7 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.394e-05/0.2836, allocations: 51.3 kB / 429.7 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2836, allocations: 7.938 kB / 429.7 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.2836, allocations: 4 kB / 429.7 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2836, allocations: 3.984 kB / 429.8 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.2854, allocations: 1.303 MB / 431.1 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.2854, allocations: 8.016 kB / 431.1 MB, free: 6.219 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.2857, allocations: 67.89 kB / 431.1 MB, free: 6.152 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006112/0.2864, allocations: 280.6 kB / 431.4 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.2864, allocations: 19.98 kB / 431.4 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002684/0.2891, allocations: 2.609 MB / 434 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2891, allocations: 4.031 kB / 434 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.2906, allocations: 0.9689 MB / 435 MB, free: 2.125 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.2908, allocations: 168.6 kB / 435.2 MB, free: 1.941 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.26e-05/0.2908, allocations: 12 kB / 435.2 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003113/0.2911, allocations: 36.03 kB / 435.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.2913, allocations: 72.31 kB / 435.3 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-05/0.2914, allocations: 19.98 kB / 435.3 MB, free: 1.805 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001874/0.2915, allocations: 205.6 kB / 435.5 MB, free: 1.605 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2916, allocations: 0 / 435.5 MB, free: 1.605 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005227/0.2921, allocations: 144 kB / 435.6 MB, free: 1.465 MB / 298.7 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.0007566/0.2928, allocations: 440.2 kB / 436.1 MB, free: 1.129 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.294, allocations: 0.7033 MB / 436.8 MB, free: 420 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.294, allocations: 0 / 436.8 MB, free: 420 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006965/0.2947, allocations: 487.8 kB / 437.3 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004325/0.2952, allocations: 48.34 kB / 437.3 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.2966, allocations: 0.9879 MB / 438.3 MB, free: 14.85 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.2969, allocations: 0.7931 MB / 439.1 MB, free: 14.03 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002566/0.2972, allocations: 86.89 kB / 439.2 MB, free: 13.94 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.2973, allocations: 43.34 kB / 439.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2973, allocations: 0 / 439.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of Templates: time 0.01169/0.309, allocations: 7.646 MB / 446.9 MB, free: 6.281 MB / 314.7 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","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches