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.001437/0.001437, 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.001601/0.001601, allocations: 213.2 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.585/1.585, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.002034/0.002034, allocations: 64.78 kB / 378.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2952, allocations: 53.37 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004278/0.2995, allocations: 2.256 MB / 434.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.3009, allocations: 0.6199 MB / 434.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.3011, allocations: 7.938 kB / 434.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.3012, allocations: 23.67 kB / 434.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003157/0.3015, allocations: 83.36 kB / 434.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000344/0.3019, allocations: 78.45 kB / 435 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003826/0.3023, allocations: 275 kB / 435.2 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.3024, allocations: 60.84 kB / 435.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002655/0.3027, allocations: 119.4 kB / 435.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.3029, allocations: 151.2 kB / 435.6 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.735e-05/0.303, allocations: 24 kB / 435.6 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.049e-05/0.303, allocations: 20 kB / 435.6 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.3031, allocations: 67.69 kB / 435.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.3033, allocations: 131.1 kB / 435.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003737/0.3036, allocations: 259.5 kB / 436.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3036, allocations: 0 / 436.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3036, allocations: 0 / 436.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3036, allocations: 0 / 436.1 MB, free: 2.715 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.001236/0.3049, allocations: 0.5476 MB / 436.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.3049, allocations: 8.031 kB / 436.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.529e-05/0.305, allocations: 46.73 kB / 436.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.584e-05/0.3051, allocations: 36.7 kB / 436.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004202/0.3055, allocations: 266.7 kB / 437 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.3055, allocations: 12.22 kB / 437 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.736e-05/0.3055, allocations: 16 kB / 437 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006983/0.3062, allocations: 385.8 kB / 437.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.3063, allocations: 0 / 437.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.3063, allocations: 7.984 kB / 437.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3063, allocations: 4 kB / 437.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002225/0.3065, allocations: 83.95 kB / 437.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008048/0.3073, allocations: 0.4967 MB / 437.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007461/0.3081, allocations: 310.8 kB / 438.3 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.3083, allocations: 126.6 kB / 438.4 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.865e-05/0.3083, allocations: 7.984 kB / 438.4 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.3084, allocations: 46.78 kB / 438.4 MB, free: 172 kB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.743e-06/0.3084, allocations: 0 / 438.4 MB, free: 172 kB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002572/0.3109, allocations: 1.198 MB / 439.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.3111, allocations: 135.3 kB / 439.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004375/0.3115, allocations: 328.6 kB / 440.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.3116, allocations: 29.7 kB / 440.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.3117, allocations: 145.1 kB / 440.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.319e-05/0.3117, allocations: 55.58 kB / 440.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.511e-05/0.3118, allocations: 70.12 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.312, allocations: 350.8 kB / 440.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.3122, allocations: 64.84 kB / 440.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/0.3126, allocations: 318.7 kB / 441.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005447/0.3131, allocations: 420.9 kB / 441.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.3131, allocations: 7.938 kB / 441.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007177/0.3138, allocations: 405.8 kB / 441.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.3139, allocations: 8 kB / 441.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.3139, allocations: 12.12 kB / 441.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.942e-05/0.3139, allocations: 15.98 kB / 441.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.3142, allocations: 95.83 kB / 442 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.78e-05/0.3142, allocations: 15.94 kB / 442.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.3145, allocations: 23.89 kB / 442.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.3145, allocations: 27.98 kB / 442.1 MB, free: 12.14 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.000225/0.3147, allocations: 173.5 kB / 442.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005349/0.3152, allocations: 300.6 kB / 442.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007712/0.316, allocations: 387.4 kB / 442.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.316, allocations: 4 kB / 442.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.316, allocations: 0 / 442.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.316, allocations: 0 / 442.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004586/0.3165, allocations: 300.4 kB / 443.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3165, allocations: 0 / 443.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006115/0.3171, allocations: 123.8 kB / 443.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.3171, allocations: 4 kB / 443.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.3171, allocations: 12 kB / 443.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.3171, allocations: 3.938 kB / 443.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.3172, allocations: 7.938 kB / 443.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.3183, allocations: 0.7148 MB / 444.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.699e-05/0.3183, allocations: 47.72 kB / 444.2 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.789e-05/0.3184, allocations: 16.05 kB / 444.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.3187, allocations: 12 kB / 444.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.502e-05/0.3187, allocations: 7.984 kB / 444.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.507e-05/0.3187, allocations: 12 kB / 444.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002963/0.319, allocations: 243.1 kB / 444.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.319, allocations: 0 / 444.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004843/0.3195, allocations: 64 kB / 444.5 MB, free: 9.656 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.001447/0.3209, allocations: 1.272 MB / 445.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006767/0.3216, allocations: 280.7 kB / 446 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3216, allocations: 1.938 kB / 446 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.3217, allocations: 31.92 kB / 446.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009638/0.3227, allocations: 196.7 kB / 446.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005892/0.3286, allocations: 3.826 MB / 450.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005323/0.3291, allocations: 0.8035 MB / 450.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.3293, allocations: 39.27 kB / 450.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002388/0.3295, allocations: 115.4 kB / 451 MB, free: 2.727 MB / 350.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3295, allocations: 0 / 451 MB, free: 2.727 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03964/0.3691, allocations: 7.488 MB / 458.5 MB, free: 11.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.538/9.907, allocations: 7.922 kB / 458.5 MB, free: 11.33 MB / 366.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.462220625020564] 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.985992544796318 10.019289633 9.71015898 Calling exit ...