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.001353/0.001353, allocations: 108 kB / 15.6 MB, free: 132 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.001595/0.001595, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.322/1.322, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0021/0.0021, allocations: 279.1 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.957/0.957, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 95.75 kB / 0.5953 GB, free: 27.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1688/0.1704, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.004978/0.1755, allocations: 1.823 MB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.1768, allocations: 0.5437 MB / 0.6826 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.177, allocations: 8.594 kB / 0.6826 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.1771, allocations: 23.67 kB / 0.6826 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.1773, allocations: 33.22 kB / 0.6827 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.1775, allocations: 64.86 kB / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000268/0.1778, allocations: 163.5 kB / 0.6829 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.178, allocations: 67.44 kB / 0.6829 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.1781, allocations: 55.72 kB / 0.683 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.922e-05/0.1782, allocations: 59.64 kB / 0.6831 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.046e-05/0.1783, allocations: 8 kB / 0.6831 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.652e-05/0.1783, allocations: 12 kB / 0.6831 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.268e-05/0.1783, allocations: 31.84 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.573e-05/0.1784, allocations: 63.61 kB / 0.6832 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.1786, allocations: 115.5 kB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1786, allocations: 4 kB / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1786, allocations: 0 / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1786, allocations: 0 / 0.6833 GB, free: 13.52 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008042/0.1795, allocations: 480.6 kB / 0.6837 GB, free: 13.01 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.1795, allocations: 12.03 kB / 0.6837 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.917e-05/0.1796, allocations: 54.61 kB / 0.6838 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.503e-05/0.1796, allocations: 16.75 kB / 0.6838 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.18, allocations: 224 kB / 0.684 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.18, allocations: 8.375 kB / 0.684 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.003e-05/0.18, allocations: 12.38 kB / 0.684 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003875/0.1804, allocations: 156.2 kB / 0.6842 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1805, allocations: 0 / 0.6842 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.1805, allocations: 11.98 kB / 0.6842 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.1805, allocations: 0 / 0.6842 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002881/0.1808, allocations: 79.83 kB / 0.6843 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.182, allocations: 0.743 MB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001719/0.1822, allocations: 46.55 kB / 0.6851 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.1824, allocations: 32.84 kB / 0.6851 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.1824, allocations: 0 / 0.6851 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004196/0.1828, allocations: 126.7 kB / 0.6852 GB, free: 11.33 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.1828, allocations: 3.938 kB / 0.6852 GB, free: 11.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005971/0.1834, allocations: 157.4 kB / 0.6854 GB, free: 11.17 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.613e-05/0.1835, allocations: 140.7 kB / 0.6855 GB, free: 11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002328/0.1838, allocations: 203.1 kB / 0.6857 GB, free: 10.79 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.1838, allocations: 29.7 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.619e-05/0.1839, allocations: 123.9 kB / 0.6858 GB, free: 10.63 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.219e-05/0.184, allocations: 39.69 kB / 0.6859 GB, free: 10.59 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-05/0.184, allocations: 49.55 kB / 0.6859 GB, free: 10.54 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1841, allocations: 330.8 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.1843, allocations: 39.97 kB / 0.6863 GB, free: 10.17 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.1845, allocations: 148.4 kB / 0.6864 GB, free: 9.973 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.1848, allocations: 198.3 kB / 0.6866 GB, free: 9.727 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.1848, allocations: 7.938 kB / 0.6866 GB, free: 9.719 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003856/0.1852, allocations: 205.2 kB / 0.6868 GB, free: 9.512 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1852, allocations: 8 kB / 0.6868 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1853, allocations: 4 kB / 0.6868 GB, free: 9.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.1853, allocations: 4 kB / 0.6868 GB, free: 9.496 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.1854, allocations: 31.92 kB / 0.6869 GB, free: 9.465 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.1854, allocations: 7.984 kB / 0.6869 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.1856, allocations: 32.17 kB / 0.6869 GB, free: 9.426 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.1856, allocations: 12 kB / 0.6869 GB, free: 9.414 MB / 494.1 MB 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.0001064/0.1857, allocations: 138.3 kB / 0.687 GB, free: 9.27 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.016e-05/0.1857, allocations: 15.81 kB / 0.687 GB, free: 9.254 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.919e-05/0.1858, allocations: 21.39 kB / 0.6871 GB, free: 9.23 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1858, allocations: 4 kB / 0.6871 GB, free: 9.227 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.1858, allocations: 0 / 0.6871 GB, free: 9.227 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1858, allocations: 0 / 0.6871 GB, free: 9.227 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007541/0.1866, allocations: 0.5175 MB / 0.6876 GB, free: 8.652 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.1866, allocations: 4.062 kB / 0.6876 GB, free: 8.648 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.1867, allocations: 15.98 kB / 0.6876 GB, free: 8.633 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.1867, allocations: 48 / 0.6876 GB, free: 8.633 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.1868, allocations: 11.98 kB / 0.6876 GB, free: 8.621 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1868, allocations: 3.938 kB / 0.6876 GB, free: 8.617 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1868, allocations: 8 kB / 0.6876 GB, free: 8.609 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005191/0.1873, allocations: 352.2 kB / 0.688 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.756e-05/0.1874, allocations: 96.95 kB / 0.688 GB, free: 8.129 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.1874, allocations: 8 kB / 0.6881 GB, free: 8.121 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.1876, allocations: 15.92 kB / 0.6881 GB, free: 8.105 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.707e-05/0.1876, allocations: 11.98 kB / 0.6881 GB, free: 8.094 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.1877, allocations: 4 kB / 0.6881 GB, free: 8.09 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001113/0.1878, allocations: 141.1 kB / 0.6882 GB, free: 7.953 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1878, allocations: 0 / 0.6882 GB, free: 7.953 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003321/0.1881, allocations: 35.84 kB / 0.6883 GB, free: 7.918 MB / 494.1 MB 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.0009577/0.1891, allocations: 0.9018 MB / 0.6891 GB, free: 6.984 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003345/0.1894, allocations: 111.8 kB / 0.6892 GB, free: 6.875 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1894, allocations: 3.938 kB / 0.6892 GB, free: 6.871 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.1896, allocations: 52.91 kB / 0.6893 GB, free: 6.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005382/0.1901, allocations: 73.88 kB / 0.6894 GB, free: 6.75 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002711/0.1929, allocations: 2.263 MB / 0.6916 GB, free: 4.297 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.1932, allocations: 0.7242 MB / 0.6923 GB, free: 3.547 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.34e-05/0.1933, allocations: 13.55 kB / 0.6923 GB, free: 3.535 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.777e-05/0.1933, allocations: 55.42 kB / 0.6923 GB, free: 3.48 MB / 494.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1933, allocations: 0 / 0.6923 GB, free: 3.48 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0217/0.2151, allocations: 3.985 MB / 0.6962 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.962/7.177, allocations: 5.203 kB / 0.6962 GB, free: 15.61 MB / 0.4981 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)