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.001677/0.001677, allocations: 122.7 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.002111/0.002111, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.58/1.58, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.002123/0.002123, allocations: 63.89 kB / 373.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1169, allocations: 53.32 MB / 426.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004202/0.1211, allocations: 2.232 MB / 429.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.1225, allocations: 0.6199 MB / 429.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002329/0.1228, allocations: 3.938 kB / 429.7 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.1229, allocations: 27.61 kB / 429.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003519/0.1233, allocations: 79.41 kB / 429.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.1236, allocations: 74.72 kB / 429.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004/0.124, allocations: 275 kB / 430.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.1242, allocations: 60.72 kB / 430.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000275/0.1245, allocations: 123.4 kB / 430.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.1247, allocations: 143.2 kB / 430.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.681e-05/0.1247, allocations: 24 kB / 430.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.79e-05/0.1248, allocations: 24 kB / 430.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.223e-05/0.1249, allocations: 67.62 kB / 430.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.125, allocations: 127.1 kB / 430.7 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003325/0.1253, allocations: 258.7 kB / 431 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1253, allocations: 0 / 431 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1253, allocations: 0 / 431 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.1253, allocations: 3.938 kB / 431 MB, free: 0.7227 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.001184/0.1265, allocations: 0.6229 MB / 431.6 MB, free: 52 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1266, allocations: 8.031 kB / 431.6 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.2633/0.3898, allocations: 47.94 kB / 431.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.39, allocations: 33.55 kB / 431.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006254/0.3906, allocations: 318.6 kB / 432 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.3906, allocations: 9.656 kB / 432 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.269e-05/0.3907, allocations: 19.53 kB / 432 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008888/0.3916, allocations: 362.3 kB / 432.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.3916, allocations: 4.562 kB / 432.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.3916, allocations: 8.766 kB / 432.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.3916, allocations: 3.031 kB / 432.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000252/0.3919, allocations: 92.67 kB / 432.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008766/0.3927, allocations: 0.5268 MB / 433 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000771/0.3935, allocations: 307.2 kB / 433.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002281/0.3937, allocations: 129.2 kB / 433.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.412e-05/0.3938, allocations: 12.41 kB / 433.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.3938, allocations: 35.72 kB / 433.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.003e-06/0.3938, allocations: 1.125 kB / 433.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002393/0.3962, allocations: 1.342 MB / 434.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.3963, allocations: 136.8 kB / 435 MB, free: 9.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.3967, allocations: 328.7 kB / 435.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.3967, allocations: 33.58 kB / 435.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.963e-05/0.3968, allocations: 148.8 kB / 435.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.462e-05/0.3969, allocations: 50.53 kB / 435.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.336e-05/0.397, allocations: 70.81 kB / 435.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3971, allocations: 350 kB / 435.9 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.3972, allocations: 72.3 kB / 436 MB, free: 9.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002962/0.3975, allocations: 312.4 kB / 436.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004205/0.398, allocations: 417.1 kB / 436.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-06/0.398, allocations: 6.281 kB / 436.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006367/0.3986, allocations: 409.2 kB / 437.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.3986, allocations: 17.19 kB / 437.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.3987, allocations: 8.031 kB / 437.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.127e-05/0.3987, allocations: 13.77 kB / 437.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.399, allocations: 93.91 kB / 437.3 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.478e-05/0.399, allocations: 20.72 kB / 437.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.3992, allocations: 19.41 kB / 437.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.3993, allocations: 26.53 kB / 437.3 MB, free: 8.238 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.0001557/0.3994, allocations: 170.3 kB / 437.5 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004857/0.3999, allocations: 299.3 kB / 437.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006904/0.4006, allocations: 374.9 kB / 438.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.4006, allocations: 5.797 kB / 438.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.4006, allocations: 1.031 kB / 438.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.4006, allocations: 3.109 kB / 438.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004194/0.401, allocations: 321.8 kB / 438.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.401, allocations: 2.906 kB / 438.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006058/0.4017, allocations: 132.8 kB / 438.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.708e-06/0.4017, allocations: 8.125 kB / 438.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.161e-05/0.4017, allocations: 12.19 kB / 438.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.4017, allocations: 2.531 kB / 438.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.4017, allocations: 1.219 kB / 438.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.4029, allocations: 0.7058 MB / 439.3 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.403, allocations: 116.2 kB / 439.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.362e-05/0.4031, allocations: 17.31 kB / 439.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.4033, allocations: 17.98 kB / 439.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.557e-05/0.4034, allocations: 5.891 kB / 439.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.651e-05/0.4034, allocations: 13.19 kB / 439.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003091/0.4037, allocations: 243.7 kB / 439.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4037, allocations: 0 / 439.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004824/0.4042, allocations: 62.25 kB / 439.8 MB, free: 6.801 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.001374/0.4055, allocations: 1.281 MB / 441.1 MB, free: 5.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006815/0.4062, allocations: 288.5 kB / 441.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4062, allocations: 1.062 kB / 441.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.778e-05/0.4063, allocations: 27.61 kB / 441.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000935/0.4072, allocations: 200.1 kB / 441.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005258/0.4125, allocations: 3.822 MB / 445.4 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/0.4129, allocations: 0.8065 MB / 446.2 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001494/0.413, allocations: 36.81 kB / 446.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.4133, allocations: 115.2 kB / 446.4 MB, free: 2.094 MB / 350.1 MB Notification: Performance of SimCode: time 2.033e-06/0.4133, allocations: 0 / 446.4 MB, free: 2.094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06416/0.4774, allocations: 7.192 MB / 453.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.146/9.624, allocations: 1.781 kB / 453.6 MB, free: 0.875 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --stepSize=0.0545355 --timeout=50 --tolerance=1e-06 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.24169385805726] 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.701494216918945 9.720196951 9.590954246 Calling exit ...