Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.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.SmoothLimit,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit",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.005687/0.005687, allocations: 98.52 kB / 15.73 MB, free: 5.602 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.001345/0.001345, allocations: 194.2 kB / 16.67 MB, free: 5.523 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002467/0.002467, allocations: 281.4 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9913/0.9913, allocations: 169.2 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002639/0.002639, allocations: 95.84 kB / 0.681 GB, free: 7.469 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4091/0.4118, allocations: 86.98 MB / 0.7659 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothLimit): time 0.003282/0.4151, allocations: 1.448 MB / 0.7673 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.000958/0.4161, allocations: 0.5675 MB / 0.7679 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.663e-05/0.4161, allocations: 0 / 0.7679 GB, free: 1.848 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.961e-05/0.4162, allocations: 3.938 kB / 0.7679 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.792e-05/0.4162, allocations: 7.938 kB / 0.7679 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002677/0.4165, allocations: 55.81 kB / 0.7679 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.961e-05/0.4166, allocations: 19.92 kB / 0.768 GB, free: 1.762 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.374e-05/0.4167, allocations: 15.98 kB / 0.768 GB, free: 1.746 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 8.361e-05/0.4168, allocations: 19.88 kB / 0.768 GB, free: 1.727 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.572e-05/0.4168, allocations: 11.92 kB / 0.768 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.258e-05/0.4169, allocations: 0 / 0.768 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001247/0.417, allocations: 55.89 kB / 0.7681 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.417, allocations: 7.984 kB / 0.7681 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.806e-05/0.4171, allocations: 15.88 kB / 0.7681 GB, free: 1.637 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.4172, allocations: 67.17 kB / 0.7682 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4172, allocations: 0 / 0.7682 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of FrontEnd: time 5.861e-06/0.4173, allocations: 7.984 kB / 0.7682 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.124e-05/0.4173, allocations: 4 kB / 0.7682 GB, free: 1.566 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.0005256/0.4178, allocations: 345 kB / 0.7685 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.4179, allocations: 8.031 kB / 0.7685 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.902e-05/0.4179, allocations: 34.75 kB / 0.7685 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.57e-05/0.4179, allocations: 0.9375 kB / 0.7685 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.4181, allocations: 176.3 kB / 0.7687 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.4181, allocations: 384 / 0.7687 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.4182, allocations: 4.375 kB / 0.7687 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.4183, allocations: 49.75 kB / 0.7688 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.4183, allocations: 0 / 0.7688 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.858e-06/0.4184, allocations: 0 / 0.7688 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.4184, allocations: 4 kB / 0.7688 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.136e-05/0.4185, allocations: 15.98 kB / 0.7688 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004273/0.4189, allocations: 256.9 kB / 0.769 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.419, allocations: 38.55 kB / 0.7691 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.313e-05/0.4191, allocations: 20.86 kB / 0.7691 GB, free: 484 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008381/0.4199, allocations: 473.4 kB / 0.7695 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.42, allocations: 30.56 kB / 0.7696 GB, free: 15.88 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.282e-06/0.42, allocations: 7.938 kB / 0.7696 GB, free: 15.87 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0002499/0.4202, allocations: 61.67 kB / 0.7696 GB, free: 15.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.4203, allocations: 55.41 kB / 0.7697 GB, free: 15.74 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.385e-05/0.4204, allocations: 105.8 kB / 0.7698 GB, free: 15.62 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.4204, allocations: 25.7 kB / 0.7698 GB, free: 15.59 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.573e-05/0.4205, allocations: 92.08 kB / 0.7699 GB, free: 15.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.4205, allocations: 7.953 kB / 0.7699 GB, free: 15.49 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.642e-05/0.4205, allocations: 21.83 kB / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.4207, allocations: 318.8 kB / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.244e-05/0.4207, allocations: 7.938 kB / 0.7702 GB, free: 15.14 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.82e-05/0.4208, allocations: 15.98 kB / 0.7702 GB, free: 15.12 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.073e-05/0.4209, allocations: 24.84 kB / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4209, allocations: 0 / 0.7703 GB, free: 15.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001178/0.421, allocations: 53.75 kB / 0.7703 GB, free: 15.04 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.421, allocations: 4 kB / 0.7703 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.421, allocations: 0 / 0.7703 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.4211, allocations: 0 / 0.7703 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.429e-05/0.4211, allocations: 15.98 kB / 0.7703 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.4212, allocations: 3.938 kB / 0.7703 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.144e-05/0.4212, allocations: 0 / 0.7703 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.4212, allocations: 3.938 kB / 0.7703 GB, free: 15.01 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 8.885e-05/0.4213, allocations: 121.8 kB / 0.7705 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.4213, allocations: 0 / 0.7705 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001675/0.4215, allocations: 65.16 kB / 0.7705 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.4215, allocations: 4 kB / 0.7705 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4215, allocations: 0 / 0.7705 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.4215, allocations: 3.984 kB / 0.7705 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.4217, allocations: 157.6 kB / 0.7707 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.4217, allocations: 0 / 0.7707 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.476e-05/0.4218, allocations: 11.98 kB / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.4218, allocations: 4.031 kB / 0.7707 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.4218, allocations: 0 / 0.7707 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.4218, allocations: 0 / 0.7707 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.4218, allocations: 0 / 0.7707 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001787/0.422, allocations: 151.4 kB / 0.7708 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.603e-05/0.422, allocations: 85.09 kB / 0.7709 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.422, allocations: 3.938 kB / 0.7709 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.661e-05/0.4221, allocations: 4.031 kB / 0.7709 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.483e-05/0.4221, allocations: 4 kB / 0.7709 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.4222, allocations: 0 / 0.7709 GB, free: 14.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.627e-05/0.4222, allocations: 91.27 kB / 0.771 GB, free: 14.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4222, allocations: 0 / 0.771 GB, free: 14.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002327/0.4225, allocations: 19.89 kB / 0.771 GB, free: 14.2 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.0005321/0.423, allocations: 0.7006 MB / 0.7717 GB, free: 13.47 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001361/0.4231, allocations: 23.98 kB / 0.7717 GB, free: 13.45 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.4232, allocations: 0 / 0.7717 GB, free: 13.45 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 4.457e-05/0.4232, allocations: 12 kB / 0.7718 GB, free: 13.43 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.4234, allocations: 3.938 kB / 0.7718 GB, free: 13.43 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000434/0.4239, allocations: 172.3 kB / 0.7719 GB, free: 13.22 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.4242, allocations: 0.6806 MB / 0.7726 GB, free: 12.51 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.751e-05/0.4242, allocations: 4.547 kB / 0.7726 GB, free: 12.51 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.115e-05/0.4242, allocations: 7.438 kB / 0.7726 GB, free: 12.5 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.4242, allocations: 0 / 0.7726 GB, free: 12.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02074/0.445, allocations: 1.635 MB / 0.7742 GB, free: 10.96 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.819/8.264, allocations: 10 kB / 0.7742 GB, free: 10.96 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)