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: translateModel(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside") translateModel(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001783/0.001783, 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.002133/0.002133, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.422/1.422, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002571/0.002571, allocations: 294.8 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.05/1.05, allocations: 178.6 MB / 0.507 GB, free: 4.699 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002814/0.002815, allocations: 94.83 kB / 0.6059 GB, free: 25.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1971/0.1999, allocations: 89.15 MB / 0.693 GB, free: 4.688 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002798/0.2028, allocations: 1.507 MB / 0.6944 GB, free: 3.176 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007621/0.2036, allocations: 466.7 kB / 0.6949 GB, free: 2.715 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.822e-05/0.2036, allocations: 0 / 0.6949 GB, free: 2.715 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.423e-05/0.2036, allocations: 0 / 0.6949 GB, free: 2.715 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.414e-05/0.2037, allocations: 3.938 kB / 0.6949 GB, free: 2.711 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.2039, allocations: 21.27 kB / 0.6949 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.02e-05/0.204, allocations: 23.92 kB / 0.6949 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.088e-05/0.204, allocations: 7.984 kB / 0.6949 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.043e-05/0.2041, allocations: 16.58 kB / 0.695 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.379e-05/0.2041, allocations: 9.531 kB / 0.695 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.308e-06/0.2042, allocations: 0 / 0.695 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.896e-05/0.2042, allocations: 27.91 kB / 0.695 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.204e-05/0.2043, allocations: 7.938 kB / 0.695 GB, free: 2.602 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.03e-05/0.2043, allocations: 15.88 kB / 0.695 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.2044, allocations: 31.94 kB / 0.6951 GB, free: 2.555 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.2044, allocations: 0 / 0.6951 GB, free: 2.555 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2044, allocations: 0 / 0.6951 GB, free: 2.555 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.2044, allocations: 0 / 0.6951 GB, free: 2.555 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.0004431/0.2049, allocations: 347.7 kB / 0.6954 GB, free: 2.168 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.2049, allocations: 8.031 kB / 0.6954 GB, free: 2.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.638e-05/0.2049, allocations: 0.9375 kB / 0.6954 GB, free: 2.16 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.2051, allocations: 168.3 kB / 0.6956 GB, free: 1.957 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.2051, allocations: 4.375 kB / 0.6956 GB, free: 1.953 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.524e-06/0.2051, allocations: 4.312 kB / 0.6956 GB, free: 1.949 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001695/0.2053, allocations: 53.98 kB / 0.6956 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.2053, allocations: 0 / 0.6956 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.2053, allocations: 0 / 0.6956 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.2053, allocations: 4 kB / 0.6956 GB, free: 1.887 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.2055, allocations: 39.88 kB / 0.6957 GB, free: 1.848 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003251/0.2058, allocations: 256.9 kB / 0.6959 GB, free: 1.547 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001256/0.206, allocations: 38.55 kB / 0.6959 GB, free: 1.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.326e-05/0.2061, allocations: 16.91 kB / 0.696 GB, free: 1.48 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001249/0.2062, allocations: 85.11 kB / 0.696 GB, free: 1.379 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.2062, allocations: 38.55 kB / 0.6961 GB, free: 1.332 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.2062, allocations: 3.938 kB / 0.6961 GB, free: 1.328 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003304/0.2066, allocations: 73.66 kB / 0.6961 GB, free: 1.25 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.2066, allocations: 55.41 kB / 0.6962 GB, free: 1.184 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.744e-05/0.2067, allocations: 101.8 kB / 0.6963 GB, free: 1.074 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.2067, allocations: 29.7 kB / 0.6963 GB, free: 1.039 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.62e-05/0.2068, allocations: 84.27 kB / 0.6964 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.2068, allocations: 11.84 kB / 0.6964 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.442e-05/0.2069, allocations: 17.7 kB / 0.6964 GB, free: 0.918 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.207, allocations: 310.8 kB / 0.6967 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.367e-05/0.2071, allocations: 15.98 kB / 0.6967 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.077e-05/0.2072, allocations: 15.98 kB / 0.6968 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.2073, allocations: 52.75 kB / 0.6968 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.2073, allocations: 0 / 0.6968 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000187/0.2075, allocations: 61.67 kB / 0.6969 GB, free: 464 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.2076, allocations: 7.984 kB / 0.6969 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.2076, allocations: 0 / 0.6969 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.2076, allocations: 0 / 0.6969 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.836e-05/0.2077, allocations: 8 kB / 0.6969 GB, free: 448 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.2077, allocations: 4.031 kB / 0.6969 GB, free: 444 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.139e-05/0.2077, allocations: 15.89 kB / 0.6969 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.451e-06/0.2078, allocations: 256 / 0.6969 GB, free: 428 kB / 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 7.489e-05/0.2078, allocations: 117.7 kB / 0.697 GB, free: 300 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.153e-05/0.2079, allocations: 0 / 0.697 GB, free: 300 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002205/0.2081, allocations: 76.7 kB / 0.6971 GB, free: 220 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.2081, allocations: 11.97 kB / 0.6971 GB, free: 208 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2081, allocations: 4 kB / 0.6971 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.2081, allocations: 0 / 0.6971 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2083, allocations: 157.6 kB / 0.6973 GB, free: 16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2083, allocations: 0 / 0.6973 GB, free: 16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.176e-05/0.2084, allocations: 11.98 kB / 0.6973 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2084, allocations: 0 / 0.6973 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.2084, allocations: 0 / 0.6973 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2084, allocations: 0 / 0.6973 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2084, allocations: 0 / 0.6973 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.2087, allocations: 171.4 kB / 0.6974 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.035e-05/0.2087, allocations: 77.11 kB / 0.6975 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.2087, allocations: 4 kB / 0.6975 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.545e-05/0.2088, allocations: 7.984 kB / 0.6975 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.2089, allocations: 0 / 0.6975 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-06/0.2089, allocations: 4.031 kB / 0.6975 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.723e-05/0.2089, allocations: 87.27 kB / 0.6976 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.2089, allocations: 0 / 0.6976 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002223/0.2091, allocations: 11.91 kB / 0.6976 GB, free: 15.59 MB / 0.4981 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.0001393/0.2093, allocations: 99.23 kB / 0.6977 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000207/0.2095, allocations: 43.95 kB / 0.6977 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.2095, allocations: 4.062 kB / 0.6977 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.587e-05/0.2096, allocations: 23.92 kB / 0.6978 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.2099, allocations: 7.938 kB / 0.6978 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002499/0.2101, allocations: 105.6 kB / 0.6979 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.2105, allocations: 0.6768 MB / 0.6985 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.719e-05/0.2105, allocations: 4.062 kB / 0.6985 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.404e-05/0.2105, allocations: 15.44 kB / 0.6986 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of SimCode: time 2.61e-07/0.2105, allocations: 0 / 0.6986 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of Templates: time 0.002731/0.2133, allocations: 0.5112 MB / 0.6991 GB, free: 14.05 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)