Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.0007912/0.0007913, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.004597/0.004597, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.383/1.383, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9544/0.9544, allocations: 143.2 MB / 434.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003199/0.0003199, allocations: 8 kB / 0.5165 GB, free: 11.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.188/0.1883, allocations: 83.42 MB / 0.598 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.002299/0.1907, allocations: 1.517 MB / 0.5994 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008967/0.1916, allocations: 0.5144 MB / 0.5999 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.1917, allocations: 7.938 kB / 0.6 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.1919, allocations: 19.8 kB / 0.6 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.253e-05/0.192, allocations: 19.86 kB / 0.6 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.1922, allocations: 59.88 kB / 0.6001 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002076/0.1924, allocations: 163.5 kB / 0.6002 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.1926, allocations: 49.66 kB / 0.6003 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.23e-05/0.1926, allocations: 43.72 kB / 0.6003 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.734e-05/0.1927, allocations: 51.64 kB / 0.6003 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.1927, allocations: 4 kB / 0.6004 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.559e-05/0.1928, allocations: 4 kB / 0.6004 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.571e-05/0.1928, allocations: 23.92 kB / 0.6004 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.764e-05/0.1929, allocations: 81.25 kB / 0.6005 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.193, allocations: 127.7 kB / 0.6006 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1931, allocations: 0 / 0.6006 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.463e-06/0.1931, allocations: 0 / 0.6006 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.1931, allocations: 0 / 0.6006 GB, free: 4.871 MB / 0.4981 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.000664/0.1937, allocations: 462.7 kB / 0.601 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1938, allocations: 12.03 kB / 0.601 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.486e-05/0.1938, allocations: 42.75 kB / 0.6011 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.859e-05/0.1939, allocations: 16.75 kB / 0.6011 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002312/0.1941, allocations: 231.9 kB / 0.6013 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.1941, allocations: 8.375 kB / 0.6013 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.1942, allocations: 12.38 kB / 0.6013 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002851/0.1945, allocations: 151.5 kB / 0.6015 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.1945, allocations: 4 kB / 0.6015 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.1945, allocations: 7.984 kB / 0.6015 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-06/0.1945, allocations: 4 kB / 0.6015 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.1948, allocations: 79.83 kB / 0.6016 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009083/0.1957, allocations: 0.747 MB / 0.6023 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/0.1958, allocations: 54.55 kB / 0.6023 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.196, allocations: 36.84 kB / 0.6024 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.196, allocations: 4 kB / 0.6024 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.1963, allocations: 142.5 kB / 0.6025 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.1963, allocations: 4 kB / 0.6025 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004849/0.1968, allocations: 177.5 kB / 0.6027 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.787e-05/0.1969, allocations: 140.5 kB / 0.6028 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.1971, allocations: 203.7 kB / 0.603 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.1971, allocations: 25.7 kB / 0.603 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.229e-05/0.1972, allocations: 136 kB / 0.6032 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.069e-05/0.1972, allocations: 31.56 kB / 0.6032 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.502e-05/0.1972, allocations: 25.7 kB / 0.6032 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1974, allocations: 330.8 kB / 0.6035 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.1975, allocations: 43.97 kB / 0.6036 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.1977, allocations: 161.3 kB / 0.6037 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003157/0.198, allocations: 202.4 kB / 0.6039 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.198, allocations: 0 / 0.6039 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004011/0.1984, allocations: 229.4 kB / 0.6042 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.1985, allocations: 8 kB / 0.6042 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.1985, allocations: 4 kB / 0.6042 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1985, allocations: 4 kB / 0.6042 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.1986, allocations: 35.92 kB / 0.6042 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.1986, allocations: 7.984 kB / 0.6042 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.1988, allocations: 31.83 kB / 0.6042 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.1988, allocations: 12.03 kB / 0.6043 GB, free: 0.7109 MB / 0.4981 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.0001069/0.1989, allocations: 144.1 kB / 0.6044 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/0.199, allocations: 15.81 kB / 0.6044 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.566e-05/0.199, allocations: 21.39 kB / 0.6044 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.199, allocations: 4 kB / 0.6044 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.199, allocations: 4.188 kB / 0.6044 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.199, allocations: 0 / 0.6044 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2675/0.4666, allocations: 0.5313 MB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.4666, allocations: 2.203 kB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.4668, allocations: 22.36 kB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.4668, allocations: 1.875 kB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.4668, allocations: 4.094 kB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.4668, allocations: 5.391 kB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4668, allocations: 9.031 kB / 0.605 GB, free: 40.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004714/0.4673, allocations: 365.6 kB / 0.6053 GB, free: 40.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.315e-05/0.4673, allocations: 93.19 kB / 0.6054 GB, free: 40.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.865e-05/0.4674, allocations: 7 kB / 0.6054 GB, free: 40.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.4676, allocations: 18.91 kB / 0.6055 GB, free: 40.46 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.98e-05/0.4676, allocations: 16.34 kB / 0.6055 GB, free: 40.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.4677, allocations: 8.312 kB / 0.6055 GB, free: 40.46 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.796e-05/0.4678, allocations: 139 kB / 0.6056 GB, free: 40.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4678, allocations: 0 / 0.6056 GB, free: 40.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003496/0.4681, allocations: 31.31 kB / 0.6056 GB, free: 40.38 MB / 0.4981 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.0005728/0.4687, allocations: 0.9194 MB / 0.6065 GB, free: 39.64 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002784/0.469, allocations: 123.8 kB / 0.6067 GB, free: 39.64 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.469, allocations: 0 / 0.6067 GB, free: 39.64 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.4691, allocations: 50.55 kB / 0.6067 GB, free: 39.64 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005498/0.4697, allocations: 72.11 kB / 0.6068 GB, free: 39.64 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.4715, allocations: 2.333 MB / 0.6091 GB, free: 38 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001352/0.4717, allocations: 0.7232 MB / 0.6098 GB, free: 37.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.247e-05/0.4718, allocations: 23.52 kB / 0.6098 GB, free: 37.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.071e-05/0.4719, allocations: 49.06 kB / 0.6098 GB, free: 37.29 MB / 0.4981 GB Notification: Performance of SimCode: time 4.71e-07/0.4719, allocations: 1.125 kB / 0.6098 GB, free: 37.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01208/0.4839, allocations: 3.611 MB / 0.6134 GB, free: 37.08 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/0.4842, allocations: 204.4 kB / 0.6136 GB, free: 36.83 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/2.228, allocations: 0 / 0.6136 GB, free: 36.83 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)