Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001347/0.001347, allocations: 125.4 kB / 17.84 MB, free: 5.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 204.5 kB / 18.79 MB, free: 4.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.435/1.435, allocations: 230.4 MB / 250 MB, free: 9.02 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 71.83 kB / 366.8 MB, free: 7.562 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2911, allocations: 53.31 MB / 420.2 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004636/0.2958, allocations: 2.965 MB / 423.1 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.2977, allocations: 1.06 MB / 424.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.2979, allocations: 4 kB / 424.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.2982, allocations: 87.28 kB / 424.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003671/0.2986, allocations: 154.9 kB / 424.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.2989, allocations: 183.7 kB / 424.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006458/0.2996, allocations: 0.6047 MB / 425.2 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.2998, allocations: 82.7 kB / 425.3 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003266/0.3001, allocations: 267.2 kB / 425.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000385/0.3005, allocations: 287 kB / 425.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.611e-05/0.3006, allocations: 48 kB / 425.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002045/0.3008, allocations: 103.9 kB / 426 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.301, allocations: 131.6 kB / 426.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000241/0.3012, allocations: 230.9 kB / 426.3 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007142/0.3019, allocations: 0.5866 MB / 426.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3019, allocations: 0 / 426.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3019, allocations: 11.94 kB / 426.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.485e-06/0.3019, allocations: 0 / 426.9 MB, free: 1.477 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001475/0.3034, allocations: 0.7858 MB / 427.7 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.3034, allocations: 12.03 kB / 427.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001421/0.3036, allocations: 79.67 kB / 427.8 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.79e-05/0.3037, allocations: 48.59 kB / 427.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005062/0.3042, allocations: 330.7 kB / 428.2 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.3042, allocations: 29.38 kB / 428.2 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.639e-05/0.3043, allocations: 36.38 kB / 428.2 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008965/0.3052, allocations: 454.5 kB / 428.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.3052, allocations: 7.953 kB / 428.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.627e-05/0.3053, allocations: 16 kB / 428.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.3053, allocations: 8 kB / 428.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009931/0.3063, allocations: 447.7 kB / 429.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.3087, allocations: 1.289 MB / 430.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009063/0.3096, allocations: 388.3 kB / 430.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004884/0.3101, allocations: 234 kB / 431 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.768e-05/0.3102, allocations: 8.422 kB / 431.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.3102, allocations: 42.94 kB / 431.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.533e-06/0.3102, allocations: 0 / 431.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005576/0.3158, allocations: 2.249 MB / 433.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.3158, allocations: 63.83 kB / 433.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003197/0.3161, allocations: 262.7 kB / 433.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.936e-05/0.3162, allocations: 45.69 kB / 433.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.3163, allocations: 176.9 kB / 433.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002237/0.3166, allocations: 186.5 kB / 434.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.3168, allocations: 98.2 kB / 434.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.317, allocations: 350.8 kB / 434.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004909/0.3175, allocations: 221 kB / 434.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005386/0.318, allocations: 291.1 kB / 435 MB, free: 9.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007963/0.3188, allocations: 391.8 kB / 435.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3188, allocations: 4 kB / 435.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001592/0.3204, allocations: 0.7197 MB / 436.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.3204, allocations: 4 kB / 436.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3204, allocations: 4 kB / 436.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.3215, allocations: 427.3 kB / 436.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.3217, allocations: 71.89 kB / 436.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003478/0.3252, allocations: 3.653 MB / 440.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005195/0.3257, allocations: 71.94 kB / 440.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.906e-05/0.3258, allocations: 23.98 kB / 440.3 MB, free: 3.312 MB / 350.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 (44): * Single equations (assignments): 41 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002726/0.3261, allocations: 174.6 kB / 440.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.3262, allocations: 43.7 kB / 440.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001647/0.3278, allocations: 0.7122 MB / 441.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.3278, allocations: 4 kB / 441.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3278, allocations: 4 kB / 441.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3278, allocations: 0 / 441.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.3303, allocations: 1.282 MB / 442.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.3303, allocations: 0 / 442.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002777/0.3305, allocations: 55.91 kB / 442.6 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.3316, allocations: 402.2 kB / 443 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.455e-05/0.3316, allocations: 27.91 kB / 443 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003423/0.335, allocations: 3.614 MB / 446.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.335, allocations: 0 / 446.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002149/0.3372, allocations: 1.01 MB / 447.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000255/0.3374, allocations: 168.8 kB / 447.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.941e-05/0.3375, allocations: 23.94 kB / 447.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.338, allocations: 71.91 kB / 447.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/0.3382, allocations: 92.41 kB / 448 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.592e-05/0.3383, allocations: 15.98 kB / 448 MB, free: 11.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002222/0.3385, allocations: 198 kB / 448.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3385, allocations: 0 / 448.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005379/0.339, allocations: 120 kB / 448.3 MB, free: 10.88 MB / 366.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,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003668/0.3427, allocations: 1.838 MB / 450.2 MB, free: 9.133 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.3444, allocations: 0.7613 MB / 450.9 MB, free: 8.344 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3444, allocations: 0 / 450.9 MB, free: 8.344 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009335/0.3454, allocations: 0.5152 MB / 451.5 MB, free: 7.805 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005307/0.3459, allocations: 79.12 kB / 451.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007618/0.3535, allocations: 4.288 MB / 455.8 MB, free: 3.316 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005214/0.354, allocations: 0.8124 MB / 456.6 MB, free: 2.469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000166/0.3542, allocations: 39.25 kB / 456.7 MB, free: 2.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002175/0.3544, allocations: 123.4 kB / 456.8 MB, free: 2.309 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3544, allocations: 0 / 456.8 MB, free: 2.309 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05063/0.405, allocations: 14.06 MB / 470.8 MB, free: 4.438 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.01, allocations: 14.42 kB / 470.9 MB, free: 4.426 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1)