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.001204/0.001204, allocations: 106 kB / 16.41 MB, free: 6.008 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.0012/0.0012, allocations: 185.6 kB / 17.34 MB, free: 5.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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002007/0.002007, allocations: 291.5 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8937/0.8937, allocations: 169.2 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001735, allocations: 91.84 kB / 0.6821 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4081, allocations: 86.98 MB / 0.7671 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002485/0.4106, allocations: 1.437 MB / 0.7685 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0007727/0.4114, allocations: 465.6 kB / 0.7689 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.127e-05/0.4115, allocations: 4 kB / 0.7689 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.701e-05/0.4115, allocations: 3.938 kB / 0.7689 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.852e-05/0.4116, allocations: 7.922 kB / 0.7689 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/0.4118, allocations: 19.92 kB / 0.7689 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.858e-05/0.4119, allocations: 23.92 kB / 0.769 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.427e-05/0.412, allocations: 15.92 kB / 0.769 GB, free: 1.953 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.203e-05/0.412, allocations: 7.938 kB / 0.769 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.264e-05/0.4121, allocations: 15.92 kB / 0.769 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.072e-05/0.4121, allocations: 0 / 0.769 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.593e-05/0.4122, allocations: 31.97 kB / 0.769 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.256e-05/0.4122, allocations: 4 kB / 0.769 GB, free: 1.895 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.529e-05/0.4122, allocations: 15.92 kB / 0.769 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.4123, allocations: 27.89 kB / 0.7691 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4124, allocations: 4 kB / 0.7691 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.042e-06/0.4124, allocations: 0 / 0.7691 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.4124, allocations: 0 / 0.7691 GB, free: 1.848 MB / 0.5294 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.0004188/0.4128, allocations: 347.1 kB / 0.7694 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.4128, allocations: 8.031 kB / 0.7694 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.114e-05/0.4129, allocations: 8.938 kB / 0.7694 GB, free: 1.449 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.413, allocations: 172.3 kB / 0.7696 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.413, allocations: 384 / 0.7696 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.035e-06/0.413, allocations: 384 / 0.7696 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.4132, allocations: 50 kB / 0.7696 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.4132, allocations: 0 / 0.7696 GB, free: 1.188 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.4132, allocations: 3.984 kB / 0.7696 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.4132, allocations: 4 kB / 0.7696 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.4134, allocations: 31.97 kB / 0.7697 GB, free: 1.148 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003244/0.4137, allocations: 255.4 kB / 0.7699 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.4138, allocations: 38.56 kB / 0.77 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.879e-05/0.4139, allocations: 20.91 kB / 0.77 GB, free: 0.7812 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000114/0.414, allocations: 85.09 kB / 0.7701 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.4141, allocations: 34.56 kB / 0.7701 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.4141, allocations: 0 / 0.7701 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0003304/0.4144, allocations: 85.58 kB / 0.7702 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.4145, allocations: 55.34 kB / 0.7702 GB, free: 492 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.557e-05/0.4146, allocations: 101.9 kB / 0.7703 GB, free: 380 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.4146, allocations: 33.81 kB / 0.7703 GB, free: 340 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.909e-05/0.4146, allocations: 80.14 kB / 0.7704 GB, free: 256 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.807e-05/0.4146, allocations: 7.906 kB / 0.7704 GB, free: 248 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.4147, allocations: 13.72 kB / 0.7704 GB, free: 228 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.4148, allocations: 310.8 kB / 0.7707 GB, free: 15.91 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.075e-05/0.4149, allocations: 23.97 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.76e-05/0.415, allocations: 11.98 kB / 0.7708 GB, free: 15.88 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001422/0.4151, allocations: 48.83 kB / 0.7708 GB, free: 15.82 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4152, allocations: 0 / 0.7708 GB, free: 15.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001801/0.4153, allocations: 69.59 kB / 0.7709 GB, free: 15.75 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.4154, allocations: 4 kB / 0.7709 GB, free: 15.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.4154, allocations: 3.938 kB / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.4154, allocations: 4.031 kB / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.237e-05/0.4155, allocations: 11.98 kB / 0.7709 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.4155, allocations: 0 / 0.7709 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.457e-05/0.4155, allocations: 7.906 kB / 0.7709 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.4156, allocations: 256 / 0.7709 GB, free: 15.72 MB / 0.545 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.705e-05/0.4156, allocations: 120.2 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.281e-05/0.4157, allocations: 4 kB / 0.771 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002142/0.4159, allocations: 72.72 kB / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.4159, allocations: 8 kB / 0.7711 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.4159, allocations: 0 / 0.7711 GB, free: 15.51 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4159, allocations: 3.984 kB / 0.7711 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.4161, allocations: 161.6 kB / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4161, allocations: 0 / 0.7713 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.161e-05/0.4161, allocations: 8 kB / 0.7713 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.4162, allocations: 0 / 0.7713 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.4162, allocations: 7.984 kB / 0.7713 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4162, allocations: 32 / 0.7713 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4162, allocations: 4 kB / 0.7713 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002291/0.4164, allocations: 159.5 kB / 0.7714 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.49e-05/0.4165, allocations: 77.11 kB / 0.7715 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.4165, allocations: 4 kB / 0.7715 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.798e-05/0.4165, allocations: 7.938 kB / 0.7715 GB, free: 15 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.795e-05/0.4166, allocations: 15.95 kB / 0.7715 GB, free: 14.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.4166, allocations: 0 / 0.7715 GB, free: 14.98 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.531e-05/0.4166, allocations: 79.28 kB / 0.7716 GB, free: 14.91 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4167, allocations: 0 / 0.7716 GB, free: 14.91 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002167/0.4169, allocations: 15.84 kB / 0.7716 GB, free: 14.89 MB / 0.545 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.0001369/0.417, allocations: 107.2 kB / 0.7717 GB, free: 14.77 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002058/0.4172, allocations: 39.97 kB / 0.7718 GB, free: 14.73 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4172, allocations: 0 / 0.7718 GB, free: 14.73 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.829e-05/0.4173, allocations: 15.98 kB / 0.7718 GB, free: 14.72 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.4176, allocations: 14.67 kB / 0.7718 GB, free: 14.71 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000281/0.4179, allocations: 131.2 kB / 0.7719 GB, free: 14.54 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.4182, allocations: 0.6729 MB / 0.7726 GB, free: 13.84 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.288e-05/0.4182, allocations: 15.56 kB / 0.7726 GB, free: 13.83 MB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.4182, allocations: 0 / 0.7726 GB, free: 13.83 MB / 0.545 GB Notification: Performance of Templates: time 0.001945/0.4201, allocations: 0.6611 MB / 0.7732 GB, free: 13.17 MB / 0.545 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)