Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Examples.ModelTime.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.Time.Examples.ModelTime,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Examples_ModelTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Time.Examples.ModelTime,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Examples_ModelTime",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.005422/0.005422, allocations: 97.3 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.001287/0.001288, allocations: 199.5 kB / 16.68 MB, free: 5.965 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002622/0.002622, allocations: 275 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.052/1.052, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002934/0.002934, allocations: 96.75 kB / 0.6809 GB, free: 40 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.1821, allocations: 86.97 MB / 0.7659 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.ModelTime): time 0.001875/0.1841, allocations: 0.5928 MB / 0.7664 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 3.892e-05/0.1841, allocations: 4 kB / 0.7664 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.926e-05/0.1842, allocations: 0 / 0.7664 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.543e-05/0.1842, allocations: 0 / 0.7664 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 1.012e-05/0.1842, allocations: 3.938 kB / 0.7664 GB, free: 8.391 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 3.764e-05/0.1843, allocations: 4 kB / 0.7665 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 4.926e-05/0.1843, allocations: 0 / 0.7665 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 6.03e-05/0.1844, allocations: 11.98 kB / 0.7665 GB, free: 8.375 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.119e-05/0.1844, allocations: 0 / 0.7665 GB, free: 8.375 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.248e-05/0.1844, allocations: 7.922 kB / 0.7665 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.043e-05/0.1844, allocations: 0 / 0.7665 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 3.486e-06/0.1845, allocations: 0 / 0.7665 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.121e-05/0.1845, allocations: 0 / 0.7665 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.086e-05/0.1845, allocations: 0 / 0.7665 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 5.421e-05/0.1846, allocations: 0 / 0.7665 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.1846, allocations: 4 kB / 0.7665 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.743e-06/0.1846, allocations: 4 kB / 0.7665 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.1846, allocations: 3.938 kB / 0.7665 GB, free: 8.355 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003356/0.1849, allocations: 303.8 kB / 0.7668 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.185, allocations: 12.06 kB / 0.7668 GB, free: 7.996 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.044e-05/0.185, allocations: 34.73 kB / 0.7668 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.397e-05/0.1851, allocations: 4.938 kB / 0.7668 GB, free: 7.949 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.1852, allocations: 160.4 kB / 0.767 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.1852, allocations: 4.375 kB / 0.767 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-06/0.1852, allocations: 384 / 0.767 GB, free: 7.75 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.1853, allocations: 34.27 kB / 0.767 GB, free: 7.711 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1853, allocations: 7.875 kB / 0.767 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.774e-06/0.1854, allocations: 0 / 0.767 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.1854, allocations: 0 / 0.767 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.978e-05/0.1854, allocations: 0 / 0.767 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001723/0.1856, allocations: 153.6 kB / 0.7672 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.073e-05/0.1856, allocations: 18.58 kB / 0.7672 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.556e-05/0.1857, allocations: 8.953 kB / 0.7672 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-06/0.1857, allocations: 7.938 kB / 0.7672 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.1857, allocations: 30.56 kB / 0.7672 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 4.418e-06/0.1857, allocations: 0 / 0.7672 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001365/0.1858, allocations: 37.58 kB / 0.7673 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.1859, allocations: 55.41 kB / 0.7673 GB, free: 7.309 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.53e-05/0.186, allocations: 93.86 kB / 0.7674 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.186, allocations: 25.7 kB / 0.7674 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.986e-05/0.186, allocations: 84.27 kB / 0.7675 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.348e-05/0.1861, allocations: 7.938 kB / 0.7675 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.724e-05/0.1861, allocations: 9.719 kB / 0.7675 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1862, allocations: 310.8 kB / 0.7678 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.025e-06/0.1863, allocations: 4 kB / 0.7678 GB, free: 6.75 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.88e-06/0.1863, allocations: 0 / 0.7678 GB, free: 6.75 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.97e-05/0.1863, allocations: 16.8 kB / 0.7678 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1863, allocations: 64 / 0.7678 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.379e-05/0.1864, allocations: 33.7 kB / 0.7679 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.1864, allocations: 4 kB / 0.7679 GB, free: 6.688 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.1864, allocations: 3.938 kB / 0.7679 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.643e-05/0.1864, allocations: 7.984 kB / 0.7679 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.238e-05/0.1865, allocations: 0 / 0.7679 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.1865, allocations: 0 / 0.7679 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.137e-05/0.1865, allocations: 0 / 0.7679 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.458e-06/0.1865, allocations: 0 / 0.7679 GB, free: 6.676 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 (1): * Single equations (assignments): 1 * 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 8.325e-05/0.1866, allocations: 114.5 kB / 0.768 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.011e-06/0.1866, allocations: 0 / 0.768 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.833e-05/0.1866, allocations: 11.06 kB / 0.768 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.1866, allocations: 3.938 kB / 0.768 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1867, allocations: 0 / 0.768 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.1867, allocations: 0 / 0.768 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001205/0.1868, allocations: 145.7 kB / 0.7682 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1868, allocations: 4 kB / 0.7682 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.192e-05/0.1868, allocations: 3.938 kB / 0.7682 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.1868, allocations: 0 / 0.7682 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.233e-06/0.1868, allocations: 3.938 kB / 0.7682 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1868, allocations: 4 kB / 0.7682 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1868, allocations: 0 / 0.7682 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.466e-05/0.1869, allocations: 65.06 kB / 0.7682 GB, free: 6.254 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.857e-05/0.187, allocations: 77.11 kB / 0.7683 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.187, allocations: 7.938 kB / 0.7683 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-06/0.187, allocations: 0 / 0.7683 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.416e-05/0.187, allocations: 0 / 0.7683 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-06/0.187, allocations: 8.031 kB / 0.7683 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.236e-05/0.1871, allocations: 75.28 kB / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1871, allocations: 0 / 0.7684 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002359/0.1873, allocations: 0 / 0.7684 GB, free: 6.07 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 (1): * Single equations (assignments): 1 * 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.0004152/0.1877, allocations: 0.5928 MB / 0.769 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.25e-05/0.1878, allocations: 12.03 kB / 0.769 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.1878, allocations: 0 / 0.769 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.612e-06/0.1878, allocations: 4 kB / 0.769 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001579/0.188, allocations: 2.344 kB / 0.769 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003077/0.1883, allocations: 110.5 kB / 0.7691 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.1886, allocations: 0.6768 MB / 0.7698 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.598e-06/0.1886, allocations: 0 / 0.7698 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.749e-05/0.1887, allocations: 7.438 kB / 0.7698 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.1887, allocations: 4.125 kB / 0.7698 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09013/0.2788, allocations: 0.8932 MB / 0.7706 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.103/8.382, allocations: 14.16 kB / 0.7707 GB, free: 3.754 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.ModelTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.ModelTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.ModelTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.ModelTime.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Time_Examples_ModelTime_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Time_Examples_ModelTime.fmu > BuildingSystems_BuildingSystems.Utilities.Time.Examples.ModelTime.pipe 2>&1)