Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.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.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_myPhiMoist",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist,fileNamePrefix="BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_myPhiMoist",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.004722/0.004722, allocations: 98.67 kB / 15.73 MB, free: 5.988 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.001095/0.001095, allocations: 199.3 kB / 16.68 MB, free: 5.918 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.255/1.255, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002224/0.002224, allocations: 291.1 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9123/0.9123, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 95.84 kB / 0.6809 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1541, allocations: 86.97 MB / 0.7659 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist): time 0.002677/0.1569, allocations: 1.708 MB / 0.7675 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007086/0.1576, allocations: 474.6 kB / 0.768 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.755e-05/0.1577, allocations: 0 / 0.768 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0003748/0.158, allocations: 155.6 kB / 0.7681 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 8.767e-05/0.1581, allocations: 59.73 kB / 0.7682 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002482/0.1584, allocations: 59.8 kB / 0.7683 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000148/0.1586, allocations: 99.5 kB / 0.7684 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.565e-05/0.1586, allocations: 4 kB / 0.7684 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.911e-05/0.1587, allocations: 39.78 kB / 0.7684 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.319e-05/0.1588, allocations: 47.83 kB / 0.7684 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.217e-05/0.1588, allocations: 0 / 0.7684 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001767/0.159, allocations: 91.83 kB / 0.7685 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.08e-05/0.1591, allocations: 55.81 kB / 0.7686 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.974e-05/0.1592, allocations: 63.55 kB / 0.7686 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.1594, allocations: 183.3 kB / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1594, allocations: 0 / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.492e-06/0.1594, allocations: 0 / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.395e-06/0.1594, allocations: 0 / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005387/0.16, allocations: 486.1 kB / 0.7693 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.16, allocations: 8.031 kB / 0.7693 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.721e-05/0.16, allocations: 30.75 kB / 0.7693 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.212e-05/0.1601, allocations: 20.69 kB / 0.7693 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.1602, allocations: 223.7 kB / 0.7695 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.1602, allocations: 4.375 kB / 0.7696 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.355e-06/0.1603, allocations: 384 / 0.7696 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001701/0.1604, allocations: 53.98 kB / 0.7696 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.1604, allocations: 3.938 kB / 0.7696 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.1605, allocations: 11.98 kB / 0.7696 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1605, allocations: 0 / 0.7696 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001664/0.1606, allocations: 39.97 kB / 0.7697 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004085/0.1611, allocations: 316.8 kB / 0.77 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.1612, allocations: 42.55 kB / 0.77 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.543e-05/0.1613, allocations: 24.91 kB / 0.77 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.099e-05/0.1613, allocations: 8 kB / 0.77 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.1614, allocations: 34.5 kB / 0.7701 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.1614, allocations: 4 kB / 0.7701 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003584/0.1617, allocations: 109.3 kB / 0.7702 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.1618, allocations: 51.41 kB / 0.7702 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/0.162, allocations: 258.8 kB / 0.7705 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.162, allocations: 29.7 kB / 0.7705 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.417e-05/0.1621, allocations: 132.1 kB / 0.7706 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.1621, allocations: 3.906 kB / 0.7706 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.1622, allocations: 13.72 kB / 0.7706 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1623, allocations: 330.8 kB / 0.771 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.376e-05/0.1624, allocations: 19.98 kB / 0.771 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.708e-05/0.1625, allocations: 31.91 kB / 0.771 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.1626, allocations: 44.77 kB / 0.771 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1626, allocations: 0 / 0.771 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001985/0.1628, allocations: 85.47 kB / 0.7711 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.1629, allocations: 8 kB / 0.7711 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1629, allocations: 0 / 0.7711 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.1629, allocations: 4.094 kB / 0.7711 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.554e-05/0.163, allocations: 7.984 kB / 0.7711 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.163, allocations: 7.938 kB / 0.7712 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.021e-05/0.1631, allocations: 3.984 kB / 0.7712 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.1631, allocations: 8 kB / 0.7712 GB, free: 3.305 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001011/0.1632, allocations: 138.3 kB / 0.7713 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.344e-05/0.1632, allocations: 23.7 kB / 0.7713 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002455/0.1635, allocations: 102.5 kB / 0.7714 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1635, allocations: 4 kB / 0.7714 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1635, allocations: 4 kB / 0.7714 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1635, allocations: 0 / 0.7714 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.1637, allocations: 209.6 kB / 0.7716 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1637, allocations: 0 / 0.7716 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.535e-05/0.1638, allocations: 7.984 kB / 0.7716 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.1638, allocations: 4 kB / 0.7716 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-06/0.1638, allocations: 0 / 0.7716 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.1638, allocations: 8.016 kB / 0.7716 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1638, allocations: 0 / 0.7716 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/0.164, allocations: 187.2 kB / 0.7718 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.043e-05/0.1641, allocations: 96.81 kB / 0.7719 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.1641, allocations: 0 / 0.7719 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.667e-05/0.1642, allocations: 4.031 kB / 0.7719 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.011e-05/0.1643, allocations: 11.98 kB / 0.7719 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.1643, allocations: 0 / 0.7719 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001554/0.1645, allocations: 186 kB / 0.7721 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1645, allocations: 0 / 0.7721 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002496/0.1647, allocations: 36 kB / 0.7721 GB, free: 2.199 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005751/0.1653, allocations: 0.7512 MB / 0.7729 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002123/0.1655, allocations: 43.95 kB / 0.7729 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.1655, allocations: 0 / 0.7729 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.615e-05/0.1656, allocations: 19.98 kB / 0.7729 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.166, allocations: 47.11 kB / 0.773 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006353/0.1667, allocations: 388 kB / 0.7734 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.167, allocations: 0.743 MB / 0.7741 GB, free: 128 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.567e-05/0.167, allocations: 11.69 kB / 0.7741 GB, free: 116 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.63e-05/0.1671, allocations: 47.42 kB / 0.7741 GB, free: 68 kB / 0.5606 GB Notification: Performance of SimCode: time 4.31e-07/0.1671, allocations: 0 / 0.7741 GB, free: 68 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3109/0.478, allocations: 3.909 MB / 0.778 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.105/7.583, allocations: 11.25 kB / 0.778 GB, free: 14.2 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_myPhiMoist_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_HAM_HeatAndMoistureTransport_Functions_Examples_myPhiMoist.fmu > BuildingSystems_BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist.pipe 2>&1)