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.005539/0.005539, allocations: 101 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00249/0.00249, allocations: 289.5 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.223/1.223, allocations: 178.6 MB / 0.5074 GB, free: 12.68 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002698/0.002698, allocations: 107.8 kB / 0.6943 GB, free: 15.19 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4478/0.4505, allocations: 89.11 MB / 0.7813 GB, free: 1.16 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Examples.Tutorial.SimpleHouse.SimpleHouse2): time 0.006546/0.4571, allocations: 5.216 MB / 0.7864 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.1856/0.6427, allocations: 150.7 MB / 0.9336 GB, free: 12.3 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001114/0.6439, allocations: 19.88 kB / 0.9336 GB, free: 12.28 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.0007491/0.6447, allocations: 202.1 kB / 0.9338 GB, free: 12.08 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.002319/0.647, allocations: 0.5696 MB / 0.9343 GB, free: 11.51 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.00227/0.6493, allocations: 0.8374 MB / 0.9351 GB, free: 10.68 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.002096/0.6514, allocations: 1.459 MB / 0.9366 GB, free: 9.211 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/0.6527, allocations: 0.6035 MB / 0.9372 GB, free: 8.582 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.6537, allocations: 0.5021 MB / 0.9376 GB, free: 8.078 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009873/0.6547, allocations: 0.5212 MB / 0.9382 GB, free: 7.555 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0003581/0.6551, allocations: 120 kB / 0.9383 GB, free: 7.438 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001337/0.6564, allocations: 495.5 kB / 0.9387 GB, free: 6.953 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0004434/0.6569, allocations: 303 kB / 0.939 GB, free: 6.656 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0009017/0.6578, allocations: 0.5869 MB / 0.9396 GB, free: 6.066 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.002986/0.6608, allocations: 1.703 MB / 0.9413 GB, free: 4.359 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.6608, allocations: 0 / 0.9413 GB, free: 4.359 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.863e-06/0.6608, allocations: 0 / 0.9413 GB, free: 4.359 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 2.069e-05/0.6609, allocations: 0 / 0.9413 GB, free: 4.359 MB / 0.7012 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.002815/0.6637, allocations: 1.54 MB / 0.9428 GB, free: 2.766 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.6637, allocations: 8.031 kB / 0.9428 GB, free: 2.758 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001678/0.6639, allocations: 139.7 kB / 0.9429 GB, free: 2.613 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009579/0.6649, allocations: 204 kB / 0.9431 GB, free: 2.414 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.6661, allocations: 0.794 MB / 0.9439 GB, free: 1.578 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.79e-05/0.6662, allocations: 66 kB / 0.9439 GB, free: 1.516 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.6663, allocations: 88 kB / 0.944 GB, free: 1.43 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.668, allocations: 0.9457 MB / 0.9449 GB, free: 452 kB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/0.6681, allocations: 4 kB / 0.945 GB, free: 448 kB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.832e-05/0.6682, allocations: 43.92 kB / 0.945 GB, free: 404 kB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/0.6682, allocations: 20 kB / 0.945 GB, free: 384 kB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001891/0.6701, allocations: 1.143 MB / 0.9461 GB, free: 15.23 MB / 0.7169 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.004563/0.6747, allocations: 2.788 MB / 0.9489 GB, free: 12.32 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.6764, allocations: 0.8476 MB / 0.9497 GB, free: 11.46 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006248/0.677, allocations: 326.7 kB / 0.95 GB, free: 11.14 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.621e-05/0.6771, allocations: 26.69 kB / 0.95 GB, free: 11.12 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009887/0.6781, allocations: 0.5158 MB / 0.9505 GB, free: 10.58 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=85): time 2.445e-06/0.6782, allocations: 0 / 0.9505 GB, free: 10.58 MB / 0.7169 GB Notification: Performance of matching and sorting (n=85): time 0.003526/0.6817, allocations: 1.251 MB / 0.9517 GB, free: 9.301 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/0.6818, allocations: 188.9 kB / 0.9519 GB, free: 9.074 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009842/0.6828, allocations: 0.649 MB / 0.9526 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.212e-05/0.6829, allocations: 45.7 kB / 0.9526 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004172/0.6834, allocations: 425 kB / 0.953 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002708/0.6836, allocations: 289.6 kB / 0.9533 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002636/0.6839, allocations: 154.6 kB / 0.9534 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0002018/0.6841, allocations: 382.8 kB / 0.9538 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005505/0.6847, allocations: 261.9 kB / 0.954 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006874/0.6854, allocations: 370.5 kB / 0.9544 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.6866, allocations: 0.6047 MB / 0.955 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.6866, allocations: 4 kB / 0.955 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002153/0.6887, allocations: 0.8413 MB / 0.9558 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.6888, allocations: 8 kB / 0.9558 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.6888, allocations: 0 / 0.9558 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006211/0.6894, allocations: 84.86 kB / 0.9559 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000683/0.6901, allocations: 155.8 kB / 0.956 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002389/0.6925, allocations: 1.638 MB / 0.9576 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007862/0.6933, allocations: 99.3 kB / 0.9577 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.68e-05/0.6934, allocations: 31.98 kB / 0.9578 GB, free: 2.848 MB / 0.7169 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.0005025/0.6939, allocations: 273.7 kB / 0.958 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.6941, allocations: 87.44 kB / 0.9581 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002515/0.6966, allocations: 1.101 MB / 0.9592 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.6966, allocations: 11.98 kB / 0.9592 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.6966, allocations: 4 kB / 0.9592 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.6967, allocations: 3.984 kB / 0.9592 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.6978, allocations: 0.9271 MB / 0.9601 GB, free: 384 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.6979, allocations: 3.938 kB / 0.9601 GB, free: 380 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006396/0.6985, allocations: 159.8 kB / 0.9603 GB, free: 220 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004543/0.699, allocations: 76.73 kB / 0.9603 GB, free: 140 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.558e-05/0.6991, allocations: 27.97 kB / 0.9604 GB, free: 112 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002037/0.7011, allocations: 1.65 MB / 0.962 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.7011, allocations: 0 / 0.962 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002885/0.704, allocations: 1.375 MB / 0.9633 GB, free: 12.92 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004598/0.7045, allocations: 284.1 kB / 0.9636 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001453/0.7046, allocations: 24.05 kB / 0.9636 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006626/0.7053, allocations: 63.94 kB / 0.9637 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.7055, allocations: 73.03 kB / 0.9638 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.742e-05/0.7056, allocations: 35.98 kB / 0.9638 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006973/0.7063, allocations: 471 kB / 0.9642 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.51e-07/0.7063, allocations: 0 / 0.9642 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0009473/0.7073, allocations: 339.2 kB / 0.9646 GB, free: 11.64 MB / 0.7325 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.005191/0.7125, allocations: 2.419 MB / 0.9669 GB, free: 9.367 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001914/0.7144, allocations: 0.8273 MB / 0.9677 GB, free: 8.527 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.7144, allocations: 0 / 0.9677 GB, free: 8.527 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.7155, allocations: 0.5394 MB / 0.9683 GB, free: 7.98 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.717, allocations: 310 kB / 0.9686 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/0.7292, allocations: 6.546 MB / 0.9749 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009028/0.7301, allocations: 1.039 MB / 0.976 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001003/0.7311, allocations: 262.9 kB / 0.9762 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006973/0.7319, allocations: 407.2 kB / 0.9766 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of SimCode: time 8.41e-07/0.7319, allocations: 0 / 0.9766 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4807/1.213, allocations: 22.28 MB / 0.9984 GB, free: 198.7 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/14.31, allocations: 14.55 kB / 0.9984 GB, free: 198.7 MB / 0.7481 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)