Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.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.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",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.001064/0.001068, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001081/0.001081, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.235/1.235, allocations: 222.9 MB / 239.9 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001935/0.001935, allocations: 286.8 kB / 290.3 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8981/0.8981, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 93.34 kB / 0.5948 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1358, allocations: 86.99 MB / 0.6797 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.002243/0.1381, allocations: 1.495 MB / 0.6812 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006301/0.1387, allocations: 380.8 kB / 0.6816 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.595e-05/0.1387, allocations: 0 / 0.6816 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.852e-05/0.1388, allocations: 4.812 kB / 0.6816 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.645e-05/0.1388, allocations: 4 kB / 0.6816 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003674/0.1392, allocations: 99.81 kB / 0.6817 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.251e-05/0.1393, allocations: 27.91 kB / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.542e-05/0.1394, allocations: 11.88 kB / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.621e-05/0.1394, allocations: 19.92 kB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.125e-05/0.1394, allocations: 11.94 kB / 0.6817 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.111e-05/0.1394, allocations: 4 kB / 0.6817 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003145/0.1398, allocations: 275.6 kB / 0.682 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.217e-06/0.1398, allocations: 0 / 0.682 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.405e-05/0.1398, allocations: 15.92 kB / 0.682 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001606/0.14, allocations: 111.7 kB / 0.6821 GB, free: 14.54 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.14, allocations: 0 / 0.6821 GB, free: 14.54 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.14, allocations: 0 / 0.6821 GB, free: 14.54 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.14, allocations: 0 / 0.6821 GB, free: 14.54 MB / 494.1 MB 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.0004019/0.1404, allocations: 363.5 kB / 0.6825 GB, free: 14.14 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.1404, allocations: 8.031 kB / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.082e-05/0.1405, allocations: 34.75 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.1405, allocations: 4.938 kB / 0.6825 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.576e-05/0.1406, allocations: 168.2 kB / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.458e-06/0.1406, allocations: 384 / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.133e-06/0.1407, allocations: 4.375 kB / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.1408, allocations: 50.23 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1408, allocations: 7.938 kB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.313e-06/0.1408, allocations: 0 / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1409, allocations: 3.984 kB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.141, allocations: 39.89 kB / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002659/0.1413, allocations: 249 kB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001127/0.1414, allocations: 42.5 kB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.419e-05/0.1415, allocations: 20.91 kB / 0.6831 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006081/0.1421, allocations: 469.4 kB / 0.6835 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.1421, allocations: 30.56 kB / 0.6836 GB, free: 12.81 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1421, allocations: 0 / 0.6836 GB, free: 12.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.000322/0.1425, allocations: 85.58 kB / 0.6836 GB, free: 12.72 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.1425, allocations: 51.41 kB / 0.6837 GB, free: 12.66 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.147e-05/0.1426, allocations: 110 kB / 0.6838 GB, free: 12.54 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.1426, allocations: 25.7 kB / 0.6838 GB, free: 12.51 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.349e-05/0.1427, allocations: 84.14 kB / 0.6839 GB, free: 12.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.1427, allocations: 7.906 kB / 0.6839 GB, free: 12.42 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.702e-05/0.1427, allocations: 9.719 kB / 0.6839 GB, free: 12.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.426e-05/0.1428, allocations: 318.8 kB / 0.6842 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.614e-05/0.1429, allocations: 15.98 kB / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.918e-05/0.1429, allocations: 24.23 kB / 0.6843 GB, free: 12.04 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.1431, allocations: 36.77 kB / 0.6843 GB, free: 12 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1431, allocations: 7.938 kB / 0.6843 GB, free: 12 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001805/0.1433, allocations: 65.66 kB / 0.6844 GB, free: 11.93 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.1433, allocations: 11.94 kB / 0.6844 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1433, allocations: 96 / 0.6844 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.287e-06/0.1433, allocations: 4 kB / 0.6844 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.486e-05/0.1434, allocations: 11.98 kB / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.1434, allocations: 0 / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.38e-05/0.1435, allocations: 11.89 kB / 0.6844 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.518e-06/0.1435, allocations: 0 / 0.6844 GB, free: 11.89 MB / 494.1 MB 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 6.533e-05/0.1436, allocations: 114.4 kB / 0.6845 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.363e-05/0.1436, allocations: 4 kB / 0.6845 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002065/0.1438, allocations: 77.12 kB / 0.6846 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1438, allocations: 4 kB / 0.6846 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1438, allocations: 0 / 0.6846 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1438, allocations: 0 / 0.6846 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001374/0.144, allocations: 161.6 kB / 0.6847 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.144, allocations: 0 / 0.6847 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.357e-05/0.144, allocations: 11.98 kB / 0.6847 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.144, allocations: 0 / 0.6847 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.463e-06/0.1441, allocations: 0 / 0.6847 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.1441, allocations: 4.031 kB / 0.6848 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1441, allocations: 3.938 kB / 0.6848 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000227/0.1443, allocations: 175.4 kB / 0.6849 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.946e-05/0.1443, allocations: 81.02 kB / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.1444, allocations: 0 / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.421e-05/0.1444, allocations: 12.02 kB / 0.685 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.8e-05/0.1445, allocations: 0 / 0.685 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-06/0.1445, allocations: 0 / 0.685 GB, free: 11.15 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.344e-05/0.1445, allocations: 91.27 kB / 0.6851 GB, free: 11.06 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1445, allocations: 0 / 0.6851 GB, free: 11.06 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002196/0.1447, allocations: 16 kB / 0.6851 GB, free: 11.05 MB / 494.1 MB 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.0004897/0.1452, allocations: 0.7046 MB / 0.6858 GB, free: 10.32 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001808/0.1454, allocations: 43.89 kB / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1454, allocations: 0 / 0.6858 GB, free: 10.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.477e-05/0.1455, allocations: 19.98 kB / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.1458, allocations: 4.156 kB / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003511/0.1461, allocations: 159.2 kB / 0.686 GB, free: 10.05 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000182/0.1463, allocations: 0.6768 MB / 0.6867 GB, free: 9.352 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.101e-05/0.1463, allocations: 0 / 0.6867 GB, free: 9.352 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.1464, allocations: 11.44 kB / 0.6867 GB, free: 9.34 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1464, allocations: 3.938 kB / 0.6867 GB, free: 9.336 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.112/2.258, allocations: 1.461 MB / 0.6881 GB, free: 8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002111/2.259, allocations: 216.1 kB / 0.6883 GB, free: 7.742 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.602/3.861, allocations: 0 / 0.6883 GB, free: 7.742 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)