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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.9101/0.9101, allocations: 141.8 MB / 149.3 MB, free: 9.172 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001643/0.001644, allocations: 176.8 kB / 182.2 MB, free: 9.434 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.692/1.692, allocations: 221.5 MB / 436.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 96.06 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002213/0.002213, allocations: 280.4 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 3.042e-05/3.065e-05, allocations: 7.984 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5333/0.5333, allocations: 82.78 MB / 0.7575 GB, free: 31.9 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1683/0.7018, allocations: 108.6 MB / 0.8636 GB, free: 3.109 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003106/0.7021, allocations: 71.95 kB / 0.8636 GB, free: 3.039 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.004532/0.7067, allocations: 1.424 MB / 0.865 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.302e-06/0.7068, allocations: 0 / 0.865 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.7068, allocations: 0 / 0.865 GB, free: 1.613 MB / 0.5261 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.0003678/0.7072, allocations: 350.4 kB / 0.8654 GB, free: 1.227 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.7072, allocations: 8.031 kB / 0.8654 GB, free: 1.219 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.289e-05/0.7073, allocations: 7.844 kB / 0.8654 GB, free: 1.211 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.7074, allocations: 171 kB / 0.8655 GB, free: 1.004 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.7074, allocations: 7.953 kB / 0.8655 GB, free: 0.9961 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.7074, allocations: 0 / 0.8655 GB, free: 0.9961 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.651e-05/0.7075, allocations: 12 kB / 0.8656 GB, free: 0.9844 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.644e-05/0.7076, allocations: 33.69 kB / 0.8656 GB, free: 0.9453 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.7076, allocations: 0 / 0.8656 GB, free: 0.9453 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.7076, allocations: 4 kB / 0.8656 GB, free: 0.9414 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.351e-06/0.7077, allocations: 4 kB / 0.8656 GB, free: 0.9375 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003561/0.708, allocations: 233.4 kB / 0.8658 GB, free: 0.6719 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 5.909e-05/0.7081, allocations: 30.52 kB / 0.8658 GB, free: 0.6328 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.789e-05/0.7081, allocations: 12.91 kB / 0.8659 GB, free: 0.6172 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006708/0.7088, allocations: 469.5 kB / 0.8663 GB, free: 68 kB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.7088, allocations: 30.56 kB / 0.8663 GB, free: 28 kB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.7089, allocations: 0 / 0.8663 GB, free: 28 kB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.003278/0.7121, allocations: 0.5518 MB / 0.8669 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.7122, allocations: 55.39 kB / 0.8669 GB, free: 15.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.083e-05/0.7123, allocations: 100.9 kB / 0.867 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.7123, allocations: 29.73 kB / 0.8671 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.119e-05/0.7124, allocations: 88.14 kB / 0.8671 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.7124, allocations: 7.844 kB / 0.8671 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-06/0.7124, allocations: 0 / 0.8671 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.7126, allocations: 314.8 kB / 0.8674 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.876e-05/0.7126, allocations: 8 kB / 0.8675 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.7e-05/0.7126, allocations: 4 kB / 0.8675 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003004/0.7156, allocations: 0.5074 MB / 0.868 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.7157, allocations: 0 / 0.868 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.003063/0.7187, allocations: 0.5596 MB / 0.8685 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.7188, allocations: 4 kB / 0.8685 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.7188, allocations: 0 / 0.8685 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.7188, allocations: 0 / 0.8685 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.508e-05/0.7189, allocations: 8 kB / 0.8685 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.7189, allocations: 0 / 0.8685 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.659e-05/0.719, allocations: 3.984 kB / 0.8685 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.719, allocations: 8.031 kB / 0.8685 GB, free: 13.74 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001005/0.7191, allocations: 105 kB / 0.8686 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003055/0.7221, allocations: 0.5517 MB / 0.8692 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.2e-05/0.7222, allocations: 11.97 kB / 0.8692 GB, free: 13.06 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003133/0.7253, allocations: 0.5519 MB / 0.8697 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.7253, allocations: 0 / 0.8697 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.7254, allocations: 0 / 0.8697 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.7254, allocations: 4.031 kB / 0.8697 GB, free: 12.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001932/0.7256, allocations: 142.2 kB / 0.8699 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.7256, allocations: 0 / 0.8699 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.267e-05/0.7256, allocations: 7.984 kB / 0.8699 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.7257, allocations: 0 / 0.8699 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.7257, allocations: 4 kB / 0.8699 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.7257, allocations: 3.938 kB / 0.8699 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.7257, allocations: 0 / 0.8699 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.7288, allocations: 0.6435 MB / 0.8705 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.998e-05/0.7289, allocations: 85.06 kB / 0.8706 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.544e-05/0.7289, allocations: 0 / 0.8706 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.194e-05/0.729, allocations: 12.02 kB / 0.8706 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.368e-05/0.729, allocations: 4 kB / 0.8706 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.729, allocations: 0 / 0.8706 GB, free: 11.53 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.594e-05/0.7291, allocations: 83.28 kB / 0.8707 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7291, allocations: 0 / 0.8707 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002442/0.7293, allocations: 27.92 kB / 0.8707 GB, free: 11.42 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003549/0.7329, allocations: 1.196 MB / 0.8719 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.696e-05/0.733, allocations: 12 kB / 0.8719 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.733, allocations: 4.094 kB / 0.8719 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 1.957e-05/0.7331, allocations: 7.984 kB / 0.8719 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001527/0.7332, allocations: 3.938 kB / 0.8719 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003918/0.7336, allocations: 107.5 kB / 0.872 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003611/0.734, allocations: 0.6845 MB / 0.8727 GB, free: 9.316 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.357e-05/0.734, allocations: 7.984 kB / 0.8727 GB, free: 9.309 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.468e-05/0.7341, allocations: 11.44 kB / 0.8727 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of SimCode: time 2.3e-07/0.7341, allocations: 0 / 0.8727 GB, free: 9.297 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02415/0.7582, allocations: 1.048 MB / 0.8737 GB, free: 8.262 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002435/0.7586, allocations: 140.2 kB / 0.8738 GB, free: 8.074 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/2.44, allocations: 0 / 0.8738 GB, free: 8.074 MB / 0.5417 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothLimit.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)