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.005594/0.005594, allocations: 98.97 kB / 15.73 MB, free: 6.016 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.001338/0.001338, allocations: 200.8 kB / 16.68 MB, free: 5.93 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.279/1.279, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002071/0.002071, allocations: 291.3 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9/0.9, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 91.86 kB / 0.6815 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.3888, allocations: 86.98 MB / 0.7664 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothHeaviside): time 0.002208/0.3911, allocations: 1.437 MB / 0.7678 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0006628/0.3917, allocations: 473.5 kB / 0.7682 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.674e-05/0.3918, allocations: 0 / 0.7682 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.516e-05/0.3918, allocations: 3.938 kB / 0.7683 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.943e-05/0.3919, allocations: 11.92 kB / 0.7683 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001676/0.392, allocations: 15.98 kB / 0.7683 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.377e-05/0.3921, allocations: 27.86 kB / 0.7683 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 7.497e-05/0.3922, allocations: 4 kB / 0.7683 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.423e-05/0.3923, allocations: 15.92 kB / 0.7683 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.447e-05/0.3923, allocations: 11.94 kB / 0.7683 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.748e-06/0.3923, allocations: 0 / 0.7683 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.635e-05/0.3924, allocations: 31.95 kB / 0.7684 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.478e-06/0.3924, allocations: 0 / 0.7684 GB, free: 1.754 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.146e-05/0.3924, allocations: 15.94 kB / 0.7684 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.942e-05/0.3925, allocations: 35.69 kB / 0.7684 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.3925, allocations: 0 / 0.7684 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3925, allocations: 0 / 0.7684 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.887e-06/0.3925, allocations: 0 / 0.7684 GB, free: 1.707 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.0003666/0.3929, allocations: 345.3 kB / 0.7687 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 2.832e-05/0.393, allocations: 8.031 kB / 0.7688 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.504e-05/0.393, allocations: 0.9375 kB / 0.7688 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.3931, allocations: 180.2 kB / 0.7689 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.396e-06/0.3931, allocations: 4.375 kB / 0.7689 GB, free: 1.102 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.326e-06/0.3931, allocations: 4.375 kB / 0.7689 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.3933, allocations: 53.98 kB / 0.769 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.3933, allocations: 0 / 0.769 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-06/0.3933, allocations: 0 / 0.769 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.3933, allocations: 4 kB / 0.769 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001572/0.3935, allocations: 31.95 kB / 0.769 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002642/0.3937, allocations: 256.9 kB / 0.7693 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/0.3939, allocations: 42.55 kB / 0.7693 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.871e-05/0.394, allocations: 16.91 kB / 0.7693 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001087/0.3941, allocations: 81.11 kB / 0.7694 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.3941, allocations: 38.56 kB / 0.7694 GB, free: 500 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.3941, allocations: 0 / 0.7694 GB, free: 500 kB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0003268/0.3944, allocations: 81.58 kB / 0.7695 GB, free: 412 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.3945, allocations: 55.34 kB / 0.7696 GB, free: 344 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.318e-05/0.3946, allocations: 105.8 kB / 0.7697 GB, free: 228 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.3946, allocations: 25.7 kB / 0.7697 GB, free: 196 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.268e-05/0.3946, allocations: 92.22 kB / 0.7698 GB, free: 100 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.3946, allocations: 4 kB / 0.7698 GB, free: 96 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.3947, allocations: 13.7 kB / 0.7698 GB, free: 76 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3948, allocations: 314.8 kB / 0.7701 GB, free: 15.76 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.177e-05/0.3949, allocations: 19.92 kB / 0.7701 GB, free: 15.74 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.166e-05/0.3949, allocations: 15.98 kB / 0.7701 GB, free: 15.72 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.3951, allocations: 48.81 kB / 0.7702 GB, free: 15.67 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3951, allocations: 0 / 0.7702 GB, free: 15.67 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000186/0.3953, allocations: 69.56 kB / 0.7702 GB, free: 15.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.3953, allocations: 7.984 kB / 0.7703 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-06/0.3953, allocations: 0 / 0.7703 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.736e-06/0.3953, allocations: 0 / 0.7703 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.55e-05/0.3954, allocations: 8 kB / 0.7703 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.337e-06/0.3954, allocations: 4.031 kB / 0.7703 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.587e-05/0.3955, allocations: 7.984 kB / 0.7703 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.3955, allocations: 4 kB / 0.7703 GB, free: 15.57 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 6.382e-05/0.3956, allocations: 109.8 kB / 0.7704 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.223e-05/0.3956, allocations: 4 kB / 0.7704 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002127/0.3958, allocations: 72.77 kB / 0.7705 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.3958, allocations: 11.97 kB / 0.7705 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.3958, allocations: 0 / 0.7705 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.3958, allocations: 0 / 0.7705 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.396, allocations: 157.6 kB / 0.7706 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.396, allocations: 0 / 0.7706 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.736e-05/0.3961, allocations: 11.98 kB / 0.7706 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3961, allocations: 0 / 0.7706 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.3961, allocations: 256 / 0.7706 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3961, allocations: 0 / 0.7706 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3961, allocations: 4 kB / 0.7706 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002273/0.3963, allocations: 175.4 kB / 0.7708 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 2.978e-05/0.3964, allocations: 77.11 kB / 0.7709 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.3964, allocations: 4 kB / 0.7709 GB, free: 14.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.258e-05/0.3965, allocations: 7.922 kB / 0.7709 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.582e-05/0.3965, allocations: 4 kB / 0.7709 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.3965, allocations: 0 / 0.7709 GB, free: 14.84 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.47e-05/0.3965, allocations: 91.3 kB / 0.771 GB, free: 14.75 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3965, allocations: 3.938 kB / 0.771 GB, free: 14.75 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002181/0.3968, allocations: 11.94 kB / 0.771 GB, free: 14.74 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.0001098/0.3969, allocations: 95.25 kB / 0.7711 GB, free: 14.63 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001945/0.3971, allocations: 39.95 kB / 0.7711 GB, free: 14.59 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3971, allocations: 64 / 0.7711 GB, free: 14.59 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.238e-05/0.3972, allocations: 23.98 kB / 0.7711 GB, free: 14.57 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.3974, allocations: 9.906 kB / 0.7711 GB, free: 14.56 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000219/0.3977, allocations: 101.6 kB / 0.7712 GB, free: 14.43 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002186/0.3979, allocations: 0.6806 MB / 0.7719 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.19e-05/0.3979, allocations: 0 / 0.7719 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.714e-05/0.3979, allocations: 7.5 kB / 0.7719 GB, free: 13.72 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.398, allocations: 8 kB / 0.7719 GB, free: 13.71 MB / 0.545 GB Notification: Performance of Templates: time 0.002328/0.4003, allocations: 0.5631 MB / 0.7725 GB, free: 13.15 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)