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.004484/0.004484, allocations: 102 kB / 15.73 MB, free: 6.441 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.001301/0.001301, allocations: 195.9 kB / 16.67 MB, free: 6.352 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002295/0.002295, allocations: 282.6 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9764/0.9764, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002623/0.002623, allocations: 93.73 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.1805, allocations: 86.98 MB / 0.7659 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003329/0.1838, allocations: 1.83 MB / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001105/0.185, allocations: 0.546 MB / 0.7682 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.1851, allocations: 4 kB / 0.7682 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.1853, allocations: 19.73 kB / 0.7683 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.814e-05/0.1853, allocations: 35.66 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002158/0.1855, allocations: 67.86 kB / 0.7684 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.1858, allocations: 163.5 kB / 0.7685 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.186, allocations: 57.91 kB / 0.7686 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.745e-05/0.1861, allocations: 55.72 kB / 0.7686 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.148e-05/0.1862, allocations: 59.64 kB / 0.7687 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.011e-05/0.1862, allocations: 15.94 kB / 0.7687 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.85e-05/0.1862, allocations: 8 kB / 0.7687 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.818e-05/0.1863, allocations: 35.86 kB / 0.7687 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.071e-05/0.1863, allocations: 67.59 kB / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001986/0.1865, allocations: 127.3 kB / 0.7689 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1865, allocations: 0 / 0.7689 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.723e-06/0.1866, allocations: 4 kB / 0.7689 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.1866, allocations: 0 / 0.7689 GB, free: 5.816 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.0007611/0.1873, allocations: 478.5 kB / 0.7694 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.1874, allocations: 12.03 kB / 0.7694 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.774e-05/0.1874, allocations: 42.73 kB / 0.7694 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.1875, allocations: 20.84 kB / 0.7695 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003871/0.1879, allocations: 244 kB / 0.7697 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.1879, allocations: 8.375 kB / 0.7697 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.1879, allocations: 12.38 kB / 0.7697 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.1883, allocations: 154 kB / 0.7699 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.1883, allocations: 0 / 0.7699 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.1883, allocations: 4 kB / 0.7699 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.567e-06/0.1883, allocations: 4 kB / 0.7699 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002563/0.1886, allocations: 75.83 kB / 0.7699 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.1898, allocations: 0.7278 MB / 0.7706 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.1899, allocations: 58.47 kB / 0.7707 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/0.1901, allocations: 36.83 kB / 0.7707 GB, free: 3.77 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.1901, allocations: 7.922 kB / 0.7707 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.1904, allocations: 118.7 kB / 0.7709 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.1904, allocations: 4 kB / 0.7709 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0005104/0.1909, allocations: 165.4 kB / 0.771 GB, free: 3.449 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.191, allocations: 132.5 kB / 0.7711 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.1913, allocations: 203.2 kB / 0.7713 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.1913, allocations: 25.95 kB / 0.7714 GB, free: 3.051 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.1914, allocations: 135.7 kB / 0.7715 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.397e-05/0.1915, allocations: 39.69 kB / 0.7715 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.651e-05/0.1916, allocations: 37.7 kB / 0.7716 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002439/0.1918, allocations: 326.8 kB / 0.7719 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.1919, allocations: 39.97 kB / 0.7719 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002012/0.1922, allocations: 156.2 kB / 0.7721 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000337/0.1925, allocations: 202.3 kB / 0.7723 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1925, allocations: 4 kB / 0.7723 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000402/0.1929, allocations: 197.6 kB / 0.7724 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.193, allocations: 16.05 kB / 0.7725 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.193, allocations: 4 kB / 0.7725 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.193, allocations: 4 kB / 0.7725 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.1931, allocations: 39.86 kB / 0.7725 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.554e-05/0.1931, allocations: 11.94 kB / 0.7725 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.1933, allocations: 23.88 kB / 0.7725 GB, free: 1.711 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.1933, allocations: 12 kB / 0.7726 GB, free: 1.699 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.0001409/0.1935, allocations: 139.9 kB / 0.7727 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.289e-05/0.1935, allocations: 23.91 kB / 0.7727 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.093e-05/0.1936, allocations: 17.41 kB / 0.7727 GB, free: 1.512 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1936, allocations: 3.984 kB / 0.7727 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.1936, allocations: 4 kB / 0.7727 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1936, allocations: 3.938 kB / 0.7727 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007883/0.1944, allocations: 0.5095 MB / 0.7732 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.1944, allocations: 8.312 kB / 0.7732 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.1945, allocations: 19.92 kB / 0.7733 GB, free: 0.9062 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.1945, allocations: 8 kB / 0.7733 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1946, allocations: 0 / 0.7733 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.1946, allocations: 7.938 kB / 0.7733 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1946, allocations: 0 / 0.7733 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005203/0.1951, allocations: 360.2 kB / 0.7736 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.505e-05/0.1952, allocations: 93.02 kB / 0.7737 GB, free: 416 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.1952, allocations: 4 kB / 0.7737 GB, free: 412 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.1954, allocations: 19.95 kB / 0.7737 GB, free: 392 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.203e-05/0.1955, allocations: 16.36 kB / 0.7737 GB, free: 376 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.1955, allocations: 4 kB / 0.7738 GB, free: 372 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001395/0.1957, allocations: 145.1 kB / 0.7739 GB, free: 228 kB / 0.5606 GB Notification: Performance of sort global known variables: time 2.51e-07/0.1957, allocations: 3.938 kB / 0.7739 GB, free: 224 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004526/0.1961, allocations: 28 kB / 0.7739 GB, free: 196 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.3372/0.5333, allocations: 0.8922 MB / 0.7748 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003519/0.5337, allocations: 117 kB / 0.7749 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5337, allocations: 0.9062 kB / 0.7749 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.5339, allocations: 51.41 kB / 0.775 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006541/0.5345, allocations: 63.39 kB / 0.775 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002144/0.5367, allocations: 2.271 MB / 0.7772 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.5369, allocations: 0.727 MB / 0.7779 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.387e-05/0.537, allocations: 27.28 kB / 0.778 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.695e-05/0.537, allocations: 49.41 kB / 0.778 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.537, allocations: 0 / 0.778 GB, free: 11.65 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.376/1.913, allocations: 4.04 MB / 0.782 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.304/10.22, allocations: 8.375 kB / 0.782 GB, free: 11.23 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)