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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001283/0.001283, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001357/0.001358, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 67.88 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2718, allocations: 50.55 MB / 408.8 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004173/0.276, allocations: 2.449 MB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00194/0.278, allocations: 1.049 MB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/0.2782, allocations: 7.938 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.2786, allocations: 67.48 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004884/0.2791, allocations: 150.4 kB / 412.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004324/0.2795, allocations: 159.7 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005741/0.2801, allocations: 478.6 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.2803, allocations: 64.7 kB / 413.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002775/0.2806, allocations: 203.5 kB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003634/0.281, allocations: 247.2 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.764e-05/0.281, allocations: 40 kB / 413.6 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002829/0.2813, allocations: 127.9 kB / 413.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.2815, allocations: 107.7 kB / 413.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.2817, allocations: 175.2 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006974/0.2824, allocations: 497.2 kB / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.2824, allocations: 0 / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2824, allocations: 4 kB / 414.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.2824, allocations: 0 / 414.5 MB, free: 11.77 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.001355/0.2838, allocations: 0.6777 MB / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.2838, allocations: 8.031 kB / 415.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.806e-05/0.2839, allocations: 66.67 kB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003376/0.2843, allocations: 52.72 kB / 415.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000559/0.2848, allocations: 297.5 kB / 415.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/0.285, allocations: 100.5 kB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.467e-05/0.2851, allocations: 24.38 kB / 415.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007422/0.2858, allocations: 381.2 kB / 416.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.2859, allocations: 11.94 kB / 416.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.873e-05/0.2859, allocations: 8 kB / 416.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.2859, allocations: 8 kB / 416.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008543/0.2868, allocations: 425.9 kB / 416.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002213/0.289, allocations: 1.261 MB / 417.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007214/0.2898, allocations: 342 kB / 418.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003913/0.2902, allocations: 184.8 kB / 418.3 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.246e-05/0.2902, allocations: 12.14 kB / 418.3 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.2903, allocations: 39.28 kB / 418.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 3.637e-06/0.2903, allocations: 0 / 418.4 MB, free: 7.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.00501/0.2953, allocations: 1.914 MB / 420.3 MB, free: 5.668 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.94e-05/0.2954, allocations: 84.86 kB / 420.4 MB, free: 5.566 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003526/0.2957, allocations: 246.4 kB / 420.6 MB, free: 5.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.078e-05/0.2958, allocations: 33.7 kB / 420.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.2959, allocations: 140.8 kB / 420.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.2961, allocations: 154.7 kB / 420.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.2962, allocations: 86.06 kB / 421 MB, free: 4.895 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.2964, allocations: 342.8 kB / 421.4 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/0.2968, allocations: 168.8 kB / 421.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004329/0.2972, allocations: 225.9 kB / 421.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007249/0.298, allocations: 335.2 kB / 422.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.298, allocations: 0 / 422.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001203/0.2992, allocations: 0.5553 MB / 422.6 MB, free: 3.242 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.2992, allocations: 4 kB / 422.6 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.2992, allocations: 4 kB / 422.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008632/0.3001, allocations: 296.6 kB / 422.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002613/0.3004, allocations: 55.89 kB / 423 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004216/0.3046, allocations: 2.902 MB / 425.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003/0.3049, allocations: 28 kB / 425.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.093e-05/0.305, allocations: 23.98 kB / 425.9 MB, free: 15.79 MB / 350.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.0002312/0.3052, allocations: 153.2 kB / 426.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.102e-05/0.3053, allocations: 27.81 kB / 426.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001077/0.3054, allocations: 50.98 kB / 426.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.3055, allocations: 4 kB / 426.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3055, allocations: 4.062 kB / 426.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.3055, allocations: 0 / 426.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002104/0.3076, allocations: 1.109 MB / 427.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3076, allocations: 3.938 kB / 427.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002387/0.3079, allocations: 47.95 kB / 427.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007627/0.3086, allocations: 288.8 kB / 427.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.394e-05/0.3087, allocations: 15.92 kB / 427.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004235/0.3129, allocations: 2.843 MB / 430.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.313, allocations: 4 kB / 430.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001692/0.3147, allocations: 0.8122 MB / 431.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002632/0.315, allocations: 149 kB / 431.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.119e-05/0.315, allocations: 15.94 kB / 431.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.3153, allocations: 27.97 kB / 431.5 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.3155, allocations: 63.84 kB / 431.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.43e-05/0.3156, allocations: 11.98 kB / 431.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002578/0.3158, allocations: 188.8 kB / 431.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3158, allocations: 0 / 431.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007155/0.3166, allocations: 139.9 kB / 431.9 MB, free: 9.609 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.003386/0.3199, allocations: 1.649 MB / 433.5 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.3214, allocations: 0.6252 MB / 434.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3214, allocations: 0 / 434.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007924/0.3222, allocations: 429.1 kB / 434.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.3227, allocations: 39.89 kB / 434.6 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00586/0.3286, allocations: 3.432 MB / 438 MB, free: 3.391 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006282/0.3293, allocations: 0.7761 MB / 438.8 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002658/0.3296, allocations: 74.91 kB / 438.9 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002504/0.3298, allocations: 91.38 kB / 439 MB, free: 2.422 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3298, allocations: 0 / 439 MB, free: 2.422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04569/0.3755, allocations: 10.54 MB / 449.5 MB, free: 8.051 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.73, allocations: 13.73 kB / 449.5 MB, free: 8.043 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches