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.001621/0.001621, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002077/0.002077, allocations: 212 kB / 24.54 MB, free: 4.016 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.474/1.474, allocations: 230.6 MB / 258.3 MB, free: 8.062 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.002205/0.002205, allocations: 68.78 kB / 378.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2583, allocations: 53.37 MB / 431.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003553/0.2619, allocations: 2.246 MB / 434.2 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.263, allocations: 0.6277 MB / 434.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.2632, allocations: 0 / 434.8 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001326/0.2633, allocations: 35.59 kB / 434.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002644/0.2636, allocations: 75.42 kB / 434.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002642/0.2638, allocations: 75.84 kB / 435 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003248/0.2642, allocations: 279 kB / 435.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.2643, allocations: 48.92 kB / 435.3 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.2645, allocations: 127.4 kB / 435.4 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.2647, allocations: 147.2 kB / 435.6 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.865e-05/0.2648, allocations: 20 kB / 435.6 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.677e-05/0.2648, allocations: 24 kB / 435.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.241e-05/0.2649, allocations: 71.62 kB / 435.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.265, allocations: 127.1 kB / 435.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.2653, allocations: 263.4 kB / 436.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.2653, allocations: 0 / 436.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2653, allocations: 0 / 436.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.2654, allocations: 0 / 436.1 MB, free: 2.855 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001135/0.2665, allocations: 0.5476 MB / 436.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.2665, allocations: 12.03 kB / 436.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.849e-05/0.2666, allocations: 46.73 kB / 436.7 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.528e-05/0.2667, allocations: 36.7 kB / 436.7 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004245/0.2671, allocations: 262.7 kB / 437 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.2671, allocations: 12.22 kB / 437 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.2672, allocations: 12 kB / 437 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006995/0.2679, allocations: 385.8 kB / 437.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.2679, allocations: 0 / 437.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.2679, allocations: 8 kB / 437.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.2679, allocations: 4 kB / 437.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002269/0.2681, allocations: 87.89 kB / 437.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007655/0.2689, allocations: 0.5006 MB / 438 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007184/0.2696, allocations: 311.1 kB / 438.3 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.2698, allocations: 132.2 kB / 438.4 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.2699, allocations: 4 kB / 438.4 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.2699, allocations: 46.38 kB / 438.4 MB, free: 312 kB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.292e-06/0.2699, allocations: 0 / 438.4 MB, free: 312 kB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002402/0.2723, allocations: 1.197 MB / 439.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.2724, allocations: 135.4 kB / 439.8 MB, free: 14.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003797/0.2728, allocations: 328.6 kB / 440.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.967e-05/0.2728, allocations: 29.7 kB / 440.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.273, allocations: 145.1 kB / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.268e-05/0.273, allocations: 55.67 kB / 440.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.799e-05/0.2731, allocations: 62.14 kB / 440.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.2733, allocations: 350.8 kB / 440.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.2734, allocations: 72.83 kB / 440.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003426/0.2738, allocations: 314.8 kB / 441.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005338/0.2743, allocations: 428.8 kB / 441.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2743, allocations: 0 / 441.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006293/0.2749, allocations: 409.6 kB / 441.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.275, allocations: 8 kB / 441.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.275, allocations: 16.12 kB / 441.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.275, allocations: 8 kB / 441.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/0.2753, allocations: 95.84 kB / 442 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.06e-05/0.2753, allocations: 19.92 kB / 442.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.2755, allocations: 23.89 kB / 442.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.2755, allocations: 24 kB / 442.1 MB, free: 12.28 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.0001847/0.2757, allocations: 169.6 kB / 442.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005258/0.2763, allocations: 300.6 kB / 442.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006585/0.2769, allocations: 383.5 kB / 442.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.2769, allocations: 4 kB / 442.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.2769, allocations: 7.984 kB / 442.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2769, allocations: 0 / 442.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003946/0.2773, allocations: 288.4 kB / 443.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.2773, allocations: 0 / 443.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005757/0.2779, allocations: 127.8 kB / 443.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.2779, allocations: 0 / 443.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.2779, allocations: 19.92 kB / 443.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.2779, allocations: 4 kB / 443.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2779, allocations: 0 / 443.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.279, allocations: 0.7226 MB / 444.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-05/0.279, allocations: 43.88 kB / 444.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.313e-05/0.2791, allocations: 12.06 kB / 444.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002413/0.2793, allocations: 19.98 kB / 444.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.2794, allocations: 7.969 kB / 444.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.2794, allocations: 12 kB / 444.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002875/0.2797, allocations: 243.1 kB / 444.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2797, allocations: 3.938 kB / 444.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004306/0.2801, allocations: 64 kB / 444.5 MB, free: 9.797 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.001363/0.2815, allocations: 1.272 MB / 445.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005412/0.282, allocations: 286.6 kB / 446 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.282, allocations: 0 / 446 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.237e-05/0.2821, allocations: 31.92 kB / 446.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007405/0.2828, allocations: 196.7 kB / 446.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004872/0.2877, allocations: 3.815 MB / 450.1 MB, free: 3.855 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00046/0.2882, allocations: 0.8074 MB / 450.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.2883, allocations: 43.2 kB / 450.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002088/0.2885, allocations: 115.4 kB / 451 MB, free: 2.867 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2885, allocations: 0 / 451 MB, free: 2.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0336/0.3221, allocations: 7.489 MB / 458.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.329/8.652, allocations: 2.656 kB / 458.5 MB, free: 11.48 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.112700901925564] 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'] 8.726685707923025 8.748887446 8.479214605 Calling exit ...