Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.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.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",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.008683/0.008683, allocations: 98.64 kB / 15.73 MB, free: 6.449 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.00134/0.001341, allocations: 197.7 kB / 16.68 MB, free: 6.348 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002442/0.002442, allocations: 286.7 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.07/1.07, allocations: 178.6 MB / 0.5074 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002654/0.002654, allocations: 103.8 kB / 0.6943 GB, free: 3.574 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5166/0.5193, allocations: 89.13 MB / 0.7813 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003205/0.5225, allocations: 1.847 MB / 0.7831 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001005/0.5235, allocations: 0.5383 MB / 0.7837 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.386e-05/0.5236, allocations: 6.75 kB / 0.7837 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.5238, allocations: 26.05 kB / 0.7837 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.062e-05/0.5239, allocations: 20.84 kB / 0.7837 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002304/0.5241, allocations: 74.23 kB / 0.7838 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002386/0.5244, allocations: 172.6 kB / 0.784 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.5245, allocations: 49.3 kB / 0.784 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.437e-05/0.5246, allocations: 60.31 kB / 0.7841 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.281e-05/0.5247, allocations: 57.8 kB / 0.7841 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.571e-05/0.5248, allocations: 9.219 kB / 0.7841 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 2.204e-05/0.5248, allocations: 11.03 kB / 0.7841 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.94e-05/0.5248, allocations: 26.22 kB / 0.7842 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.801e-05/0.5249, allocations: 64.62 kB / 0.7842 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002212/0.5251, allocations: 147.9 kB / 0.7844 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.5251, allocations: 0 / 0.7844 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.953e-06/0.5252, allocations: 4.688 kB / 0.7844 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.5252, allocations: 0 / 0.7844 GB, free: 11.66 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000764/0.5259, allocations: 477.1 kB / 0.7848 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.526, allocations: 9.75 kB / 0.7848 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.874e-05/0.5261, allocations: 46.17 kB / 0.7849 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.868e-05/0.5262, allocations: 22.28 kB / 0.7849 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.5266, allocations: 232.9 kB / 0.7851 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.5266, allocations: 8.828 kB / 0.7851 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.476e-05/0.5267, allocations: 13.95 kB / 0.7851 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000462/0.5272, allocations: 150.7 kB / 0.7853 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.5272, allocations: 0 / 0.7853 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.161e-05/0.5272, allocations: 5.984 kB / 0.7853 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.5273, allocations: 2.5 kB / 0.7853 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003668/0.5276, allocations: 72.53 kB / 0.7854 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.5291, allocations: 0.7374 MB / 0.7861 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002305/0.5293, allocations: 49.69 kB / 0.7861 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.5295, allocations: 34.55 kB / 0.7862 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.697e-05/0.5295, allocations: 1.375 kB / 0.7862 GB, free: 10.09 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000377/0.5299, allocations: 127.1 kB / 0.7863 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 2.113e-06/0.5299, allocations: 0 / 0.7863 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0007728/0.5307, allocations: 169.1 kB / 0.7864 GB, free: 9.918 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.5309, allocations: 135.5 kB / 0.7866 GB, free: 9.758 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.5312, allocations: 199.5 kB / 0.7868 GB, free: 9.625 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.33e-05/0.5313, allocations: 31.64 kB / 0.7868 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.5314, allocations: 133.9 kB / 0.7869 GB, free: 9.469 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.496e-05/0.5315, allocations: 39.28 kB / 0.787 GB, free: 9.438 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.957e-05/0.5316, allocations: 44.08 kB / 0.787 GB, free: 9.406 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.5318, allocations: 325.6 kB / 0.7873 GB, free: 9.09 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.532, allocations: 42 kB / 0.7874 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.5322, allocations: 148.9 kB / 0.7875 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.5327, allocations: 205.4 kB / 0.7877 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.5327, allocations: 2.25 kB / 0.7877 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006109/0.5333, allocations: 211.4 kB / 0.7879 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.5334, allocations: 8.203 kB / 0.7879 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.5334, allocations: 4.594 kB / 0.7879 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/0.5334, allocations: 8.25 kB / 0.7879 GB, free: 8.629 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.5336, allocations: 34.38 kB / 0.7879 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.694e-05/0.5336, allocations: 9.344 kB / 0.788 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.5339, allocations: 27.52 kB / 0.788 GB, free: 8.609 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.163e-05/0.5339, allocations: 10.48 kB / 0.788 GB, free: 8.609 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001833/0.5341, allocations: 141.3 kB / 0.7881 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.243e-05/0.5342, allocations: 18.52 kB / 0.7881 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.544e-05/0.5342, allocations: 29.19 kB / 0.7882 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.5342, allocations: 2.312 kB / 0.7882 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.5343, allocations: 1.188 kB / 0.7882 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.5343, allocations: 1.438 kB / 0.7882 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008949/0.5352, allocations: 0.5142 MB / 0.7887 GB, free: 8.016 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5352, allocations: 1.312 kB / 0.7887 GB, free: 8.016 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.5353, allocations: 20.12 kB / 0.7887 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.5353, allocations: 1.438 kB / 0.7887 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.5354, allocations: 2.047 kB / 0.7887 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.035e-06/0.5354, allocations: 10.81 kB / 0.7887 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5354, allocations: 0.8438 kB / 0.7887 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005786/0.536, allocations: 365.3 kB / 0.7891 GB, free: 7.727 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.193e-05/0.536, allocations: 91.39 kB / 0.7891 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.216e-05/0.5361, allocations: 3.047 kB / 0.7892 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.5363, allocations: 23.62 kB / 0.7892 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.24e-05/0.5363, allocations: 11.03 kB / 0.7892 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.5363, allocations: 3.359 kB / 0.7892 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001358/0.5365, allocations: 146 kB / 0.7893 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5365, allocations: 0 / 0.7893 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003534/0.5368, allocations: 28.59 kB / 0.7894 GB, free: 7.512 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001187/0.538, allocations: 0.8981 MB / 0.7902 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005327/0.5386, allocations: 121.5 kB / 0.7903 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.5386, allocations: 0 / 0.7903 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.5388, allocations: 48.73 kB / 0.7904 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000899/0.5398, allocations: 64.33 kB / 0.7905 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004266/0.544, allocations: 2.272 MB / 0.7927 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.5445, allocations: 0.7204 MB / 0.7934 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000151/0.5447, allocations: 25.11 kB / 0.7934 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.5448, allocations: 48.94 kB / 0.7934 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of SimCode: time 8.72e-07/0.5449, allocations: 1.406 kB / 0.7935 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03203/0.5769, allocations: 4.04 MB / 0.7974 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/8.497, allocations: 13.02 kB / 0.7974 GB, free: 2.984 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset_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_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)