Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.001307/0.001307, allocations: 113.6 kB / 17.06 MB, free: 6.012 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.00132/0.00132, allocations: 189.4 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.389/1.389, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 51.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2697/0.2712, allocations: 49.42 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004365/0.2756, allocations: 2.82 MB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.2777, allocations: 0.8881 MB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002378/0.2779, allocations: 4 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002596/0.2782, allocations: 67.39 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000275/0.2785, allocations: 103.1 kB / 404.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005573/0.2791, allocations: 215.6 kB / 404.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006267/0.2797, allocations: 0.5657 MB / 404.9 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.28, allocations: 110.7 kB / 405 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003264/0.2803, allocations: 247.2 kB / 405.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003792/0.2807, allocations: 275 kB / 405.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.158e-05/0.2808, allocations: 44 kB / 405.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.281, allocations: 99.95 kB / 405.6 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.2812, allocations: 115.6 kB / 405.7 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002328/0.2814, allocations: 215 kB / 406 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006955/0.2821, allocations: 0.5322 MB / 406.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2821, allocations: 0 / 406.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2821, allocations: 0 / 406.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.2821, allocations: 0 / 406.5 MB, free: 2.547 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001493/0.2836, allocations: 0.755 MB / 407.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.2837, allocations: 8.031 kB / 407.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001304/0.2838, allocations: 79.72 kB / 407.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.528e-05/0.2839, allocations: 44.66 kB / 407.4 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.2844, allocations: 318.7 kB / 407.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.265e-05/0.2845, allocations: 29.38 kB / 407.7 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.664e-05/0.2846, allocations: 40.31 kB / 407.8 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009456/0.2855, allocations: 446.4 kB / 408.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.2856, allocations: 4 kB / 408.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.46e-05/0.2856, allocations: 12 kB / 408.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.2857, allocations: 8 kB / 408.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009877/0.2866, allocations: 467.7 kB / 408.7 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00245/0.2891, allocations: 1.274 MB / 409.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008679/0.29, allocations: 374 kB / 410.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004933/0.2905, allocations: 249.4 kB / 410.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.226e-05/0.2906, allocations: 8.359 kB / 410.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.2906, allocations: 42.94 kB / 410.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.355e-06/0.2906, allocations: 0 / 410.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005882/0.2965, allocations: 2.266 MB / 412.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.2966, allocations: 59.83 kB / 412.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003318/0.2969, allocations: 254.6 kB / 413.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.161e-05/0.297, allocations: 37.7 kB / 413.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.2972, allocations: 176.8 kB / 413.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.2974, allocations: 174.6 kB / 413.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.2975, allocations: 102.2 kB / 413.7 MB, free: 11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.2977, allocations: 338.8 kB / 414 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004983/0.2982, allocations: 237 kB / 414.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005458/0.2988, allocations: 299.2 kB / 414.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008497/0.2996, allocations: 423.7 kB / 414.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2997, allocations: 0 / 414.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001714/0.3014, allocations: 0.7549 MB / 415.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.3014, allocations: 8 kB / 415.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3014, allocations: 128 / 415.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.3027, allocations: 0.5529 MB / 416.2 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.303, allocations: 67.84 kB / 416.3 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003584/0.3066, allocations: 3.663 MB / 420 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005569/0.3072, allocations: 71.91 kB / 420 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.034e-05/0.3072, allocations: 16 kB / 420.1 MB, free: 4.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0002904/0.3075, allocations: 174.4 kB / 420.2 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.857e-05/0.3076, allocations: 39.69 kB / 420.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/0.3093, allocations: 0.7248 MB / 421 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.3093, allocations: 8 kB / 421 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3094, allocations: 4 kB / 421 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.3094, allocations: 3.984 kB / 421 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002429/0.3118, allocations: 1.274 MB / 422.3 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.3118, allocations: 0 / 422.3 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002756/0.3121, allocations: 51.97 kB / 422.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001052/0.3132, allocations: 0.5294 MB / 422.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.947e-05/0.3132, allocations: 19.98 kB / 422.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003297/0.3165, allocations: 3.622 MB / 426.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3166, allocations: 0 / 426.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/0.3186, allocations: 1.033 MB / 427.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000228/0.3189, allocations: 160.8 kB / 427.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.116e-05/0.319, allocations: 19.88 kB / 427.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004761/0.3195, allocations: 75.91 kB / 427.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/0.3197, allocations: 84.3 kB / 427.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.755e-05/0.3198, allocations: 23.97 kB / 427.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001942/0.32, allocations: 182 kB / 428.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.32, allocations: 0 / 428.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005231/0.3205, allocations: 123.9 kB / 428.2 MB, free: 11.65 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002564/0.3231, allocations: 1.62 MB / 429.8 MB, free: 9.988 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.3248, allocations: 0.8057 MB / 430.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3248, allocations: 0 / 430.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009852/0.3258, allocations: 0.545 MB / 431.2 MB, free: 8.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005523/0.3264, allocations: 55.34 kB / 431.2 MB, free: 8.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007721/0.3341, allocations: 4.375 MB / 435.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.3346, allocations: 0.7957 MB / 436.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.3348, allocations: 39.27 kB / 436.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.335, allocations: 107.4 kB / 436.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.335, allocations: 0 / 436.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04784/0.3829, allocations: 13.36 MB / 449.9 MB, free: 5.875 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.17, allocations: 13.05 kB / 449.9 MB, free: 5.871 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches