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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001066/0.001066, allocations: 106.8 kB / 17.05 MB, free: 6.09 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.001058/0.001058, allocations: 192 kB / 18 MB, free: 5.184 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.336/1.336, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009365/0.0009365, allocations: 47.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2453, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003565/0.2489, allocations: 2.346 MB / 402.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001598/0.2505, allocations: 0.9053 MB / 403.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.2507, allocations: 4 kB / 403.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001977/0.251, allocations: 51.52 kB / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004844/0.2515, allocations: 141.9 kB / 403.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004221/0.2519, allocations: 171.7 kB / 403.8 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004251/0.2523, allocations: 418.8 kB / 404.2 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.2525, allocations: 76.64 kB / 404.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002146/0.2527, allocations: 179.5 kB / 404.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.253, allocations: 215.3 kB / 404.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.518e-05/0.2531, allocations: 39.98 kB / 404.7 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002024/0.2533, allocations: 119.9 kB / 404.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001339/0.2535, allocations: 103.6 kB / 405 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.2536, allocations: 159.2 kB / 405.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000575/0.2542, allocations: 453.3 kB / 405.6 MB, free: 3.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2542, allocations: 4 kB / 405.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2542, allocations: 0 / 405.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.291e-06/0.2542, allocations: 4 kB / 405.6 MB, free: 3.465 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.00119/0.2554, allocations: 0.6428 MB / 406.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.2555, allocations: 8.031 kB / 406.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.22e-05/0.2556, allocations: 66.72 kB / 406.3 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002924/0.2559, allocations: 48.73 kB / 406.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004954/0.2564, allocations: 308.3 kB / 406.6 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.2565, allocations: 88.52 kB / 406.7 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.824e-05/0.2566, allocations: 24.38 kB / 406.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006661/0.2573, allocations: 381.2 kB / 407.1 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.2573, allocations: 3.953 kB / 407.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.783e-05/0.2573, allocations: 12 kB / 407.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.2574, allocations: 11.94 kB / 407.1 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008107/0.2582, allocations: 413.9 kB / 407.5 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.2602, allocations: 1.234 MB / 408.8 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006966/0.2609, allocations: 363.8 kB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003821/0.2613, allocations: 188.8 kB / 409.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.295e-05/0.2613, allocations: 8.141 kB / 409.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.2614, allocations: 38.56 kB / 409.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=43): time 1.934e-06/0.2614, allocations: 0 / 409.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.004861/0.2662, allocations: 1.919 MB / 411.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.2663, allocations: 84.86 kB / 411.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003069/0.2666, allocations: 246.2 kB / 411.6 MB, free: 13.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.2667, allocations: 33.7 kB / 411.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.2668, allocations: 140.8 kB / 411.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.2669, allocations: 154.6 kB / 411.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.2671, allocations: 82.11 kB / 412 MB, free: 12.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2673, allocations: 338.8 kB / 412.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003676/0.2676, allocations: 164.8 kB / 412.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004055/0.268, allocations: 233.9 kB / 412.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006857/0.2687, allocations: 347.1 kB / 413.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2688, allocations: 0 / 413.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001117/0.2699, allocations: 0.5552 MB / 413.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.2699, allocations: 4 kB / 413.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.2699, allocations: 12.06 kB / 413.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007622/0.2707, allocations: 252.6 kB / 413.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.271, allocations: 51.95 kB / 413.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003951/0.2749, allocations: 2.887 MB / 416.8 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.2752, allocations: 27.92 kB / 416.8 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/0.2753, allocations: 19.98 kB / 416.9 MB, free: 7.586 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.0001889/0.2755, allocations: 157.8 kB / 417 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.212e-05/0.2755, allocations: 23.86 kB / 417 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.2757, allocations: 42.98 kB / 417.1 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2757, allocations: 8 kB / 417.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.2757, allocations: 0 / 417.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.2757, allocations: 3.984 kB / 417.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.2775, allocations: 1.09 MB / 418.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2775, allocations: 0 / 418.2 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002189/0.2778, allocations: 43.97 kB / 418.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006735/0.2784, allocations: 241.1 kB / 418.5 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.573e-05/0.2785, allocations: 19.92 kB / 418.5 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003741/0.2822, allocations: 2.837 MB / 421.3 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.2823, allocations: 3.984 kB / 421.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.2838, allocations: 0.8277 MB / 422.1 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.2839, allocations: 136.9 kB / 422.3 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.859e-05/0.284, allocations: 15.94 kB / 422.3 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.2843, allocations: 19.97 kB / 422.3 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.2844, allocations: 63.84 kB / 422.4 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.2845, allocations: 24.05 kB / 422.4 MB, free: 1.797 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002008/0.2847, allocations: 176.3 kB / 422.6 MB, free: 1.625 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2847, allocations: 0 / 422.6 MB, free: 1.625 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006233/0.2853, allocations: 139.9 kB / 422.7 MB, free: 1.488 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.002061/0.2874, allocations: 1.425 MB / 424.1 MB, free: 32 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.2887, allocations: 0.633 MB / 424.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2887, allocations: 0 / 424.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007224/0.2894, allocations: 437.3 kB / 425.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004324/0.2899, allocations: 31.98 kB / 425.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005023/0.2949, allocations: 3.459 MB / 428.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.2953, allocations: 0.7761 MB / 429.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001815/0.2955, allocations: 58.95 kB / 429.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.2956, allocations: 87.39 kB / 429.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2956, allocations: 0 / 429.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03449/0.3301, allocations: 9.874 MB / 439.5 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.35, allocations: 0 / 439.5 MB, free: 0.6719 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/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