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.001122/0.001122, allocations: 105.1 kB / 17.06 MB, free: 6.098 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.001131/0.001131, allocations: 196.1 kB / 18 MB, free: 5.168 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.331/1.331, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2838, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004393/0.2883, allocations: 2.819 MB / 403 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.2901, allocations: 0.896 MB / 403.9 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002004/0.2904, allocations: 4 kB / 403.9 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002484/0.2907, allocations: 51.45 kB / 404 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.2909, allocations: 115 kB / 404.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004966/0.2915, allocations: 219.6 kB / 404.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005469/0.292, allocations: 0.5735 MB / 404.9 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.2922, allocations: 106.7 kB / 405 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002924/0.2925, allocations: 247.3 kB / 405.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003421/0.2929, allocations: 279 kB / 405.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.821e-05/0.293, allocations: 44 kB / 405.6 MB, free: 3.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.2932, allocations: 95.94 kB / 405.6 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.2933, allocations: 111.6 kB / 405.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002158/0.2935, allocations: 219 kB / 406 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006442/0.2942, allocations: 0.5322 MB / 406.5 MB, free: 2.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2942, allocations: 0 / 406.5 MB, free: 2.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.2942, allocations: 0 / 406.5 MB, free: 2.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.2942, allocations: 3.938 kB / 406.5 MB, free: 2.5 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.001427/0.2956, allocations: 0.752 MB / 407.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.2957, allocations: 8.031 kB / 407.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/0.2958, allocations: 75.7 kB / 407.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.357e-05/0.2959, allocations: 52.66 kB / 407.4 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.2964, allocations: 306.7 kB / 407.7 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.2964, allocations: 29.38 kB / 407.7 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.017e-05/0.2965, allocations: 32.38 kB / 407.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000858/0.2974, allocations: 458.4 kB / 408.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.2974, allocations: 7.875 kB / 408.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.443e-05/0.2975, allocations: 16 kB / 408.2 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.2975, allocations: 8 kB / 408.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009318/0.2984, allocations: 459.7 kB / 408.7 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.3008, allocations: 1.278 MB / 410 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008278/0.3016, allocations: 370.1 kB / 410.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004809/0.3021, allocations: 253.4 kB / 410.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.72e-05/0.3022, allocations: 4.375 kB / 410.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.3022, allocations: 42.92 kB / 410.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.956e-06/0.3022, allocations: 0 / 410.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005521/0.3077, allocations: 2.266 MB / 412.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.3078, allocations: 55.84 kB / 412.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/0.3081, allocations: 258.6 kB / 413.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.607e-05/0.3081, allocations: 41.7 kB / 413.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.3083, allocations: 172.9 kB / 413.4 MB, free: 11.24 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.3084, allocations: 174.6 kB / 413.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.3086, allocations: 98.19 kB / 413.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.3087, allocations: 342.8 kB / 414 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004917/0.3092, allocations: 233 kB / 414.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005316/0.3098, allocations: 303.1 kB / 414.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008038/0.3106, allocations: 423.7 kB / 414.9 MB, free: 9.648 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3106, allocations: 0 / 414.9 MB, free: 9.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001607/0.3122, allocations: 0.7549 MB / 415.7 MB, free: 8.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.3123, allocations: 8 kB / 415.7 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.3123, allocations: 3.984 kB / 415.7 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.3133, allocations: 0.5413 MB / 416.2 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.3136, allocations: 75.89 kB / 416.3 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003228/0.3169, allocations: 3.657 MB / 420 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005352/0.3174, allocations: 76 kB / 420 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.676e-05/0.3175, allocations: 19.98 kB / 420.1 MB, free: 4.18 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.0002404/0.3177, allocations: 166.2 kB / 420.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.372e-05/0.3178, allocations: 39.75 kB / 420.3 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001588/0.3194, allocations: 0.7247 MB / 421 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.3194, allocations: 8 kB / 421 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.3194, allocations: 0 / 421 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3195, allocations: 0 / 421 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.3216, allocations: 1.27 MB / 422.3 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3216, allocations: 4 kB / 422.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.3219, allocations: 55.91 kB / 422.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009766/0.3229, allocations: 0.5317 MB / 422.9 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.354e-05/0.323, allocations: 23.91 kB / 422.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00292/0.3259, allocations: 3.618 MB / 426.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3259, allocations: 0 / 426.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001907/0.3278, allocations: 1.025 MB / 427.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002049/0.328, allocations: 164.8 kB / 427.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.3281, allocations: 19.94 kB / 427.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000459/0.3286, allocations: 71.91 kB / 427.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.3288, allocations: 96.22 kB / 427.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.976e-05/0.3288, allocations: 19.98 kB / 427.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001767/0.329, allocations: 178 kB / 428.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.329, allocations: 4 kB / 428.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005133/0.3296, allocations: 127.9 kB / 428.2 MB, free: 11.61 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.002361/0.3319, allocations: 1.613 MB / 429.8 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001605/0.3335, allocations: 0.8059 MB / 430.6 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.3336, allocations: 4 kB / 430.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009131/0.3345, allocations: 0.5369 MB / 431.2 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.3351, allocations: 64.58 kB / 431.2 MB, free: 8.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00739/0.3425, allocations: 4.378 MB / 435.6 MB, free: 3.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/0.3429, allocations: 0.7957 MB / 436.4 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001636/0.3431, allocations: 39.28 kB / 436.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.3433, allocations: 111.4 kB / 436.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3433, allocations: 0 / 436.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03812/0.3814, allocations: 13.36 MB / 449.9 MB, free: 5.836 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.51, allocations: 7.656 kB / 449.9 MB, free: 5.832 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