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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7959/0.7959, allocations: 143.3 MB / 158.3 MB, free: 5.789 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 177.1 kB / 191.5 MB, free: 5.762 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 223.2 MB / 447.7 MB, free: 4.797 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009629/0.0009629, allocations: 102.1 kB / 0.5188 GB, free: 1.148 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00192/0.00192, allocations: 263.5 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004656/0.0004656, allocations: 14 kB / 0.6929 GB, free: 59.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1953/0.1958, allocations: 82.79 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5547/0.7506, allocations: 110.6 MB / 0.8818 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.7509, allocations: 68.36 kB / 0.8818 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.009143/0.76, allocations: 3.541 MB / 0.8853 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.733e-06/0.7601, allocations: 0 / 0.8853 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.318e-05/0.7601, allocations: 2.625 kB / 0.8853 GB, free: 108.1 MB / 0.5417 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.000639/0.7607, allocations: 472.6 kB / 0.8858 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.7608, allocations: 11.09 kB / 0.8858 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.569e-05/0.7609, allocations: 43.41 kB / 0.8858 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.463e-05/0.7609, allocations: 17.19 kB / 0.8858 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.7612, allocations: 233 kB / 0.886 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.7612, allocations: 13.34 kB / 0.8861 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.7613, allocations: 16.97 kB / 0.8861 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003061/0.7616, allocations: 154.2 kB / 0.8862 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.7616, allocations: 2.656 kB / 0.8862 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.7616, allocations: 4.672 kB / 0.8862 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.7616, allocations: 5.141 kB / 0.8862 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002314/0.7619, allocations: 80.78 kB / 0.8863 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009156/0.7628, allocations: 0.7568 MB / 0.887 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001404/0.7629, allocations: 61.81 kB / 0.8871 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.763, allocations: 6.844 kB / 0.8871 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002794/0.7633, allocations: 121.5 kB / 0.8872 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=11): time 1.372e-06/0.7633, allocations: 0 / 0.8872 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0005092/0.7638, allocations: 183.7 kB / 0.8874 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.776e-05/0.7639, allocations: 129.8 kB / 0.8875 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.764, allocations: 185 kB / 0.8877 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.764, allocations: 30.77 kB / 0.8877 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.178e-05/0.7641, allocations: 130.9 kB / 0.8879 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.182e-05/0.7642, allocations: 30.53 kB / 0.8879 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.037e-06/0.7642, allocations: 6.438 kB / 0.8879 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.145e-05/0.7642, allocations: 332.5 kB / 0.8882 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.7644, allocations: 46.33 kB / 0.8883 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.7645, allocations: 153.1 kB / 0.8884 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.7647, allocations: 59.19 kB / 0.8885 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.7647, allocations: 6.781 kB / 0.8885 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003695/0.7651, allocations: 210 kB / 0.8887 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.7651, allocations: 11.3 kB / 0.8887 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.7651, allocations: 3 kB / 0.8887 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.7651, allocations: 9.781 kB / 0.8887 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.7653, allocations: 35.48 kB / 0.8887 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.7653, allocations: 10 kB / 0.8887 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.7654, allocations: 27.38 kB / 0.8888 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.7655, allocations: 13.41 kB / 0.8888 GB, free: 105.6 MB / 0.5417 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 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.535e-05/0.7656, allocations: 140.8 kB / 0.8889 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.171e-05/0.7656, allocations: 17.14 kB / 0.8889 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.4e-05/0.7657, allocations: 21.3 kB / 0.8889 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.7657, allocations: 2 kB / 0.8889 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/0.7657, allocations: 5.875 kB / 0.8889 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.7657, allocations: 1.891 kB / 0.8889 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007079/0.7664, allocations: 0.5296 MB / 0.8895 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.7664, allocations: 288 / 0.8895 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.7666, allocations: 25.73 kB / 0.8895 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.7666, allocations: 1.344 kB / 0.8895 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.7666, allocations: 6.938 kB / 0.8895 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.7666, allocations: 3.25 kB / 0.8895 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.7666, allocations: 0 / 0.8895 GB, free: 105 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004869/0.7671, allocations: 418.7 kB / 0.8899 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.465e-05/0.7672, allocations: 91.58 kB / 0.89 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.7672, allocations: 11.05 kB / 0.89 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.7674, allocations: 16.08 kB / 0.89 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.248e-05/0.7674, allocations: 12.95 kB / 0.89 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.848e-06/0.7674, allocations: 11.59 kB / 0.89 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001019/0.7675, allocations: 139.1 kB / 0.8902 GB, free: 104.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7676, allocations: 4 kB / 0.8902 GB, free: 104.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003246/0.7679, allocations: 28.02 kB / 0.8902 GB, free: 104.5 MB / 0.5417 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,intWitRes1.trigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007401/0.7686, allocations: 1.16 MB / 0.8913 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000328/0.769, allocations: 122.8 kB / 0.8915 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.769, allocations: 4.312 kB / 0.8915 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.7691, allocations: 52.44 kB / 0.8915 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/0.7696, allocations: 54.41 kB / 0.8916 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.7715, allocations: 3.505 MB / 0.895 GB, free: 100.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001746/0.7716, allocations: 0.7235 MB / 0.8957 GB, free: 99.75 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 9.887e-05/0.7717, allocations: 21.11 kB / 0.8957 GB, free: 99.75 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.196e-05/0.7718, allocations: 51.61 kB / 0.8958 GB, free: 99.74 MB / 0.5417 GB Notification: Performance of SimCode: time 4.71e-07/0.7718, allocations: 2.531 kB / 0.8958 GB, free: 99.74 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01487/0.7867, allocations: 3.57 MB / 0.8992 GB, free: 99.14 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/0.7869, allocations: 190.1 kB / 0.8994 GB, free: 98.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/2.592, allocations: 0 / 0.8994 GB, free: 98.9 MB / 0.5417 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/linux/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)