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.005088/0.005088, allocations: 104.1 kB / 15.74 MB, free: 6.047 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.001086/0.001086, allocations: 193.5 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.244/1.244, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001964/0.001964, allocations: 289.9 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8987/0.8987, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 95.86 kB / 0.681 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.4298, allocations: 86.98 MB / 0.7659 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.002462/0.4323, allocations: 1.437 MB / 0.7673 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0006812/0.433, allocations: 383.6 kB / 0.7677 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.529e-05/0.433, allocations: 3.938 kB / 0.7677 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.248e-05/0.4331, allocations: 3.938 kB / 0.7677 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.558e-05/0.4331, allocations: 3.938 kB / 0.7677 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004266/0.4336, allocations: 118.5 kB / 0.7678 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.303e-05/0.4336, allocations: 27.92 kB / 0.7678 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 7.724e-05/0.4337, allocations: 0 / 0.7678 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.229e-05/0.4338, allocations: 11.98 kB / 0.7678 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.981e-05/0.4338, allocations: 11.92 kB / 0.7678 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.4338, allocations: 4 kB / 0.7679 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003647/0.4342, allocations: 275.7 kB / 0.7681 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.814e-05/0.4342, allocations: 15.91 kB / 0.7681 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.468e-05/0.4343, allocations: 15.94 kB / 0.7681 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.4345, allocations: 103.8 kB / 0.7682 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.4345, allocations: 3.938 kB / 0.7682 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.222e-06/0.4345, allocations: 0 / 0.7682 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.758e-06/0.4345, allocations: 0 / 0.7682 GB, free: 1.465 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.0004364/0.4349, allocations: 363.4 kB / 0.7686 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.435, allocations: 8.031 kB / 0.7686 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.913e-05/0.435, allocations: 38.69 kB / 0.7686 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.554e-05/0.4351, allocations: 4.938 kB / 0.7686 GB, free: 1 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.4352, allocations: 172.3 kB / 0.7688 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.4352, allocations: 384 / 0.7688 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.4352, allocations: 4.375 kB / 0.7688 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001679/0.4354, allocations: 50.23 kB / 0.7689 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.403e-06/0.4354, allocations: 3.938 kB / 0.7689 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-06/0.4354, allocations: 0 / 0.7689 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.4354, allocations: 3.984 kB / 0.7689 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001507/0.4356, allocations: 35.97 kB / 0.7689 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002876/0.4359, allocations: 248.9 kB / 0.7691 GB, free: 408 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.436, allocations: 42.5 kB / 0.7692 GB, free: 356 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.932e-05/0.4361, allocations: 24.89 kB / 0.7692 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006564/0.4368, allocations: 461.5 kB / 0.7696 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.4368, allocations: 34.5 kB / 0.7697 GB, free: 15.73 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.4368, allocations: 0 / 0.7697 GB, free: 15.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0003435/0.4371, allocations: 85.58 kB / 0.7698 GB, free: 15.64 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.944e-05/0.4372, allocations: 55.41 kB / 0.7698 GB, free: 15.58 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.071e-05/0.4372, allocations: 101.8 kB / 0.7699 GB, free: 15.47 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.4373, allocations: 33.7 kB / 0.7699 GB, free: 15.43 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.768e-05/0.4373, allocations: 84.05 kB / 0.77 GB, free: 15.34 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.4373, allocations: 0 / 0.77 GB, free: 15.34 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.4374, allocations: 25.83 kB / 0.77 GB, free: 15.31 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.884e-05/0.4375, allocations: 310.8 kB / 0.7703 GB, free: 15 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.753e-05/0.4375, allocations: 15.98 kB / 0.7704 GB, free: 14.98 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.444e-05/0.4376, allocations: 19.92 kB / 0.7704 GB, free: 14.96 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.4378, allocations: 40.81 kB / 0.7704 GB, free: 14.92 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.4378, allocations: 8 kB / 0.7704 GB, free: 14.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000194/0.438, allocations: 73.52 kB / 0.7705 GB, free: 14.84 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.438, allocations: 7.984 kB / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.438, allocations: 0 / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.438, allocations: 0 / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.734e-05/0.4381, allocations: 8 kB / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.4381, allocations: 0 / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.484e-05/0.4382, allocations: 12.02 kB / 0.7705 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-06/0.4382, allocations: 256 / 0.7705 GB, free: 14.81 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 6.538e-05/0.4382, allocations: 113.7 kB / 0.7706 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.417e-05/0.4383, allocations: 7.938 kB / 0.7706 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002085/0.4385, allocations: 81.11 kB / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.4385, allocations: 0 / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4385, allocations: 4 kB / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.4385, allocations: 4.031 kB / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.4387, allocations: 161.6 kB / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4387, allocations: 4 kB / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.29e-05/0.4387, allocations: 7.984 kB / 0.7709 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.4388, allocations: 0 / 0.7709 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-06/0.4388, allocations: 0 / 0.7709 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4388, allocations: 0 / 0.7709 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.4388, allocations: 4 kB / 0.7709 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.439, allocations: 169.1 kB / 0.7711 GB, free: 14.18 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.439, allocations: 81.11 kB / 0.7711 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.4391, allocations: 3.984 kB / 0.7711 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.149e-05/0.4391, allocations: 4 kB / 0.7711 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.199e-05/0.4392, allocations: 3.938 kB / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.145e-06/0.4392, allocations: 4 kB / 0.7711 GB, free: 14.07 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.115e-05/0.4392, allocations: 87.27 kB / 0.7712 GB, free: 13.98 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4392, allocations: 4.031 kB / 0.7712 GB, free: 13.98 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000228/0.4395, allocations: 12 kB / 0.7712 GB, free: 13.97 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.0005068/0.44, allocations: 0.7117 MB / 0.7719 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001895/0.4402, allocations: 39.94 kB / 0.772 GB, free: 13.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4402, allocations: 3.938 kB / 0.772 GB, free: 13.19 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.641e-05/0.4403, allocations: 19.98 kB / 0.772 GB, free: 13.17 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.4406, allocations: 10.73 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003808/0.441, allocations: 143.2 kB / 0.7721 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.4412, allocations: 0.6808 MB / 0.7728 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.017e-05/0.4412, allocations: 0 / 0.7728 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.833e-05/0.4412, allocations: 15.44 kB / 0.7728 GB, free: 12.26 MB / 0.545 GB Notification: Performance of SimCode: time 2.8e-07/0.4412, allocations: 0 / 0.7728 GB, free: 12.26 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01672/0.458, allocations: 1.628 MB / 0.7744 GB, free: 10.73 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.118/7.576, allocations: 12.31 kB / 0.7744 GB, free: 10.72 MB / 0.545 GB (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)