Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.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.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside",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.001222/0.001222, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001258/0.001258, allocations: 190.7 kB / 16.25 MB, free: 6.617 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.251/1.251, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001962/0.001962, allocations: 290.8 kB / 290.3 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8846/0.8846, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 95.31 kB / 0.5948 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1348, allocations: 86.98 MB / 0.6797 GB, free: 0.957 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002164/0.137, allocations: 1.491 MB / 0.6812 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005973/0.1376, allocations: 471 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.573e-05/0.1376, allocations: 0 / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.756e-05/0.1376, allocations: 0 / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.921e-05/0.1377, allocations: 3.938 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.1379, allocations: 16.7 kB / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.725e-05/0.1379, allocations: 28.8 kB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.3e-05/0.138, allocations: 7.984 kB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.863e-05/0.1381, allocations: 16.48 kB / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.936e-05/0.1381, allocations: 11.98 kB / 0.6817 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.1381, allocations: 5.406 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.584e-05/0.1382, allocations: 15.98 kB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.152e-05/0.1382, allocations: 11.92 kB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.83e-05/0.1382, allocations: 12.59 kB / 0.6818 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.481e-05/0.1383, allocations: 32.17 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1383, allocations: 8 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1383, allocations: 0 / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1383, allocations: 0 / 0.6818 GB, free: 14.84 MB / 494.1 MB 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.0003461/0.1387, allocations: 335.5 kB / 0.6821 GB, free: 14.46 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.1387, allocations: 8.031 kB / 0.6821 GB, free: 14.45 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.073e-05/0.1388, allocations: 42.73 kB / 0.6822 GB, free: 14.4 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.867e-05/0.1388, allocations: 4.875 kB / 0.6822 GB, free: 14.4 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.168e-05/0.1389, allocations: 164.3 kB / 0.6823 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.437e-06/0.1389, allocations: 4.375 kB / 0.6823 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.082e-06/0.1389, allocations: 4.375 kB / 0.6823 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001479/0.1391, allocations: 53.8 kB / 0.6824 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.901e-06/0.1391, allocations: 0 / 0.6824 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.981e-06/0.1391, allocations: 0 / 0.6824 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.126e-06/0.1391, allocations: 0 / 0.6824 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.1392, allocations: 39.95 kB / 0.6824 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002514/0.1395, allocations: 260.8 kB / 0.6827 GB, free: 13.79 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.1396, allocations: 38.5 kB / 0.6827 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.646e-05/0.1397, allocations: 24.89 kB / 0.6827 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.1398, allocations: 81.11 kB / 0.6828 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.811e-05/0.1398, allocations: 30.56 kB / 0.6828 GB, free: 13.58 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.1398, allocations: 4 kB / 0.6828 GB, free: 13.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002966/0.1401, allocations: 85.58 kB / 0.6829 GB, free: 13.48 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.1402, allocations: 51.41 kB / 0.683 GB, free: 13.42 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.621e-05/0.1402, allocations: 101.8 kB / 0.6831 GB, free: 13.31 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.1403, allocations: 29.7 kB / 0.6831 GB, free: 13.28 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.4e-05/0.1403, allocations: 88.08 kB / 0.6832 GB, free: 13.19 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.254e-05/0.1403, allocations: 8.031 kB / 0.6832 GB, free: 13.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.823e-05/0.1403, allocations: 13.72 kB / 0.6832 GB, free: 13.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.144e-05/0.1404, allocations: 322.8 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.299e-05/0.1405, allocations: 11.98 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.834e-05/0.1406, allocations: 19.98 kB / 0.6835 GB, free: 12.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001309/0.1407, allocations: 40.88 kB / 0.6836 GB, free: 12.76 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1407, allocations: 0 / 0.6836 GB, free: 12.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001683/0.1409, allocations: 65.61 kB / 0.6836 GB, free: 12.69 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.1409, allocations: 10.19 kB / 0.6837 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.1409, allocations: 0 / 0.6837 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.141, allocations: 0 / 0.6837 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.522e-05/0.141, allocations: 7.984 kB / 0.6837 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.141, allocations: 4.031 kB / 0.6837 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.181e-05/0.1411, allocations: 7.984 kB / 0.6837 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-06/0.1411, allocations: 4 kB / 0.6837 GB, free: 12.66 MB / 494.1 MB 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 5.497e-05/0.1412, allocations: 118.4 kB / 0.6838 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.173e-05/0.1412, allocations: 3.906 kB / 0.6838 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000197/0.1414, allocations: 68.78 kB / 0.6839 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1414, allocations: 4.031 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1414, allocations: 0 / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1414, allocations: 3.984 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.1416, allocations: 169.5 kB / 0.684 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1416, allocations: 0 / 0.684 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.179e-05/0.1416, allocations: 7.984 kB / 0.684 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.1416, allocations: 0 / 0.684 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.81e-06/0.1416, allocations: 0 / 0.684 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1416, allocations: 4 kB / 0.684 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1416, allocations: 256 / 0.684 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001968/0.1418, allocations: 167.5 kB / 0.6842 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.975e-05/0.1419, allocations: 81.09 kB / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.1419, allocations: 4 kB / 0.6843 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.25e-05/0.142, allocations: 7.984 kB / 0.6843 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.542e-05/0.142, allocations: 0 / 0.6843 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.142, allocations: 4 kB / 0.6843 GB, free: 11.93 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.149e-05/0.1421, allocations: 87.3 kB / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1421, allocations: 0 / 0.6844 GB, free: 11.84 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002028/0.1423, allocations: 8 kB / 0.6844 GB, free: 11.84 MB / 494.1 MB 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.0004324/0.1427, allocations: 0.7084 MB / 0.6851 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001843/0.1429, allocations: 39.95 kB / 0.6851 GB, free: 11.06 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1429, allocations: 7.938 kB / 0.6851 GB, free: 11.05 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.373e-05/0.143, allocations: 19.92 kB / 0.6851 GB, free: 11.03 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.1433, allocations: 4 kB / 0.6851 GB, free: 11.03 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003361/0.1436, allocations: 143.4 kB / 0.6853 GB, free: 10.85 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.1438, allocations: 0.6768 MB / 0.6859 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.111e-05/0.1438, allocations: 0 / 0.6859 GB, free: 10.14 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.672e-05/0.1439, allocations: 15.44 kB / 0.686 GB, free: 10.13 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1439, allocations: 0 / 0.686 GB, free: 10.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.56/1.704, allocations: 1.275 MB / 0.6872 GB, free: 8.98 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003115/1.704, allocations: 210.9 kB / 0.6874 GB, free: 8.723 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.622/3.326, allocations: 4 kB / 0.6874 GB, free: 8.719 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothHeaviside.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)