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.0006967/0.0006968, allocations: 91.69 kB / 15.36 MB, free: 0.7383 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.004591/0.004591, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.321/1.321, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001689/0.001689, allocations: 277.4 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9051/0.9051, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004553/0.0004551, allocations: 12.72 kB / 0.5988 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1798, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002248/0.1821, allocations: 1.531 MB / 0.6867 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009949/0.1831, allocations: 0.5246 MB / 0.6872 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1832, allocations: 3.938 kB / 0.6872 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.1834, allocations: 24.36 kB / 0.6873 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.356e-05/0.1835, allocations: 20.81 kB / 0.6873 GB, free: 12.86 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002445/0.1837, allocations: 57.53 kB / 0.6873 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002185/0.184, allocations: 159.5 kB / 0.6875 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.1841, allocations: 58.3 kB / 0.6875 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.834e-05/0.1842, allocations: 43.67 kB / 0.6876 GB, free: 12.56 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.292e-05/0.1843, allocations: 59.62 kB / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.1843, allocations: 4 kB / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.936e-05/0.1844, allocations: 4 kB / 0.6876 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.265e-05/0.1844, allocations: 23.86 kB / 0.6877 GB, free: 12.47 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.956e-05/0.1845, allocations: 77.31 kB / 0.6877 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001743/0.1847, allocations: 111.6 kB / 0.6878 GB, free: 12.28 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1847, allocations: 7.938 kB / 0.6879 GB, free: 12.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1847, allocations: 0.5938 kB / 0.6879 GB, free: 12.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1847, allocations: 0 / 0.6879 GB, free: 12.27 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.0007541/0.1855, allocations: 455.3 kB / 0.6883 GB, free: 11.78 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1856, allocations: 8.031 kB / 0.6883 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.637e-05/0.1856, allocations: 42.73 kB / 0.6883 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.464e-05/0.1857, allocations: 24.69 kB / 0.6884 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002698/0.186, allocations: 227.9 kB / 0.6886 GB, free: 11.44 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.186, allocations: 8.875 kB / 0.6886 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.473e-05/0.186, allocations: 17.12 kB / 0.6886 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003394/0.1864, allocations: 155.5 kB / 0.6888 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1864, allocations: 0 / 0.6888 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.1864, allocations: 4 kB / 0.6888 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1864, allocations: 4.656 kB / 0.6888 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.1867, allocations: 88.36 kB / 0.6888 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.1877, allocations: 0.7464 MB / 0.6896 GB, free: 10.35 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.1879, allocations: 47.5 kB / 0.6896 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.188, allocations: 44.83 kB / 0.6897 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.1881, allocations: 0 / 0.6897 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.1884, allocations: 134.6 kB / 0.6898 GB, free: 10.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.113e-05/0.1884, allocations: 0 / 0.6898 GB, free: 10.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005461/0.1889, allocations: 181.5 kB / 0.69 GB, free: 9.906 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.787e-05/0.189, allocations: 136.5 kB / 0.6901 GB, free: 9.742 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001791/0.1892, allocations: 202.9 kB / 0.6903 GB, free: 9.535 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.1892, allocations: 29.7 kB / 0.6903 GB, free: 9.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.043e-05/0.1893, allocations: 127.8 kB / 0.6904 GB, free: 9.371 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.987e-05/0.1894, allocations: 35.69 kB / 0.6905 GB, free: 9.336 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.046e-05/0.1894, allocations: 29.7 kB / 0.6905 GB, free: 9.301 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1895, allocations: 330.8 kB / 0.6908 GB, free: 8.969 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.1897, allocations: 39.97 kB / 0.6909 GB, free: 8.93 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.1899, allocations: 154.8 kB / 0.691 GB, free: 8.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003221/0.1902, allocations: 214.3 kB / 0.6912 GB, free: 8.469 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.1902, allocations: 4 kB / 0.6912 GB, free: 8.465 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000421/0.1907, allocations: 217.2 kB / 0.6914 GB, free: 8.246 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.1907, allocations: 14.12 kB / 0.6914 GB, free: 8.234 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1907, allocations: 8.188 kB / 0.6914 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.1907, allocations: 4 kB / 0.6914 GB, free: 8.223 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.1909, allocations: 40.23 kB / 0.6915 GB, free: 8.184 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.1909, allocations: 8 kB / 0.6915 GB, free: 8.176 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001623/0.191, allocations: 35.73 kB / 0.6915 GB, free: 8.141 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.1911, allocations: 8 kB / 0.6915 GB, free: 8.133 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.0001258/0.1912, allocations: 146.3 kB / 0.6917 GB, free: 7.98 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/0.1912, allocations: 15.81 kB / 0.6917 GB, free: 7.965 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.472e-05/0.1913, allocations: 21.39 kB / 0.6917 GB, free: 7.941 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1913, allocations: 8 kB / 0.6917 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.1913, allocations: 0 / 0.6917 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1913, allocations: 4 kB / 0.6917 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007659/0.1921, allocations: 0.5211 MB / 0.6922 GB, free: 7.352 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.1921, allocations: 7.938 kB / 0.6922 GB, free: 7.344 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.1922, allocations: 15.98 kB / 0.6922 GB, free: 7.328 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.1923, allocations: 4.281 kB / 0.6923 GB, free: 7.324 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.1923, allocations: 4 kB / 0.6923 GB, free: 7.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.1923, allocations: 0 / 0.6923 GB, free: 7.32 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1923, allocations: 7.938 kB / 0.6923 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005928/0.1929, allocations: 385.9 kB / 0.6926 GB, free: 6.914 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.564e-05/0.193, allocations: 88.92 kB / 0.6927 GB, free: 6.809 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.193, allocations: 8.031 kB / 0.6927 GB, free: 6.801 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.1932, allocations: 15.98 kB / 0.6927 GB, free: 6.785 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.736e-05/0.1932, allocations: 15.92 kB / 0.6928 GB, free: 6.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.1933, allocations: 12 kB / 0.6928 GB, free: 6.758 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.1934, allocations: 136.6 kB / 0.6929 GB, free: 6.625 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1934, allocations: 0 / 0.6929 GB, free: 6.625 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.1937, allocations: 31.94 kB / 0.6929 GB, free: 6.594 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.0008787/0.1946, allocations: 0.9155 MB / 0.6938 GB, free: 5.648 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003211/0.1949, allocations: 132.3 kB / 0.6939 GB, free: 5.52 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.195, allocations: 4.312 kB / 0.694 GB, free: 5.516 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.1951, allocations: 51.91 kB / 0.694 GB, free: 5.465 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000573/0.1957, allocations: 62.03 kB / 0.6941 GB, free: 5.406 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.1984, allocations: 2.334 MB / 0.6963 GB, free: 2.879 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.1987, allocations: 0.7322 MB / 0.6971 GB, free: 2.121 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.523e-05/0.1988, allocations: 13.55 kB / 0.6971 GB, free: 2.109 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.262e-05/0.1989, allocations: 55.42 kB / 0.6971 GB, free: 2.055 MB / 494.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1989, allocations: 0 / 0.6971 GB, free: 2.055 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01409/0.213, allocations: 3.609 MB / 0.7006 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002145/0.2132, allocations: 209.8 kB / 0.7008 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/1.849, allocations: 3.938 kB / 0.7008 GB, free: 14.36 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 & /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)