Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.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.SmoothExponentialDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck",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.001261/0.001261, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.265/1.265, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00209/0.00209, allocations: 279 kB / 290.7 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9181/0.9181, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00181/0.00181, allocations: 103.2 kB / 0.5954 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1406, allocations: 86.98 MB / 0.6803 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck): time 0.001718/0.1423, allocations: 0.5918 MB / 0.6809 GB, free: 24 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003786/0.1427, allocations: 167.3 kB / 0.681 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.231e-05/0.1428, allocations: 0 / 0.681 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.324e-05/0.1428, allocations: 0 / 0.681 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.044e-05/0.1428, allocations: 3.938 kB / 0.681 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.1431, allocations: 39.89 kB / 0.6811 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.681e-05/0.1432, allocations: 15.98 kB / 0.6811 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.951e-05/0.1432, allocations: 4 kB / 0.6811 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.97e-05/0.1433, allocations: 11.92 kB / 0.6811 GB, free: 15.79 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.351e-05/0.1433, allocations: 11.98 kB / 0.6811 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.1433, allocations: 4 kB / 0.6811 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.524e-05/0.1434, allocations: 35.91 kB / 0.6812 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.25e-05/0.1434, allocations: 0 / 0.6812 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.273e-05/0.1435, allocations: 15.92 kB / 0.6812 GB, free: 15.72 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.806e-05/0.1436, allocations: 27.89 kB / 0.6812 GB, free: 15.69 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1436, allocations: 0 / 0.6812 GB, free: 15.69 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1436, allocations: 0 / 0.6812 GB, free: 15.69 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.1436, allocations: 0 / 0.6812 GB, free: 15.69 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003608/0.1439, allocations: 335.8 kB / 0.6815 GB, free: 15.31 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.144, allocations: 12.03 kB / 0.6815 GB, free: 15.3 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.144, allocations: 34.75 kB / 0.6816 GB, free: 15.26 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.56e-05/0.1441, allocations: 0.9375 kB / 0.6816 GB, free: 15.26 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.1442, allocations: 168.3 kB / 0.6817 GB, free: 15.05 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.1442, allocations: 8.375 kB / 0.6817 GB, free: 15.05 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.907e-05/0.1442, allocations: 4.281 kB / 0.6817 GB, free: 15.04 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.446e-05/0.1443, allocations: 42.25 kB / 0.6818 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-06/0.1443, allocations: 3.938 kB / 0.6818 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.1443, allocations: 0 / 0.6818 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.1443, allocations: 0 / 0.6818 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.151e-05/0.1444, allocations: 19.98 kB / 0.6818 GB, free: 14.97 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001554/0.1446, allocations: 157.7 kB / 0.682 GB, free: 14.77 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.449e-05/0.1446, allocations: 46.56 kB / 0.682 GB, free: 14.71 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.26e-05/0.1447, allocations: 16.98 kB / 0.682 GB, free: 14.7 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.609e-05/0.1448, allocations: 85.09 kB / 0.6821 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.1448, allocations: 38.55 kB / 0.6821 GB, free: 14.55 MB / 494.1 MB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.1448, allocations: 4 kB / 0.6821 GB, free: 14.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.001167/0.146, allocations: 484.2 kB / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.146, allocations: 55.41 kB / 0.6826 GB, free: 13.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.478e-05/0.1461, allocations: 93.86 kB / 0.6827 GB, free: 13.83 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.1461, allocations: 25.7 kB / 0.6828 GB, free: 13.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.409e-05/0.1462, allocations: 80.14 kB / 0.6828 GB, free: 13.71 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.886e-05/0.1462, allocations: 27.77 kB / 0.6829 GB, free: 13.69 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.439e-05/0.1462, allocations: 21.72 kB / 0.6829 GB, free: 13.66 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.662e-05/0.1463, allocations: 322.8 kB / 0.6832 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.609e-05/0.1464, allocations: 8 kB / 0.6832 GB, free: 13.33 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.359e-05/0.1464, allocations: 15.98 kB / 0.6832 GB, free: 13.31 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.28e-05/0.1465, allocations: 40.84 kB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.1465, allocations: 0 / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001027/0.1466, allocations: 73.47 kB / 0.6833 GB, free: 13.19 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.1466, allocations: 4 kB / 0.6833 GB, free: 13.19 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.1466, allocations: 8 kB / 0.6833 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.1466, allocations: 0 / 0.6833 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.246e-05/0.1467, allocations: 15.98 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.1467, allocations: 0 / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.356e-05/0.1467, allocations: 4 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1467, allocations: 0 / 0.6834 GB, free: 13.16 MB / 494.1 MB 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 (8): * Single equations (assignments): 8 * 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.465e-05/0.1468, allocations: 119.1 kB / 0.6835 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.309e-05/0.1468, allocations: 3.938 kB / 0.6835 GB, free: 13.03 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001514/0.147, allocations: 93.86 kB / 0.6836 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.147, allocations: 0 / 0.6836 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.147, allocations: 0 / 0.6836 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.147, allocations: 3.984 kB / 0.6836 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.1471, allocations: 165.8 kB / 0.6837 GB, free: 12.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.1472, allocations: 8 kB / 0.6837 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.588e-05/0.1472, allocations: 11.94 kB / 0.6837 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.1473, allocations: 4 kB / 0.6837 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-06/0.1473, allocations: 3.984 kB / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1473, allocations: 0 / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1473, allocations: 0 / 0.6838 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001604/0.1474, allocations: 117 kB / 0.6839 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.587e-05/0.1475, allocations: 88.98 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.1475, allocations: 0 / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.219e-05/0.1476, allocations: 0 / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.894e-05/0.1476, allocations: 11.98 kB / 0.684 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.1476, allocations: 4 kB / 0.684 GB, free: 12.44 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.081e-05/0.1476, allocations: 79.34 kB / 0.684 GB, free: 12.36 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1476, allocations: 0 / 0.684 GB, free: 12.36 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002123/0.1478, allocations: 28 kB / 0.6841 GB, free: 12.33 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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 (8): * Single equations (assignments): 8 * 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.0004679/0.1483, allocations: 0.6865 MB / 0.6847 GB, free: 11.62 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001059/0.1484, allocations: 39.97 kB / 0.6848 GB, free: 11.58 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1484, allocations: 4.156 kB / 0.6848 GB, free: 11.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.478e-05/0.1485, allocations: 27.92 kB / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.1486, allocations: 6.375 kB / 0.6848 GB, free: 11.54 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009577/0.1496, allocations: 1.188 MB / 0.686 GB, free: 10.27 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002093/0.1498, allocations: 0.6807 MB / 0.6866 GB, free: 9.566 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.399e-05/0.1499, allocations: 4 kB / 0.6866 GB, free: 9.562 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.41e-05/0.1499, allocations: 23.42 kB / 0.6867 GB, free: 9.539 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1499, allocations: 0 / 0.6867 GB, free: 9.539 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.1674, allocations: 1.813 MB / 0.6884 GB, free: 7.895 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.785/6.952, allocations: 9.031 kB / 0.6884 GB, free: 7.891 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothExponentialDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothExponentialDerivativeCheck.pipe 2>&1)