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.00803/0.00803, allocations: 97.98 kB / 15.73 MB, free: 6.043 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.001955/0.001955, allocations: 196.7 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002425/0.002426, allocations: 286.5 kB / 290.8 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.07/1.07, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002815/0.002815, allocations: 100.3 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.1844, allocations: 86.98 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.002859/0.1873, allocations: 1.439 MB / 0.7673 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007897/0.1881, allocations: 379.5 kB / 0.7677 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.976e-05/0.1882, allocations: 3.938 kB / 0.7677 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.506e-05/0.1882, allocations: 0 / 0.7677 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.588e-05/0.1883, allocations: 7.938 kB / 0.7677 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004592/0.1887, allocations: 111.7 kB / 0.7678 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.462e-05/0.1888, allocations: 27.92 kB / 0.7678 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.58e-05/0.1889, allocations: 8.266 kB / 0.7678 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.604e-05/0.189, allocations: 11.94 kB / 0.7678 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.259e-05/0.189, allocations: 15.97 kB / 0.7679 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.189, allocations: 3.938 kB / 0.7679 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004071/0.1894, allocations: 279.7 kB / 0.7681 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.342e-05/0.1895, allocations: 7.922 kB / 0.7681 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.1895, allocations: 7.938 kB / 0.7681 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.1897, allocations: 111.6 kB / 0.7683 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1897, allocations: 4 kB / 0.7683 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.613e-06/0.1898, allocations: 0 / 0.7683 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.636e-06/0.1898, allocations: 0 / 0.7683 GB, free: 6.516 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.0005091/0.1903, allocations: 363.1 kB / 0.7686 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1903, allocations: 8.031 kB / 0.7686 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.725e-05/0.1904, allocations: 38.69 kB / 0.7686 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.309e-05/0.1904, allocations: 16.88 kB / 0.7687 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.1906, allocations: 168.4 kB / 0.7688 GB, free: 5.836 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.1906, allocations: 384 / 0.7688 GB, free: 5.836 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.1906, allocations: 8.375 kB / 0.7688 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.1908, allocations: 50.23 kB / 0.7689 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.1908, allocations: 3.938 kB / 0.7689 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.1908, allocations: 0 / 0.7689 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.1908, allocations: 0 / 0.7689 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.191, allocations: 31.97 kB / 0.7689 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003761/0.1914, allocations: 256.9 kB / 0.7692 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/0.1915, allocations: 38.5 kB / 0.7692 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.916e-05/0.1916, allocations: 24.89 kB / 0.7692 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008068/0.1925, allocations: 461.5 kB / 0.7697 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.1925, allocations: 30.56 kB / 0.7697 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.353e-06/0.1925, allocations: 3.938 kB / 0.7697 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0005059/0.193, allocations: 93.62 kB / 0.7698 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.1931, allocations: 51.41 kB / 0.7698 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.1932, allocations: 105.8 kB / 0.7699 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.1932, allocations: 25.7 kB / 0.77 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.392e-05/0.1933, allocations: 84.14 kB / 0.77 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.1933, allocations: 11.94 kB / 0.7701 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.576e-05/0.1934, allocations: 9.719 kB / 0.7701 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1935, allocations: 314.8 kB / 0.7704 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.734e-05/0.1936, allocations: 20.02 kB / 0.7704 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.507e-05/0.1937, allocations: 19.98 kB / 0.7704 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.1939, allocations: 36.81 kB / 0.7704 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.1939, allocations: 3.938 kB / 0.7704 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002357/0.1941, allocations: 73.66 kB / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.1942, allocations: 8 kB / 0.7705 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1942, allocations: 0 / 0.7705 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.1942, allocations: 0 / 0.7705 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.026e-05/0.1943, allocations: 4 kB / 0.7705 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.1943, allocations: 7.984 kB / 0.7705 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.01e-05/0.1944, allocations: 11.88 kB / 0.7705 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.1944, allocations: 0 / 0.7705 GB, free: 3.852 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 9.683e-05/0.1945, allocations: 118.5 kB / 0.7707 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.793e-05/0.1945, allocations: 7.953 kB / 0.7707 GB, free: 3.719 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/0.1948, allocations: 77.11 kB / 0.7707 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1948, allocations: 4 kB / 0.7707 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.1948, allocations: 0 / 0.7707 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1948, allocations: 0 / 0.7707 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/0.195, allocations: 157.6 kB / 0.7709 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.195, allocations: 256 / 0.7709 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.058e-05/0.1951, allocations: 20.02 kB / 0.7709 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.1951, allocations: 0 / 0.7709 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-06/0.1951, allocations: 0 / 0.7709 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1951, allocations: 0 / 0.7709 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1951, allocations: 0 / 0.7709 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002871/0.1954, allocations: 163.5 kB / 0.7711 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.873e-05/0.1955, allocations: 89.12 kB / 0.7711 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.1955, allocations: 3.938 kB / 0.7711 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.328e-05/0.1956, allocations: 4 kB / 0.7712 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.095e-05/0.1957, allocations: 7.922 kB / 0.7712 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.267e-06/0.1957, allocations: 0 / 0.7712 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.355e-05/0.1957, allocations: 87.28 kB / 0.7712 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1957, allocations: 0 / 0.7712 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003299/0.1961, allocations: 12 kB / 0.7713 GB, free: 3.016 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.000674/0.1968, allocations: 0.7162 MB / 0.772 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002391/0.197, allocations: 39.91 kB / 0.772 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.197, allocations: 4.094 kB / 0.772 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.791e-05/0.1971, allocations: 23.97 kB / 0.772 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.1975, allocations: 0 / 0.772 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004849/0.198, allocations: 147.1 kB / 0.7722 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.1983, allocations: 0.6768 MB / 0.7728 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.469e-05/0.1983, allocations: 0 / 0.7728 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.574e-05/0.1984, allocations: 15.5 kB / 0.7728 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of SimCode: time 5.81e-07/0.1984, allocations: 0 / 0.7728 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.343/0.5414, allocations: 1.605 MB / 0.7744 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.925/8.467, allocations: 4.125 kB / 0.7744 GB, free: 14.59 MB / 0.5606 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)