Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_8_Buildings_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.001651/0.001651, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002053/0.002053, allocations: 189.7 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.661/1.661, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002359/0.00236, allocations: 73.47 kB / 0.6718 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2538, allocations: 114.5 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002576/0.2564, allocations: 1.434 MB / 0.785 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006436/0.2571, allocations: 387.5 kB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.128e-05/0.2572, allocations: 0 / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.692e-05/0.2572, allocations: 3.938 kB / 0.7854 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.766e-05/0.2573, allocations: 3.938 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004242/0.2577, allocations: 115.7 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.204e-05/0.2578, allocations: 31.86 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.965e-05/0.2579, allocations: 3.984 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.389e-05/0.2579, allocations: 11.98 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.647e-05/0.2579, allocations: 7.938 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.258, allocations: 4 kB / 0.7856 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003596/0.2583, allocations: 279.6 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.46e-05/0.2584, allocations: 4 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.218e-05/0.2584, allocations: 11.94 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002001/0.2586, allocations: 112 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2586, allocations: 4 kB / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2586, allocations: 0 / 0.786 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.2586, allocations: 0 / 0.786 GB, free: 10.86 MB / 0.6075 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.0005083/0.2591, allocations: 367.3 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.2592, allocations: 8.031 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.73e-05/0.2592, allocations: 34.75 kB / 0.7863 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.987e-05/0.2593, allocations: 4.844 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.2595, allocations: 164.4 kB / 0.7865 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.2595, allocations: 12.31 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.2595, allocations: 4.375 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001732/0.2597, allocations: 50.23 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2597, allocations: 3.938 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.2597, allocations: 0 / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.2597, allocations: 0 / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001666/0.2599, allocations: 35.95 kB / 0.7866 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003391/0.2602, allocations: 252.9 kB / 0.7869 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.2604, allocations: 46.44 kB / 0.7869 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.596e-05/0.2605, allocations: 20.91 kB / 0.7869 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006479/0.2611, allocations: 461.5 kB / 0.7874 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.2612, allocations: 34.56 kB / 0.7874 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.2612, allocations: 0 / 0.7874 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0003788/0.2616, allocations: 85.55 kB / 0.7875 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.2616, allocations: 55.34 kB / 0.7875 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.77e-05/0.2617, allocations: 105.8 kB / 0.7876 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.2617, allocations: 29.7 kB / 0.7877 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.034e-05/0.2618, allocations: 84.14 kB / 0.7877 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.2618, allocations: 3.906 kB / 0.7877 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.283e-05/0.2618, allocations: 17.72 kB / 0.7878 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.932e-05/0.2619, allocations: 322.9 kB / 0.7881 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.427e-05/0.262, allocations: 15.98 kB / 0.7881 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.092e-05/0.2621, allocations: 15.98 kB / 0.7881 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.2623, allocations: 36.83 kB / 0.7881 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.2623, allocations: 3.938 kB / 0.7881 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002032/0.2625, allocations: 73.72 kB / 0.7882 GB, free: 8.23 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.2625, allocations: 4 kB / 0.7882 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2625, allocations: 3.938 kB / 0.7882 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.2625, allocations: 3.938 kB / 0.7882 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.433e-05/0.2626, allocations: 11.98 kB / 0.7882 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.2626, allocations: 3.984 kB / 0.7882 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.568e-05/0.2627, allocations: 7.984 kB / 0.7882 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-06/0.2627, allocations: 0 / 0.7882 GB, free: 8.195 MB / 0.6075 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 7.039e-05/0.2628, allocations: 113.8 kB / 0.7883 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.945e-05/0.2628, allocations: 8 kB / 0.7884 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002237/0.2631, allocations: 69.19 kB / 0.7884 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.2631, allocations: 0 / 0.7884 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2631, allocations: 0 / 0.7884 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2631, allocations: 0 / 0.7884 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.2633, allocations: 165.6 kB / 0.7886 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2633, allocations: 4.281 kB / 0.7886 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.617e-05/0.2633, allocations: 15.92 kB / 0.7886 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.2634, allocations: 7.984 kB / 0.7886 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.2634, allocations: 0 / 0.7886 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2634, allocations: 0 / 0.7886 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.2634, allocations: 4 kB / 0.7886 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002377/0.2636, allocations: 167.4 kB / 0.7888 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.171e-05/0.2637, allocations: 81.11 kB / 0.7888 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.2637, allocations: 0 / 0.7888 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.144e-05/0.2638, allocations: 7.984 kB / 0.7889 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.268e-05/0.2638, allocations: 0 / 0.7889 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.022e-06/0.2638, allocations: 4 kB / 0.7889 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.914e-05/0.2639, allocations: 87.27 kB / 0.7889 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2639, allocations: 0 / 0.7889 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002233/0.2641, allocations: 12 kB / 0.789 GB, free: 7.359 MB / 0.6075 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.0005442/0.2646, allocations: 0.7163 MB / 0.7896 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002034/0.2649, allocations: 39.98 kB / 0.7897 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2649, allocations: 0 / 0.7897 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.328e-05/0.265, allocations: 23.92 kB / 0.7897 GB, free: 6.555 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.2652, allocations: 8.875 kB / 0.7897 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003873/0.2656, allocations: 147 kB / 0.7899 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002043/0.2658, allocations: 0.6768 MB / 0.7905 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.615e-05/0.2659, allocations: 12.05 kB / 0.7905 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.159e-05/0.2659, allocations: 11.44 kB / 0.7905 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.2659, allocations: 4 kB / 0.7905 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.286, allocations: 1.582 MB / 0.7921 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.332/7.618, allocations: 1.172 kB / 0.7921 GB, free: 4.133 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_8_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)