Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.001319, allocations: 121.2 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.492/1.492, allocations: 230.5 MB / 254.8 MB, free: 15.13 MB / 206.1 MB " [Timeout remaining time 178] 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.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.002004/0.002004, allocations: 79.83 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1158, allocations: 53.32 MB / 427 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003652/0.1195, allocations: 2.232 MB / 429.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.1207, allocations: 0.6238 MB / 429.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.1208, allocations: 3.938 kB / 429.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.1209, allocations: 27.61 kB / 429.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002737/0.1212, allocations: 83.41 kB / 430 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.1215, allocations: 71.84 kB / 430 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003392/0.1218, allocations: 275 kB / 430.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.122, allocations: 56.72 kB / 430.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.1222, allocations: 123.4 kB / 430.5 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.1224, allocations: 143.2 kB / 430.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.21e-05/0.1225, allocations: 27.94 kB / 430.6 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.844e-05/0.1225, allocations: 20 kB / 430.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.1226, allocations: 67.7 kB / 430.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.1227, allocations: 131.1 kB / 430.9 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003382/0.1231, allocations: 258.7 kB / 431.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.1231, allocations: 0 / 431.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1231, allocations: 0 / 431.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1231, allocations: 3.938 kB / 431.1 MB, free: 0.6641 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.2055/0.3286, allocations: 0.6162 MB / 431.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/0.3286, allocations: 10.22 kB / 431.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.3287, allocations: 46.98 kB / 431.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.3288, allocations: 36.23 kB / 431.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000446/0.3293, allocations: 322.9 kB / 432.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.3293, allocations: 10.94 kB / 432.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.3293, allocations: 17.97 kB / 432.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006533/0.33, allocations: 364.7 kB / 432.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.33, allocations: 4.594 kB / 432.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.33, allocations: 4.094 kB / 432.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.33, allocations: 3.438 kB / 432.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002059/0.3302, allocations: 94.25 kB / 432.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005895/0.3308, allocations: 0.529 MB / 433.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006637/0.3315, allocations: 308.6 kB / 433.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.3317, allocations: 132.1 kB / 433.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.3317, allocations: 3.219 kB / 433.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.767e-05/0.3318, allocations: 40.03 kB / 433.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.673e-06/0.3318, allocations: 0.8125 kB / 433.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002125/0.3339, allocations: 1.335 MB / 435 MB, free: 9.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.3339, allocations: 137.6 kB / 435.1 MB, free: 9.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003121/0.3343, allocations: 335.9 kB / 435.4 MB, free: 9.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.3343, allocations: 33.39 kB / 435.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.231e-05/0.3343, allocations: 144.7 kB / 435.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.278e-05/0.3344, allocations: 51.52 kB / 435.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.72e-05/0.3345, allocations: 66.55 kB / 435.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.606e-05/0.3345, allocations: 349.6 kB / 436.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.3347, allocations: 70.98 kB / 436.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/0.3349, allocations: 313.6 kB / 436.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.3353, allocations: 418 kB / 436.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3353, allocations: 2.031 kB / 436.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006501/0.3359, allocations: 412.2 kB / 437.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.336, allocations: 12.59 kB / 437.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.336, allocations: 11.09 kB / 437.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.758e-05/0.336, allocations: 10.56 kB / 437.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.3363, allocations: 96.95 kB / 437.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.933e-05/0.3363, allocations: 21.64 kB / 437.4 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.3365, allocations: 17.69 kB / 437.4 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/0.3365, allocations: 24.56 kB / 437.4 MB, free: 8.113 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 (filter.x[1],invMixingUnit.T,invMixingUnit.c,$DER.filter.x[1],$DER.invMixingUnit.c,$DER.invMixingUnit.T) * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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.0001588/0.3367, allocations: 170.5 kB / 437.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004893/0.3372, allocations: 301.5 kB / 437.9 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007843/0.338, allocations: 382.5 kB / 438.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.338, allocations: 9.219 kB / 438.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.338, allocations: 2.391 kB / 438.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.338, allocations: 5.25 kB / 438.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005494/0.3385, allocations: 316 kB / 438.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.3385, allocations: 1.734 kB / 438.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006668/0.3392, allocations: 125.5 kB / 438.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.3392, allocations: 7.672 kB / 438.7 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/0.3393, allocations: 9.188 kB / 438.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.3393, allocations: 2.438 kB / 438.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.3393, allocations: 1.188 kB / 438.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.3405, allocations: 0.7135 MB / 439.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.577e-05/0.3406, allocations: 120.4 kB / 439.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.146e-05/0.3407, allocations: 14.03 kB / 439.6 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.3409, allocations: 17.84 kB / 439.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.93e-05/0.341, allocations: 8.281 kB / 439.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-05/0.341, allocations: 16.94 kB / 439.6 MB, free: 6.812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003148/0.3413, allocations: 243.9 kB / 439.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3413, allocations: 0 / 439.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005317/0.3419, allocations: 62.28 kB / 439.9 MB, free: 6.668 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 6 ($DER.invMixingUnit.T,$DER.invMixingUnit.c,$DER.filter.x[1],invMixingUnit.c,invMixingUnit.T,filter.x[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * 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.001191/0.343, allocations: 1.285 MB / 441.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005893/0.3436, allocations: 288.9 kB / 441.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3436, allocations: 1.375 kB / 441.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.016e-05/0.3437, allocations: 30.7 kB / 441.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007637/0.3445, allocations: 197 kB / 441.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004459/0.3489, allocations: 3.821 MB / 445.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.3492, allocations: 0.8066 MB / 446.3 MB, free: 2.047 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001051/0.3493, allocations: 34.72 kB / 446.4 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.3495, allocations: 115.8 kB / 446.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3495, allocations: 0 / 446.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03054/0.38, allocations: 7.187 MB / 453.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.288/9.668, allocations: 5.078 kB / 453.7 MB, free: 0.7422 MB / 350.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0545355 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.22511985572055] Failed to read output from testmodel.py, exit status != 0: ['time', 'filter.x[1]', 'filter.x[2]', 'filter.x[3]', 'invMixingUnit.c', 'invMixingUnit.T', 'mixingUnit.c', 'mixingUnit.T'] 9.742219254374504 9.766257218 9.638396378 Calling exit ...