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.006262/0.006262, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001629/0.00163, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002468/0.002468, allocations: 279.1 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.032/1.032, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002745/0.002745, allocations: 93.56 kB / 0.681 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.176/0.1787, allocations: 86.99 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003157/0.1819, allocations: 1.82 MB / 0.7677 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001056/0.183, allocations: 0.546 MB / 0.7682 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.577e-05/0.1832, allocations: 4 kB / 0.7682 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.1833, allocations: 27.72 kB / 0.7683 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.759e-05/0.1834, allocations: 23.73 kB / 0.7683 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.1837, allocations: 71.84 kB / 0.7684 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002535/0.1839, allocations: 175.4 kB / 0.7685 GB, free: 6.262 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.1841, allocations: 53.91 kB / 0.7686 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.059e-05/0.1842, allocations: 51.8 kB / 0.7686 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.698e-05/0.1843, allocations: 59.62 kB / 0.7687 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.337e-05/0.1843, allocations: 12 kB / 0.7687 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 2.149e-05/0.1844, allocations: 8 kB / 0.7687 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.94e-05/0.1844, allocations: 27.91 kB / 0.7687 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.674e-05/0.1845, allocations: 71.48 kB / 0.7688 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.1847, allocations: 139.3 kB / 0.7689 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1847, allocations: 0 / 0.7689 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.302e-06/0.1847, allocations: 0 / 0.7689 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.573e-06/0.1848, allocations: 0 / 0.7689 GB, free: 5.844 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.0008007/0.1856, allocations: 478.5 kB / 0.7694 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1856, allocations: 8.031 kB / 0.7694 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.913e-05/0.1857, allocations: 46.73 kB / 0.7694 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.369e-05/0.1857, allocations: 24.84 kB / 0.7695 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003451/0.1861, allocations: 232 kB / 0.7697 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.1861, allocations: 8.375 kB / 0.7697 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.03e-05/0.1861, allocations: 12.38 kB / 0.7697 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000323/0.1865, allocations: 156 kB / 0.7699 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.1865, allocations: 0 / 0.7699 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.1865, allocations: 4 kB / 0.7699 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1865, allocations: 4 kB / 0.7699 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002351/0.1868, allocations: 67.84 kB / 0.7699 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.1878, allocations: 0.7433 MB / 0.7706 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001626/0.188, allocations: 54.48 kB / 0.7707 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.1881, allocations: 32.84 kB / 0.7707 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.1881, allocations: 7.969 kB / 0.7707 GB, free: 3.797 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/0.1884, allocations: 134.6 kB / 0.7709 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.1884, allocations: 0 / 0.7709 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0004929/0.1889, allocations: 165.4 kB / 0.771 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.1891, allocations: 132.5 kB / 0.7712 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000208/0.1893, allocations: 199.2 kB / 0.7713 GB, free: 3.109 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.1893, allocations: 25.7 kB / 0.7714 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.1894, allocations: 144 kB / 0.7715 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.589e-05/0.1894, allocations: 35.7 kB / 0.7715 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.834e-05/0.1895, allocations: 41.7 kB / 0.7716 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1897, allocations: 330.8 kB / 0.7719 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.1898, allocations: 35.97 kB / 0.7719 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.19, allocations: 150.4 kB / 0.7721 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003549/0.1904, allocations: 206.3 kB / 0.7723 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1904, allocations: 0 / 0.7723 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003982/0.1908, allocations: 209.1 kB / 0.7725 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.1908, allocations: 8.5 kB / 0.7725 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1908, allocations: 4 kB / 0.7725 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.1909, allocations: 8 kB / 0.7725 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.191, allocations: 35.91 kB / 0.7725 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.191, allocations: 4 kB / 0.7725 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.1912, allocations: 27.88 kB / 0.7726 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.1912, allocations: 12 kB / 0.7726 GB, free: 1.723 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.0001205/0.1913, allocations: 134.3 kB / 0.7727 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.1913, allocations: 19.91 kB / 0.7727 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.289e-05/0.1914, allocations: 29.39 kB / 0.7727 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.1914, allocations: 0 / 0.7727 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1914, allocations: 0 / 0.7727 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1914, allocations: 4 kB / 0.7727 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008061/0.1922, allocations: 0.5093 MB / 0.7732 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1923, allocations: 0 / 0.7732 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.1924, allocations: 23.92 kB / 0.7733 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.1924, allocations: 4 kB / 0.7733 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.1924, allocations: 7.922 kB / 0.7733 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.137e-06/0.1924, allocations: 7.938 kB / 0.7733 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1924, allocations: 320 / 0.7733 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005243/0.193, allocations: 356.3 kB / 0.7736 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.909e-05/0.193, allocations: 93.02 kB / 0.7737 GB, free: 448 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.1931, allocations: 8 kB / 0.7737 GB, free: 440 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.1933, allocations: 23.91 kB / 0.7737 GB, free: 416 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/0.1933, allocations: 8.359 kB / 0.7737 GB, free: 408 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.1933, allocations: 7.984 kB / 0.7738 GB, free: 400 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001306/0.1935, allocations: 153.1 kB / 0.7739 GB, free: 248 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1935, allocations: 0 / 0.7739 GB, free: 248 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003224/0.1938, allocations: 24 kB / 0.7739 GB, free: 224 kB / 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.3325/0.5263, allocations: 0.8965 MB / 0.7748 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004088/0.5268, allocations: 118.8 kB / 0.7749 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.5268, allocations: 0.625 kB / 0.7749 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.527, allocations: 54.98 kB / 0.775 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006218/0.5276, allocations: 58.02 kB / 0.775 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.53, allocations: 2.27 MB / 0.7772 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000152/0.5301, allocations: 0.7236 MB / 0.7779 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.498e-05/0.5302, allocations: 19.55 kB / 0.778 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.114e-05/0.5303, allocations: 55.47 kB / 0.778 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of SimCode: time 3.11e-07/0.5304, allocations: 0 / 0.778 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.5603, allocations: 4.045 MB / 0.782 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.911/8.471, allocations: 13.25 kB / 0.782 GB, free: 11.3 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)