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.004199/0.004199, allocations: 97.62 kB / 15.73 MB, free: 6.004 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.001196/0.001196, allocations: 195 kB / 16.67 MB, free: 5.934 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.282/1.282, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002398/0.002398, allocations: 285.9 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 0.9162/0.9162, allocations: 169.2 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002509/0.002509, allocations: 88.09 kB / 0.6809 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3322, allocations: 86.98 MB / 0.7659 GB, free: 4.008 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.HeatAndMoistureTransport.Functions.Examples.myPhiMoist): time 0.002582/0.3348, allocations: 1.704 MB / 0.7676 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0006494/0.3355, allocations: 470.1 kB / 0.768 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.934e-05/0.3355, allocations: 4 kB / 0.768 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0003416/0.3359, allocations: 147.4 kB / 0.7681 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.892e-05/0.336, allocations: 47.73 kB / 0.7682 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002077/0.3362, allocations: 67.8 kB / 0.7683 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001339/0.3363, allocations: 103.4 kB / 0.7684 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.853e-05/0.3364, allocations: 7.797 kB / 0.7684 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.964e-05/0.3364, allocations: 43.78 kB / 0.7684 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.61e-05/0.3365, allocations: 39.84 kB / 0.7684 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.3365, allocations: 4 kB / 0.7684 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.3367, allocations: 87.81 kB / 0.7685 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.351e-05/0.3368, allocations: 59.81 kB / 0.7686 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.847e-05/0.3368, allocations: 63.55 kB / 0.7686 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002397/0.3371, allocations: 188.5 kB / 0.7688 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.3371, allocations: 0 / 0.7688 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.042e-06/0.3371, allocations: 0 / 0.7688 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.125e-06/0.3371, allocations: 0 / 0.7688 GB, free: 0.9883 MB / 0.5294 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.0005617/0.3377, allocations: 490.1 kB / 0.7693 GB, free: 472 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.3377, allocations: 12.03 kB / 0.7693 GB, free: 460 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.092e-05/0.3378, allocations: 30.75 kB / 0.7693 GB, free: 420 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.004e-05/0.3378, allocations: 16.84 kB / 0.7694 GB, free: 404 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.338, allocations: 215.9 kB / 0.7696 GB, free: 148 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.567e-06/0.338, allocations: 4.375 kB / 0.7696 GB, free: 144 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-06/0.338, allocations: 384 / 0.7696 GB, free: 144 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001736/0.3382, allocations: 57.98 kB / 0.7696 GB, free: 80 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3382, allocations: 3.938 kB / 0.7696 GB, free: 76 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-06/0.3382, allocations: 7.938 kB / 0.7696 GB, free: 68 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.3382, allocations: 11.97 kB / 0.7696 GB, free: 56 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.3384, allocations: 35.97 kB / 0.7697 GB, free: 20 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.3388, allocations: 320.8 kB / 0.77 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.339, allocations: 46.55 kB / 0.77 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.365e-05/0.339, allocations: 24.91 kB / 0.77 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.3391, allocations: 4 kB / 0.7701 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3391, allocations: 42.5 kB / 0.7701 GB, free: 15.52 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.3391, allocations: 0 / 0.7701 GB, free: 15.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0003459/0.3395, allocations: 109.5 kB / 0.7702 GB, free: 15.41 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.3395, allocations: 51.41 kB / 0.7702 GB, free: 15.34 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.3398, allocations: 258.7 kB / 0.7705 GB, free: 15.09 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.3398, allocations: 25.83 kB / 0.7705 GB, free: 15.06 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.838e-05/0.3399, allocations: 136.1 kB / 0.7706 GB, free: 14.92 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.3399, allocations: 11.89 kB / 0.7707 GB, free: 14.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.99e-05/0.34, allocations: 9.719 kB / 0.7707 GB, free: 14.89 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3401, allocations: 334.8 kB / 0.771 GB, free: 14.56 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.348e-05/0.3402, allocations: 19.98 kB / 0.771 GB, free: 14.54 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.242e-05/0.3403, allocations: 23.97 kB / 0.771 GB, free: 14.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.3404, allocations: 52.77 kB / 0.7711 GB, free: 14.46 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3405, allocations: 3.938 kB / 0.7711 GB, free: 14.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002011/0.3407, allocations: 89.52 kB / 0.7712 GB, free: 14.36 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.3407, allocations: 4 kB / 0.7712 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.3407, allocations: 0 / 0.7712 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.3407, allocations: 0 / 0.7712 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.492e-05/0.3408, allocations: 16.02 kB / 0.7712 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.3408, allocations: 0 / 0.7712 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.351e-05/0.3409, allocations: 7.984 kB / 0.7712 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-06/0.3409, allocations: 0 / 0.7712 GB, free: 14.34 MB / 0.545 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.0001167/0.341, allocations: 141.8 kB / 0.7713 GB, free: 14.19 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.715e-05/0.341, allocations: 19.86 kB / 0.7713 GB, free: 14.17 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.3413, allocations: 102.5 kB / 0.7714 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3413, allocations: 0 / 0.7714 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.3413, allocations: 0 / 0.7714 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3413, allocations: 0 / 0.7714 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002488/0.3416, allocations: 213.5 kB / 0.7716 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.3416, allocations: 4 kB / 0.7717 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.485e-05/0.3416, allocations: 7.984 kB / 0.7717 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.3416, allocations: 0 / 0.7717 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.899e-06/0.3416, allocations: 0 / 0.7717 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3416, allocations: 0 / 0.7717 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3417, allocations: 8.031 kB / 0.7717 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.3419, allocations: 191.2 kB / 0.7719 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.998e-05/0.342, allocations: 89.02 kB / 0.7719 GB, free: 13.47 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.057e-05/0.342, allocations: 3.984 kB / 0.7719 GB, free: 13.47 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.3421, allocations: 4 kB / 0.7719 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.313e-05/0.3421, allocations: 12.02 kB / 0.772 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-06/0.3422, allocations: 0 / 0.772 GB, free: 13.45 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001703/0.3423, allocations: 190 kB / 0.7721 GB, free: 13.27 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3423, allocations: 0 / 0.7721 GB, free: 13.27 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003296/0.3427, allocations: 31.94 kB / 0.7722 GB, free: 13.24 MB / 0.545 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.0006033/0.3433, allocations: 0.7551 MB / 0.7729 GB, free: 12.46 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001905/0.3435, allocations: 39.95 kB / 0.7729 GB, free: 12.42 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3435, allocations: 0 / 0.7729 GB, free: 12.42 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.196e-05/0.3436, allocations: 23.98 kB / 0.773 GB, free: 12.39 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004614/0.344, allocations: 48.55 kB / 0.773 GB, free: 12.35 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007132/0.3448, allocations: 395.5 kB / 0.7734 GB, free: 11.92 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.3451, allocations: 0.7314 MB / 0.7741 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.963e-05/0.3452, allocations: 15.67 kB / 0.7741 GB, free: 11.14 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.939e-05/0.3452, allocations: 47.42 kB / 0.7742 GB, free: 11.1 MB / 0.545 GB Notification: Performance of SimCode: time 2.01e-07/0.3452, allocations: 0 / 0.7742 GB, free: 11.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.728/3.073, allocations: 3.958 MB / 0.778 GB, free: 7.332 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.76/16.83, allocations: 6.312 kB / 0.778 GB, free: 7.332 MB / 0.545 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)