Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 113.8 kB / 17.06 MB, free: 5.965 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.0019/0.001901, allocations: 197.3 kB / 18.01 MB, free: 5.047 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.413/1.413, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001466, allocations: 43.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2496, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00428/0.2539, allocations: 2.741 MB / 403 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002271/0.2562, allocations: 1.077 MB / 404 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002459/0.2565, allocations: 4 kB / 404 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002845/0.2568, allocations: 75.36 kB / 404.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006284/0.2574, allocations: 190.8 kB / 404.3 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.258, allocations: 251.5 kB / 404.5 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007398/0.2587, allocations: 0.6391 MB / 405.2 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.259, allocations: 123.4 kB / 405.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004553/0.2594, allocations: 295.1 kB / 405.6 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004914/0.26, allocations: 350.8 kB / 405.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.2601, allocations: 52 kB / 406 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003244/0.2604, allocations: 135.9 kB / 406.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000204/0.2606, allocations: 147.5 kB / 406.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002918/0.2609, allocations: 254.8 kB / 406.5 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008832/0.2618, allocations: 0.6373 MB / 407.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2618, allocations: 0 / 407.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2618, allocations: 0 / 407.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.2619, allocations: 0 / 407.2 MB, free: 1.844 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001659/0.2635, allocations: 0.8104 MB / 408 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.2636, allocations: 15.89 kB / 408 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/0.2637, allocations: 82.7 kB / 408.1 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003393/0.264, allocations: 68.59 kB / 408.1 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006341/0.2647, allocations: 362.6 kB / 408.5 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.2648, allocations: 96.95 kB / 408.6 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.627e-05/0.2649, allocations: 44.36 kB / 408.6 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.2661, allocations: 0.5644 MB / 409.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.2661, allocations: 0 / 409.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.974e-05/0.2662, allocations: 19.94 kB / 409.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.2662, allocations: 12 kB / 409.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.2675, allocations: 0.6324 MB / 409.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002453/0.27, allocations: 1.295 MB / 411.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.2712, allocations: 0.5365 MB / 411.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000657/0.2719, allocations: 338.3 kB / 412 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.78e-05/0.2719, allocations: 8.562 kB / 412 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.272, allocations: 43.25 kB / 412.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 2.545e-06/0.272, allocations: 0 / 412.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.007076/0.2791, allocations: 2.88 MB / 414.9 MB, free: 9.734 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.631e-05/0.2792, allocations: 89.61 kB / 415 MB, free: 9.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000463/0.2796, allocations: 327 kB / 415.3 MB, free: 9.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.651e-05/0.2797, allocations: 41.7 kB / 415.4 MB, free: 9.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.2799, allocations: 169.7 kB / 415.6 MB, free: 9.078 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002115/0.2801, allocations: 230.1 kB / 415.8 MB, free: 8.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002408/0.2803, allocations: 126.3 kB / 415.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.2805, allocations: 350.8 kB / 416.2 MB, free: 8.371 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006643/0.2812, allocations: 293.1 kB / 416.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007052/0.2819, allocations: 354.5 kB / 416.9 MB, free: 7.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.2831, allocations: 0.5227 MB / 417.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2831, allocations: 0 / 417.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001845/0.2849, allocations: 0.8851 MB / 418.3 MB, free: 6.305 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.285, allocations: 11.94 kB / 418.3 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.285, allocations: 32 / 418.3 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.2862, allocations: 479.3 kB / 418.8 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003725/0.2865, allocations: 79.89 kB / 418.8 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/0.288, allocations: 1.079 MB / 419.9 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004852/0.2885, allocations: 60 kB / 420 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.568e-05/0.2886, allocations: 27.98 kB / 420 MB, free: 4.555 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002711/0.2888, allocations: 191.1 kB / 420.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.289, allocations: 43.72 kB / 420.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001552/0.2891, allocations: 63.77 kB / 420.3 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.2891, allocations: 12 kB / 420.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.2891, allocations: 64 / 420.3 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.2892, allocations: 7.984 kB / 420.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003452/0.2926, allocations: 1.757 MB / 422.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.2926, allocations: 0 / 422.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003871/0.293, allocations: 79.88 kB / 422.2 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/0.2941, allocations: 453 kB / 422.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.062e-05/0.2942, allocations: 23.97 kB / 422.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.2955, allocations: 1.033 MB / 423.6 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.2955, allocations: 0 / 423.6 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002656/0.2982, allocations: 1.303 MB / 425 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00027/0.2985, allocations: 180.8 kB / 425.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.2986, allocations: 23.98 kB / 425.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004411/0.299, allocations: 47.94 kB / 425.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/0.2993, allocations: 80.44 kB / 425.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.986e-05/0.2993, allocations: 31.97 kB / 425.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003235/0.2997, allocations: 245.9 kB / 425.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2997, allocations: 4 kB / 425.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005287/0.3002, allocations: 151.9 kB / 425.7 MB, free: 14.71 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003194/0.3034, allocations: 1.89 MB / 427.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001722/0.3052, allocations: 0.7119 MB / 428.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3052, allocations: 4 kB / 428.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009366/0.3061, allocations: 388 kB / 428.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005425/0.3067, allocations: 52.81 kB / 428.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009453/0.3162, allocations: 5.012 MB / 433.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005489/0.3168, allocations: 0.8212 MB / 434.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002666/0.317, allocations: 63.28 kB / 434.6 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002627/0.3173, allocations: 135.4 kB / 434.8 MB, free: 5.469 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3173, allocations: 0 / 434.8 MB, free: 5.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04473/0.362, allocations: 13.77 MB / 448.5 MB, free: 7.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/12.99, allocations: 8 kB / 448.5 MB, free: 7.859 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches