Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 197.2 kB / 18.73 MB, free: 4.336 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.499/1.499, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.002089/0.002089, allocations: 63.91 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3255, allocations: 50.55 MB / 409 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003783/0.3294, allocations: 1.878 MB / 410.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.3304, allocations: 486.8 kB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.3306, allocations: 0 / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.3307, allocations: 11.86 kB / 411.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.465e-05/0.3308, allocations: 27.72 kB / 411.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001893/0.331, allocations: 31.91 kB / 411.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002095/0.3312, allocations: 107.6 kB / 411.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.3314, allocations: 37.38 kB / 411.6 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.096e-05/0.3315, allocations: 39.86 kB / 411.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.207e-05/0.3316, allocations: 43.78 kB / 411.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.371e-05/0.3316, allocations: 8 kB / 411.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.249e-05/0.3316, allocations: 8 kB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.026e-05/0.3317, allocations: 23.92 kB / 411.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.206e-05/0.3318, allocations: 51.72 kB / 411.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002681/0.332, allocations: 106.4 kB / 411.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.3321, allocations: 0 / 411.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3321, allocations: 0 / 411.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.3321, allocations: 4 kB / 411.9 MB, free: 14.53 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007305/0.3328, allocations: 407.2 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.3329, allocations: 8.031 kB / 412.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.166e-05/0.3329, allocations: 38.75 kB / 412.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.773e-05/0.333, allocations: 16.88 kB / 412.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003361/0.3333, allocations: 196.2 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.3334, allocations: 8.562 kB / 412.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.3334, allocations: 20.06 kB / 412.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/0.3337, allocations: 116.5 kB / 412.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.3337, allocations: 3.984 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.3338, allocations: 0 / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.3338, allocations: 8 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002483/0.334, allocations: 71.88 kB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007791/0.3348, allocations: 0.5249 MB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.335, allocations: 78.59 kB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.3352, allocations: 40.78 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.3352, allocations: 0 / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/0.3352, allocations: 34.56 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.3353, allocations: 7.938 kB / 413.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004193/0.3357, allocations: 121.6 kB / 413.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.3357, allocations: 51.41 kB / 413.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.3359, allocations: 132.7 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.3359, allocations: 29.7 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.738e-05/0.336, allocations: 108 kB / 413.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.336, allocations: 35.88 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.98e-05/0.3361, allocations: 25.72 kB / 413.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.3363, allocations: 330.8 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.3364, allocations: 27.97 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.3366, allocations: 68.2 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.3368, allocations: 104.1 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.3368, allocations: 4 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003106/0.3372, allocations: 141.5 kB / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3372, allocations: 8 kB / 414.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3372, allocations: 0 / 414.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.3372, allocations: 0 / 414.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.3374, allocations: 31.97 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.3374, allocations: 7.938 kB / 414.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.212e-05/0.3375, allocations: 4 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.3375, allocations: 8 kB / 414.7 MB, free: 11.48 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.3376, allocations: 133.8 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/0.3377, allocations: 7.953 kB / 414.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.119e-05/0.3377, allocations: 8.375 kB / 414.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3377, allocations: 0 / 414.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.3377, allocations: 0 / 414.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3377, allocations: 0 / 414.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.338, allocations: 197.6 kB / 415 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.338, allocations: 0 / 415 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.3381, allocations: 27.98 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.3382, allocations: 0 / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.3382, allocations: 7.938 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.3382, allocations: 4 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3382, allocations: 3.938 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004503/0.3386, allocations: 235.3 kB / 415.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.674e-05/0.3387, allocations: 89.09 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.3387, allocations: 0 / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.954e-05/0.3388, allocations: 12 kB / 415.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.589e-05/0.3389, allocations: 7.984 kB / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.3389, allocations: 0 / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.957e-05/0.339, allocations: 95.27 kB / 415.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.339, allocations: 0 / 415.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000245/0.3392, allocations: 23.94 kB / 415.5 MB, free: 10.54 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007315/0.34, allocations: 0.7789 MB / 416.3 MB, free: 9.738 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000274/0.3403, allocations: 75.89 kB / 416.4 MB, free: 9.664 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3403, allocations: 0 / 416.4 MB, free: 9.664 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.3404, allocations: 44.16 kB / 416.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.3407, allocations: 23.97 kB / 416.4 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.343, allocations: 1.723 MB / 418.1 MB, free: 7.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/0.3433, allocations: 0.7079 MB / 418.8 MB, free: 7.035 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.821e-05/0.3434, allocations: 8.422 kB / 418.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.338e-05/0.3435, allocations: 31.42 kB / 418.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3435, allocations: 0 / 418.9 MB, free: 6.996 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/0.3737, allocations: 2.398 MB / 421.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.438/8.812, allocations: 11.22 kB / 421.3 MB, free: 4.738 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1)