Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.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.SmoothBlocks,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_SmoothBlocks",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.001219/0.001219, 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.001175/0.001174, allocations: 184.9 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.392/1.392, 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.714/1.714, 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.001769/0.001769, allocations: 70.59 kB / 0.6718 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2244, allocations: 114.6 MB / 0.7836 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.004484/0.229, allocations: 1.762 MB / 0.7853 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.2305, allocations: 0.7039 MB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.2307, allocations: 4 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.986e-05/0.2308, allocations: 11.86 kB / 0.7861 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.59e-05/0.2309, allocations: 11.81 kB / 0.7861 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007327/0.2317, allocations: 179.9 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002272/0.2319, allocations: 119.7 kB / 0.7863 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.2321, allocations: 45.11 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.2322, allocations: 59.77 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.2324, allocations: 47.77 kB / 0.7865 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.257e-05/0.2324, allocations: 15.94 kB / 0.7865 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.2325, allocations: 47.95 kB / 0.7866 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.728e-05/0.2326, allocations: 27.91 kB / 0.7866 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.984e-05/0.2327, allocations: 63.7 kB / 0.7866 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.233, allocations: 147.8 kB / 0.7868 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.233, allocations: 0 / 0.7868 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.944e-06/0.233, allocations: 0 / 0.7868 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.233, allocations: 0 / 0.7868 GB, free: 10.02 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.00074/0.2338, allocations: 435 kB / 0.7872 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.2338, allocations: 12.03 kB / 0.7872 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.638e-05/0.2339, allocations: 38.73 kB / 0.7872 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008742/0.2348, allocations: 112.7 kB / 0.7874 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.2349, allocations: 192 kB / 0.7875 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.2351, allocations: 67.95 kB / 0.7876 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.645e-05/0.2351, allocations: 4.375 kB / 0.7876 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005379/0.2356, allocations: 173.5 kB / 0.7878 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2357, allocations: 0 / 0.7878 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.139e-05/0.2357, allocations: 4 kB / 0.7878 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.2357, allocations: 0 / 0.7878 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006207/0.2363, allocations: 163.8 kB / 0.7879 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.2375, allocations: 477.7 kB / 0.7884 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.2386, allocations: 222.3 kB / 0.7886 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/0.2389, allocations: 80.91 kB / 0.7887 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.2389, allocations: 3.984 kB / 0.7887 GB, free: 7.902 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.239, allocations: 34.56 kB / 0.7887 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 4.548e-06/0.239, allocations: 0 / 0.7887 GB, free: 7.859 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.001123/0.2401, allocations: 265.3 kB / 0.789 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.2402, allocations: 55.41 kB / 0.789 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.2403, allocations: 152.2 kB / 0.7892 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.2403, allocations: 33.64 kB / 0.7892 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.255e-05/0.2404, allocations: 100.3 kB / 0.7893 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/0.2405, allocations: 31.64 kB / 0.7893 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.137e-05/0.2405, allocations: 25.7 kB / 0.7893 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.2407, allocations: 318.8 kB / 0.7897 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.241, allocations: 71.92 kB / 0.7897 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.2413, allocations: 98.48 kB / 0.7898 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005934/0.2419, allocations: 166.4 kB / 0.79 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.242, allocations: 0 / 0.79 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007043/0.2427, allocations: 201.6 kB / 0.7902 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.2427, allocations: 4.062 kB / 0.7902 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2427, allocations: 11.94 kB / 0.7902 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.2427, allocations: 0 / 0.7902 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.243, allocations: 35.95 kB / 0.7902 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.243, allocations: 0 / 0.7902 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.2432, allocations: 27.95 kB / 0.7902 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.2432, allocations: 4 kB / 0.7902 GB, free: 6.215 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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 0.0001159/0.2434, allocations: 126.4 kB / 0.7904 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.359e-05/0.2434, allocations: 7.906 kB / 0.7904 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007259/0.2442, allocations: 202.2 kB / 0.7906 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.2442, allocations: 7.984 kB / 0.7906 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2442, allocations: 4 kB / 0.7906 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2442, allocations: 0 / 0.7906 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.2445, allocations: 234.3 kB / 0.7908 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2445, allocations: 0 / 0.7908 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/0.2447, allocations: 35.89 kB / 0.7908 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.2447, allocations: 0 / 0.7908 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.2447, allocations: 7.922 kB / 0.7908 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2447, allocations: 0 / 0.7908 GB, free: 5.535 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2447, allocations: 4 kB / 0.7908 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007111/0.2455, allocations: 283.3 kB / 0.7911 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.408e-05/0.2455, allocations: 88.95 kB / 0.7912 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.2456, allocations: 7.938 kB / 0.7912 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.2459, allocations: 31.95 kB / 0.7912 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.136e-05/0.2459, allocations: 4 kB / 0.7912 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.2459, allocations: 8.172 kB / 0.7912 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.132e-05/0.246, allocations: 110 kB / 0.7914 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.246, allocations: 0 / 0.7914 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002764/0.2463, allocations: 24 kB / 0.7914 GB, free: 4.953 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 (6): * Single equations (assignments): 6 * 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.00102/0.2473, allocations: 0.8176 MB / 0.7922 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0006771/0.248, allocations: 171.7 kB / 0.7923 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2481, allocations: 0 / 0.7923 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003113/0.2484, allocations: 84.05 kB / 0.7924 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003447/0.2487, allocations: 18.89 kB / 0.7924 GB, free: 3.844 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003131/0.2519, allocations: 1.824 MB / 0.7942 GB, free: 1.926 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.2522, allocations: 0.7002 MB / 0.7949 GB, free: 1.199 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001013/0.2523, allocations: 15.75 kB / 0.7949 GB, free: 1.184 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.23e-05/0.2524, allocations: 31.42 kB / 0.7949 GB, free: 1.152 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/0.2524, allocations: 0 / 0.7949 GB, free: 1.152 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01944/0.2718, allocations: 2.722 MB / 0.7976 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.395/7.667, allocations: 8 kB / 0.7976 GB, free: 14.5 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_8_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)