Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2,fileNamePrefix="BuildingSystems_BuildingSystems_Examples_Tutorial_SimpleHouse_SimpleHouse2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2,fileNamePrefix="BuildingSystems_BuildingSystems_Examples_Tutorial_SimpleHouse_SimpleHouse2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 191.3 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002359/0.002359, allocations: 275.1 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.027/1.027, allocations: 178.6 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002588/0.002588, allocations: 95.09 kB / 0.6065 GB, free: 24.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1709, allocations: 89.15 MB / 0.6936 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2): time 0.007328/0.1783, allocations: 5.205 MB / 0.6987 GB, free: 15 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4534/0.6317, allocations: 150.7 MB / 0.8458 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009421/0.6327, allocations: 19.56 kB / 0.8458 GB, free: 6.961 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006143/0.6334, allocations: 201.3 kB / 0.846 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001752/0.6351, allocations: 0.5644 MB / 0.8466 GB, free: 6.375 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001995/0.6371, allocations: 0.8485 MB / 0.8474 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001863/0.639, allocations: 1.433 MB / 0.8488 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009162/0.6399, allocations: 0.6045 MB / 0.8494 GB, free: 4.508 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007434/0.6407, allocations: 0.493 MB / 0.8499 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006176/0.6413, allocations: 0.5321 MB / 0.8504 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.6415, allocations: 123.5 kB / 0.8505 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008173/0.6423, allocations: 464.3 kB / 0.8509 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002757/0.6426, allocations: 306.8 kB / 0.8512 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005489/0.6431, allocations: 0.5883 MB / 0.8518 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001775/0.6449, allocations: 1.65 MB / 0.8534 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.6449, allocations: 0 / 0.8534 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of FrontEnd: time 4.308e-06/0.6449, allocations: 0 / 0.8534 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.697e-05/0.645, allocations: 7.938 kB / 0.8534 GB, free: 1.82 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002695/0.6477, allocations: 1.49 MB / 0.8549 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.6477, allocations: 10.19 kB / 0.8549 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.6479, allocations: 137.4 kB / 0.855 GB, free: 0.5469 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008896/0.6488, allocations: 196.3 kB / 0.8552 GB, free: 464 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.6498, allocations: 0.7646 MB / 0.856 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.775e-05/0.6499, allocations: 67.56 kB / 0.856 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.65, allocations: 83.69 kB / 0.8561 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.6515, allocations: 0.9619 MB / 0.857 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.6515, allocations: 7.922 kB / 0.857 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.284e-05/0.6516, allocations: 38.19 kB / 0.8571 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.6516, allocations: 20.44 kB / 0.8571 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.6533, allocations: 1.139 MB / 0.8582 GB, free: 14.57 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004083/0.6574, allocations: 2.821 MB / 0.861 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.6589, allocations: 0.8458 MB / 0.8618 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000532/0.6595, allocations: 319 kB / 0.8621 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 7.228e-05/0.6596, allocations: 36.42 kB / 0.8621 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008953/0.6605, allocations: 0.5029 MB / 0.8626 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=85): time 2.405e-06/0.6605, allocations: 0 / 0.8626 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of matching and sorting (n=85): time 0.003136/0.6636, allocations: 1.25 MB / 0.8638 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.6637, allocations: 190.6 kB / 0.864 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000795/0.6645, allocations: 0.649 MB / 0.8647 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.333e-05/0.6646, allocations: 46.42 kB / 0.8647 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.665, allocations: 414.3 kB / 0.8651 GB, free: 9.715 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002483/0.6652, allocations: 283.2 kB / 0.8654 GB, free: 9.469 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002219/0.6655, allocations: 153.7 kB / 0.8655 GB, free: 9.375 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001882/0.6657, allocations: 386.2 kB / 0.8659 GB, free: 9.008 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004872/0.6662, allocations: 258 kB / 0.8661 GB, free: 8.879 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006018/0.6668, allocations: 373 kB / 0.8665 GB, free: 8.641 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.6679, allocations: 0.6095 MB / 0.8671 GB, free: 8.309 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.6679, allocations: 2.188 kB / 0.8671 GB, free: 8.309 MB / 0.5919 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001857/0.6697, allocations: 0.833 MB / 0.8679 GB, free: 7.887 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.6698, allocations: 5.281 kB / 0.8679 GB, free: 7.887 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.6698, allocations: 0 / 0.8679 GB, free: 7.887 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005813/0.6704, allocations: 86.33 kB / 0.868 GB, free: 7.844 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006202/0.671, allocations: 160.2 kB / 0.8681 GB, free: 7.805 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.6733, allocations: 1.629 MB / 0.8697 GB, free: 6.203 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008183/0.6742, allocations: 102.8 kB / 0.8698 GB, free: 6.133 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.897e-05/0.6742, allocations: 31.7 kB / 0.8699 GB, free: 6.121 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005221/0.6748, allocations: 265.3 kB / 0.8701 GB, free: 5.914 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.675, allocations: 85.41 kB / 0.8702 GB, free: 5.871 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002448/0.6774, allocations: 1.1 MB / 0.8713 GB, free: 4.93 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.6774, allocations: 12 kB / 0.8713 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.6775, allocations: 0 / 0.8713 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.6775, allocations: 3.984 kB / 0.8713 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.6787, allocations: 0.9384 MB / 0.8722 GB, free: 3.926 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.6787, allocations: 0 / 0.8722 GB, free: 3.926 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006483/0.6793, allocations: 167.7 kB / 0.8724 GB, free: 3.762 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004439/0.6798, allocations: 76.72 kB / 0.8724 GB, free: 3.684 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.626e-05/0.6799, allocations: 23.98 kB / 0.8725 GB, free: 3.66 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00202/0.6819, allocations: 1.646 MB / 0.8741 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.6819, allocations: 0 / 0.8741 GB, free: 1.863 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002849/0.6848, allocations: 1.367 MB / 0.8754 GB, free: 492 kB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004796/0.6853, allocations: 279.7 kB / 0.8757 GB, free: 192 kB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.6854, allocations: 23.94 kB / 0.8757 GB, free: 168 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006434/0.6861, allocations: 64.14 kB / 0.8757 GB, free: 104 kB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.6862, allocations: 79.22 kB / 0.8758 GB, free: 24 kB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-05/0.6863, allocations: 40.09 kB / 0.8759 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000673/0.687, allocations: 475 kB / 0.8763 GB, free: 15.53 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.81e-07/0.687, allocations: 0 / 0.8763 GB, free: 15.53 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009451/0.688, allocations: 335.1 kB / 0.8766 GB, free: 15.2 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (walCap.T) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004933/0.6929, allocations: 2.425 MB / 0.879 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002573/0.6955, allocations: 1.035 MB / 0.88 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.6955, allocations: 0 / 0.88 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.6966, allocations: 0.5276 MB / 0.8805 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.698, allocations: 311 kB / 0.8808 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/0.7106, allocations: 6.761 MB / 0.8874 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009239/0.7116, allocations: 1.035 MB / 0.8884 GB, free: 3.066 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001073/0.7127, allocations: 263 kB / 0.8887 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000751/0.7135, allocations: 407.3 kB / 0.8891 GB, free: 2.406 MB / 0.6075 GB Notification: Performance of SimCode: time 9.91e-07/0.7135, allocations: 3.938 kB / 0.8891 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06279/0.7763, allocations: 22.06 MB / 0.9106 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.44, allocations: 6.25 kB / 0.9106 GB, free: 12.69 MB / 0.6387 GB (rm -f BuildingSystems_BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2.pipe ; mkfifo BuildingSystems_BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2.pipe >> ../files/BuildingSystems_BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2_res.csv --start-time 0 --stop-time 1e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 400 BuildingSystems_BuildingSystems_Examples_Tutorial_SimpleHouse_SimpleHouse2.fmu > BuildingSystems_BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2.pipe 2>&1)