Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.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.Splice,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Splice,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice",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.005486/0.005486, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.00129/0.00129, allocations: 193.9 kB / 16.67 MB, free: 5.969 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002672/0.002672, allocations: 287.1 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.06/1.06, allocations: 178.6 MB / 0.5074 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00264/0.00264, allocations: 87.86 kB / 0.6943 GB, free: 3.609 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5267/0.5294, allocations: 89.14 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Splice): time 0.003095/0.5325, allocations: 1.516 MB / 0.7828 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.5338, allocations: 0.6389 MB / 0.7834 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.538e-05/0.5338, allocations: 0 / 0.7834 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.097e-05/0.5339, allocations: 6.688 kB / 0.7835 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.781e-05/0.534, allocations: 3.938 kB / 0.7835 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000408/0.5344, allocations: 82.5 kB / 0.7835 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.64e-05/0.5345, allocations: 47.45 kB / 0.7836 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.5346, allocations: 12.52 kB / 0.7836 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.113e-05/0.5347, allocations: 16.38 kB / 0.7836 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.546e-05/0.5348, allocations: 15.7 kB / 0.7836 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.5348, allocations: 4.125 kB / 0.7836 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002236/0.535, allocations: 98.22 kB / 0.7837 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.838e-05/0.5351, allocations: 10.56 kB / 0.7837 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.477e-05/0.5351, allocations: 17.92 kB / 0.7837 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.5353, allocations: 94.53 kB / 0.7838 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.5353, allocations: 0.6562 kB / 0.7838 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.195e-06/0.5353, allocations: 0 / 0.7838 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.5353, allocations: 0 / 0.7838 GB, free: 12.17 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005363/0.5359, allocations: 370 kB / 0.7842 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.5359, allocations: 9.297 kB / 0.7842 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.077e-05/0.536, allocations: 32.84 kB / 0.7842 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.698e-05/0.536, allocations: 3.75 kB / 0.7842 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.5362, allocations: 168.8 kB / 0.7844 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.5362, allocations: 5.844 kB / 0.7844 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.5362, allocations: 6.75 kB / 0.7844 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.5364, allocations: 53.03 kB / 0.7845 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.5364, allocations: 0 / 0.7845 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.5364, allocations: 5.156 kB / 0.7845 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.5364, allocations: 1.25 kB / 0.7845 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001062/0.5365, allocations: 27.39 kB / 0.7845 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004363/0.537, allocations: 288.5 kB / 0.7848 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 9.856e-05/0.5371, allocations: 30.7 kB / 0.7848 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.318e-05/0.5372, allocations: 20.22 kB / 0.7848 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005758/0.5377, allocations: 0.5601 MB / 0.7854 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.5378, allocations: 36.41 kB / 0.7854 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 3.827e-06/0.5378, allocations: 3.984 kB / 0.7854 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0002764/0.5381, allocations: 70.3 kB / 0.7855 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.5381, allocations: 52.75 kB / 0.7855 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.5382, allocations: 119.8 kB / 0.7856 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.5383, allocations: 25.7 kB / 0.7857 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.251e-05/0.5383, allocations: 88.8 kB / 0.7857 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.5384, allocations: 13.67 kB / 0.7858 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.5384, allocations: 12.19 kB / 0.7858 GB, free: 10.08 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001888/0.5386, allocations: 323.4 kB / 0.7861 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.477e-05/0.5386, allocations: 7.297 kB / 0.7861 GB, free: 9.762 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.61e-05/0.5387, allocations: 11.73 kB / 0.7861 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.501e-05/0.5388, allocations: 29.16 kB / 0.7861 GB, free: 9.742 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.5388, allocations: 4.062 kB / 0.7861 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001303/0.5389, allocations: 56.34 kB / 0.7862 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.539, allocations: 5.344 kB / 0.7862 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.539, allocations: 0.7969 kB / 0.7862 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.539, allocations: 5.438 kB / 0.7862 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.2e-05/0.5391, allocations: 5.469 kB / 0.7862 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.5391, allocations: 0 / 0.7862 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.284e-05/0.5391, allocations: 4.109 kB / 0.7862 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.5391, allocations: 5.094 kB / 0.7862 GB, free: 9.691 MB / 0.5606 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 9.336e-05/0.5392, allocations: 121.1 kB / 0.7863 GB, free: 9.566 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.5393, allocations: 2.688 kB / 0.7863 GB, free: 9.566 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001747/0.5394, allocations: 57.48 kB / 0.7864 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.5395, allocations: 1.438 kB / 0.7864 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.5395, allocations: 0 / 0.7864 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.5395, allocations: 0 / 0.7864 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.5397, allocations: 178 kB / 0.7865 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.5397, allocations: 0.6094 kB / 0.7865 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.82e-05/0.5397, allocations: 9.422 kB / 0.7866 GB, free: 9.316 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.5397, allocations: 5.344 kB / 0.7866 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.5398, allocations: 0.6562 kB / 0.7866 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.5398, allocations: 1.188 kB / 0.7866 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5398, allocations: 0.7031 kB / 0.7866 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.54, allocations: 155.4 kB / 0.7867 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.883e-05/0.54, allocations: 84.06 kB / 0.7868 GB, free: 9.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.54, allocations: 4.609 kB / 0.7868 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.027e-05/0.5401, allocations: 2.594 kB / 0.7868 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.909e-05/0.5401, allocations: 3 kB / 0.7868 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-06/0.5402, allocations: 0.75 kB / 0.7868 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.867e-05/0.5402, allocations: 102.4 kB / 0.7869 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5402, allocations: 0 / 0.7869 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002229/0.5405, allocations: 9.547 kB / 0.7869 GB, free: 8.98 MB / 0.5606 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.000566/0.541, allocations: 0.6965 MB / 0.7876 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001483/0.5412, allocations: 22.08 kB / 0.7876 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.5412, allocations: 1.156 kB / 0.7876 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.438e-05/0.5413, allocations: 10.72 kB / 0.7876 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002138/0.5415, allocations: 13.2 kB / 0.7876 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.5431, allocations: 1.31 MB / 0.7889 GB, free: 7.07 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.5435, allocations: 0.6811 MB / 0.7896 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.862e-05/0.5435, allocations: 2.797 kB / 0.7896 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.506e-05/0.5436, allocations: 14.69 kB / 0.7896 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.5436, allocations: 0.8438 kB / 0.7896 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.5662, allocations: 1.524 MB / 0.7911 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.861/8.427, allocations: 11.75 kB / 0.7911 GB, free: 5.957 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe 2>&1)