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.001536/0.001536, 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.001753/0.001753, allocations: 189.3 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.417/1.417, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.706/1.706, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001651/0.001651, allocations: 68.89 kB / 0.6718 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2844, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002926/0.2873, allocations: 1.441 MB / 0.785 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0007027/0.2881, allocations: 387.5 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.601e-05/0.2881, allocations: 0 / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.151e-05/0.2881, allocations: 3.938 kB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.072e-05/0.2882, allocations: 7.938 kB / 0.7854 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.2886, allocations: 107.7 kB / 0.7855 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.747e-05/0.2887, allocations: 31.86 kB / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.798e-05/0.2888, allocations: 7.984 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.672e-05/0.2889, allocations: 4 kB / 0.7856 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.185e-05/0.2889, allocations: 15.92 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.2889, allocations: 8 kB / 0.7856 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003549/0.2893, allocations: 271.7 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.481e-05/0.2893, allocations: 11.92 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.2893, allocations: 15.92 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000197/0.2896, allocations: 108 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2896, allocations: 0 / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2896, allocations: 0 / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.2896, allocations: 0 / 0.786 GB, free: 10.85 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.0004714/0.2901, allocations: 363.3 kB / 0.7863 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2901, allocations: 12.03 kB / 0.7863 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.267e-05/0.2901, allocations: 34.75 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.156e-05/0.2902, allocations: 8.828 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.2903, allocations: 164.4 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.2903, allocations: 4.375 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/0.2904, allocations: 4.312 kB / 0.7865 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/0.2905, allocations: 50.23 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.2906, allocations: 3.938 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-06/0.2906, allocations: 0 / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.2906, allocations: 0 / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/0.2907, allocations: 35.97 kB / 0.7866 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003297/0.2911, allocations: 248.9 kB / 0.7869 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.2912, allocations: 50.42 kB / 0.7869 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.378e-05/0.2913, allocations: 24.91 kB / 0.7869 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006525/0.292, allocations: 453.5 kB / 0.7874 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.937e-05/0.292, allocations: 42.55 kB / 0.7874 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.292, allocations: 0 / 0.7874 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0003458/0.2924, allocations: 77.56 kB / 0.7875 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.2924, allocations: 59.41 kB / 0.7875 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.56e-05/0.2925, allocations: 109.8 kB / 0.7876 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.2925, allocations: 29.7 kB / 0.7877 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.939e-05/0.2926, allocations: 88.25 kB / 0.7877 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.2926, allocations: 7.891 kB / 0.7878 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.468e-05/0.2926, allocations: 17.72 kB / 0.7878 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.2927, allocations: 310.8 kB / 0.7881 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.543e-05/0.2928, allocations: 15.98 kB / 0.7881 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.904e-05/0.2929, allocations: 19.97 kB / 0.7881 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.293, allocations: 44.89 kB / 0.7881 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.2931, allocations: 3.938 kB / 0.7881 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001947/0.2933, allocations: 65.66 kB / 0.7882 GB, free: 8.219 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.2933, allocations: 4.938 kB / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2933, allocations: 0 / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2933, allocations: 0 / 0.7882 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.003e-05/0.2934, allocations: 19.86 kB / 0.7882 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.71e-06/0.2934, allocations: 4.031 kB / 0.7882 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.975e-05/0.2935, allocations: 7.938 kB / 0.7882 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-06/0.2935, allocations: 0 / 0.7882 GB, free: 8.184 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.241e-05/0.2935, allocations: 117.8 kB / 0.7884 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.563e-05/0.2936, allocations: 3.984 kB / 0.7884 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/0.2938, allocations: 69.19 kB / 0.7884 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2938, allocations: 4.031 kB / 0.7884 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2938, allocations: 0 / 0.7884 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2938, allocations: 3.984 kB / 0.7884 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001568/0.294, allocations: 169.6 kB / 0.7886 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.294, allocations: 0 / 0.7886 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.996e-05/0.2941, allocations: 4 kB / 0.7886 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2941, allocations: 3.938 kB / 0.7886 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.2941, allocations: 0 / 0.7886 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.2941, allocations: 4 kB / 0.7886 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.2941, allocations: 3.984 kB / 0.7886 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002448/0.2943, allocations: 167.4 kB / 0.7888 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.476e-05/0.2944, allocations: 81.09 kB / 0.7888 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.2944, allocations: 0 / 0.7888 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.666e-05/0.2945, allocations: 4 kB / 0.7889 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.09e-05/0.2945, allocations: 7.984 kB / 0.7889 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-06/0.2945, allocations: 4.031 kB / 0.7889 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.345e-05/0.2946, allocations: 87.53 kB / 0.7889 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2946, allocations: 0 / 0.7889 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000217/0.2948, allocations: 12 kB / 0.789 GB, free: 7.348 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.0005705/0.2954, allocations: 0.7163 MB / 0.7897 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001956/0.2956, allocations: 31.97 kB / 0.7897 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2956, allocations: 0 / 0.7897 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 7.934e-05/0.2957, allocations: 23.97 kB / 0.7897 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.296, allocations: 4 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.0003935/0.2964, allocations: 155.1 kB / 0.7899 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.2966, allocations: 0.6768 MB / 0.7905 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.851e-05/0.2966, allocations: 0 / 0.7905 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.817e-05/0.2967, allocations: 15.38 kB / 0.7905 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.2967, allocations: 0 / 0.7905 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01862/0.3153, allocations: 1.595 MB / 0.7921 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.986/7.302, allocations: 5.234 kB / 0.7921 GB, free: 4.121 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_8_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)