Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.005007/0.005007, allocations: 99.41 kB / 15.73 MB, free: 6.004 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.001289/0.001289, allocations: 191.7 kB / 16.67 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.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002618/0.002619, allocations: 279.5 kB / 290.8 MB, free: 14.42 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.044/1.044, allocations: 169.3 MB / 0.4983 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003186/0.003187, allocations: 91.86 kB / 0.681 GB, free: 7.426 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4609/0.4641, allocations: 86.99 MB / 0.766 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001682/0.4658, allocations: 0.5783 MB / 0.7665 GB, free: 3.258 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.4672, allocations: 1.112 MB / 0.7676 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.915e-05/0.4673, allocations: 0 / 0.7676 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.677e-05/0.4673, allocations: 0 / 0.7676 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.000235/0.4675, allocations: 19.92 kB / 0.7676 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 3.366e-06/0.4676, allocations: 0 / 0.7676 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 4.058e-05/0.4676, allocations: 7.922 kB / 0.7676 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.26e-05/0.4676, allocations: 0 / 0.7676 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.765e-05/0.4677, allocations: 11.94 kB / 0.7676 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 2.3e-05/0.4677, allocations: 4 kB / 0.7677 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.883e-06/0.4677, allocations: 0 / 0.7677 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.4678, allocations: 19.97 kB / 0.7677 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.805e-06/0.4679, allocations: 7.875 kB / 0.7677 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 1.32e-05/0.4679, allocations: 0 / 0.7677 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.112e-05/0.468, allocations: 19.72 kB / 0.7677 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.468, allocations: 0 / 0.7677 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.252e-06/0.468, allocations: 0 / 0.7677 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.468, allocations: 0 / 0.7677 GB, free: 2.043 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.0003286/0.4683, allocations: 323.1 kB / 0.768 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.4684, allocations: 12.03 kB / 0.768 GB, free: 1.672 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.418e-05/0.4684, allocations: 30.75 kB / 0.768 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.46e-05/0.4684, allocations: 4.938 kB / 0.768 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.4686, allocations: 164.4 kB / 0.7682 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-06/0.4686, allocations: 384 / 0.7682 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.4686, allocations: 8.375 kB / 0.7682 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.4687, allocations: 37.77 kB / 0.7683 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.4687, allocations: 3.953 kB / 0.7683 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.176e-06/0.4687, allocations: 0 / 0.7683 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.4687, allocations: 4 kB / 0.7683 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.784e-05/0.4688, allocations: 11.98 kB / 0.7683 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/0.469, allocations: 145.7 kB / 0.7684 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001752/0.4691, allocations: 34.61 kB / 0.7684 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.639e-05/0.4692, allocations: 4.859 kB / 0.7684 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001608/0.4693, allocations: 89.17 kB / 0.7685 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.4694, allocations: 50.44 kB / 0.7686 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.4694, allocations: 0 / 0.7686 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of matching and sorting (n=5): time 0.004357/0.4738, allocations: 0.5638 MB / 0.7691 GB, free: 392 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.4738, allocations: 51.41 kB / 0.7692 GB, free: 328 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.875e-05/0.4739, allocations: 89.86 kB / 0.7693 GB, free: 228 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.4739, allocations: 29.64 kB / 0.7693 GB, free: 192 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.487e-05/0.4739, allocations: 80.14 kB / 0.7694 GB, free: 108 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.454e-05/0.474, allocations: 29.53 kB / 0.7694 GB, free: 80 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.4741, allocations: 13.72 kB / 0.7694 GB, free: 60 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.4742, allocations: 314.8 kB / 0.7697 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006052/0.4748, allocations: 83.95 kB / 0.7698 GB, free: 15.66 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005978/0.4754, allocations: 104.3 kB / 0.7699 GB, free: 15.55 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.4766, allocations: 194.4 kB / 0.7701 GB, free: 15.35 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.4766, allocations: 0 / 0.7701 GB, free: 15.35 MB / 0.545 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001266/0.4779, allocations: 217.5 kB / 0.7703 GB, free: 15.13 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.4779, allocations: 4 kB / 0.7703 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.4779, allocations: 0 / 0.7703 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.478, allocations: 4.422 kB / 0.7703 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004044/0.4784, allocations: 48 kB / 0.7703 GB, free: 15.08 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.4784, allocations: 7.922 kB / 0.7703 GB, free: 15.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003509/0.4787, allocations: 39.98 kB / 0.7704 GB, free: 15.03 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.4788, allocations: 4 kB / 0.7704 GB, free: 15.03 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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 9.753e-05/0.4789, allocations: 112.2 kB / 0.7705 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.535e-05/0.4789, allocations: 7.938 kB / 0.7705 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.4802, allocations: 245 kB / 0.7707 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.4803, allocations: 0 / 0.7707 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.4803, allocations: 0 / 0.7707 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.4803, allocations: 0 / 0.7707 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.4818, allocations: 462.6 kB / 0.7712 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.4818, allocations: 4 kB / 0.7712 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003767/0.4822, allocations: 47.97 kB / 0.7712 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.4822, allocations: 0 / 0.7712 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.4822, allocations: 0 / 0.7712 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.4822, allocations: 4 kB / 0.7712 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4822, allocations: 0 / 0.7712 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.4835, allocations: 311.3 kB / 0.7715 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.249e-05/0.4836, allocations: 81.05 kB / 0.7716 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.4836, allocations: 4 kB / 0.7716 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/0.484, allocations: 39.97 kB / 0.7716 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.373e-05/0.484, allocations: 4 kB / 0.7716 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.484, allocations: 0 / 0.7716 GB, free: 13.63 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.868e-05/0.4841, allocations: 83.22 kB / 0.7717 GB, free: 13.55 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4841, allocations: 0 / 0.7717 GB, free: 13.55 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003465/0.4844, allocations: 16 kB / 0.7717 GB, free: 13.53 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 (5): * Single equations (assignments): 5 * 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.0017/0.4861, allocations: 0.8374 MB / 0.7726 GB, free: 12.66 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001248/0.4874, allocations: 175.9 kB / 0.7727 GB, free: 12.49 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.4874, allocations: 8 kB / 0.7727 GB, free: 12.48 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000571/0.488, allocations: 88.08 kB / 0.7728 GB, free: 12.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.4883, allocations: 4.75 kB / 0.7728 GB, free: 12.39 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.4897, allocations: 246.5 kB / 0.7731 GB, free: 12.11 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.49, allocations: 0.6806 MB / 0.7737 GB, free: 11.41 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001629/0.4902, allocations: 27.98 kB / 0.7738 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.188e-05/0.4903, allocations: 11.44 kB / 0.7738 GB, free: 11.37 MB / 0.545 GB Notification: Performance of SimCode: time 2.51e-07/0.4903, allocations: 0 / 0.7738 GB, free: 11.37 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.5138, allocations: 1.657 MB / 0.7754 GB, free: 9.867 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.282/9.795, allocations: 7.609 kB / 0.7754 GB, free: 9.859 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)