Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_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.001517/0.001518, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 199.9 kB / 16.64 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.759/1.759, allocations: 292.3 MB / 0.549 GB, free: 12.76 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 67.78 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.2301, allocations: 114.5 MB / 0.7837 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002202/0.2323, allocations: 0.8995 MB / 0.7845 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.2338, allocations: 1.177 MB / 0.7857 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.051e-05/0.2339, allocations: 0 / 0.7857 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.809e-05/0.2339, allocations: 11.88 kB / 0.7857 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.158e-05/0.234, allocations: 19.8 kB / 0.7857 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005041/0.2345, allocations: 146.8 kB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000223/0.2348, allocations: 175.6 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.2349, allocations: 37.11 kB / 0.7861 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.235, allocations: 55.84 kB / 0.7861 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.2352, allocations: 79.66 kB / 0.7862 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/0.2352, allocations: 12 kB / 0.7862 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.506e-05/0.2353, allocations: 31.98 kB / 0.7862 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.445e-05/0.2353, allocations: 19.92 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.495e-05/0.2354, allocations: 71.69 kB / 0.7863 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.2356, allocations: 171.8 kB / 0.7865 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2356, allocations: 4 kB / 0.7865 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2356, allocations: 0 / 0.7865 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.2357, allocations: 0 / 0.7865 GB, free: 10.35 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006436/0.2363, allocations: 456.6 kB / 0.7869 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.2364, allocations: 8.031 kB / 0.7869 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.047e-05/0.2364, allocations: 42.73 kB / 0.787 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.876e-05/0.2365, allocations: 12.84 kB / 0.787 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005085/0.237, allocations: 252.2 kB / 0.7872 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.237, allocations: 8.312 kB / 0.7872 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.237, allocations: 12.38 kB / 0.7872 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.2373, allocations: 93.95 kB / 0.7873 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.2373, allocations: 0 / 0.7873 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.2373, allocations: 0 / 0.7873 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.2373, allocations: 4 kB / 0.7873 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.2375, allocations: 55.83 kB / 0.7874 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007103/0.2382, allocations: 392.4 kB / 0.7878 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.2383, allocations: 42.48 kB / 0.7878 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.676e-05/0.2384, allocations: 28.97 kB / 0.7878 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.2384, allocations: 0 / 0.7878 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002698/0.2387, allocations: 91.34 kB / 0.7879 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.222e-06/0.2387, allocations: 0 / 0.7879 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0004392/0.2392, allocations: 141.4 kB / 0.788 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.2392, allocations: 59.28 kB / 0.7881 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.2394, allocations: 144.6 kB / 0.7882 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.2394, allocations: 29.69 kB / 0.7883 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.174e-05/0.2395, allocations: 116 kB / 0.7884 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.2395, allocations: 23.7 kB / 0.7884 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.039e-05/0.2396, allocations: 49.69 kB / 0.7884 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.2397, allocations: 322.8 kB / 0.7888 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.2399, allocations: 47.97 kB / 0.7888 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.2401, allocations: 131.1 kB / 0.7889 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.2404, allocations: 196.6 kB / 0.7891 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.2404, allocations: 0 / 0.7891 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004678/0.2409, allocations: 258.8 kB / 0.7894 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.761e-05/0.2409, allocations: 40.36 kB / 0.7894 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2409, allocations: 4 kB / 0.7894 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.241, allocations: 4 kB / 0.7894 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.2411, allocations: 32.22 kB / 0.7894 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.2411, allocations: 8 kB / 0.7894 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002221/0.2413, allocations: 35.91 kB / 0.7895 GB, free: 6.938 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.2414, allocations: 15.98 kB / 0.7895 GB, free: 6.922 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001164/0.2415, allocations: 130.4 kB / 0.7896 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.087e-05/0.2415, allocations: 16.19 kB / 0.7896 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.346e-05/0.2416, allocations: 12.7 kB / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2416, allocations: 15.88 kB / 0.7897 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.2416, allocations: 0 / 0.7897 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2416, allocations: 3.938 kB / 0.7897 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005632/0.2422, allocations: 390.4 kB / 0.79 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2422, allocations: 0 / 0.79 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.265e-05/0.2423, allocations: 15.92 kB / 0.7901 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.2423, allocations: 4 kB / 0.7901 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.2423, allocations: 3.984 kB / 0.7901 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2423, allocations: 4 kB / 0.7901 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2423, allocations: 0 / 0.7901 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004235/0.2428, allocations: 243.2 kB / 0.7903 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.202e-05/0.2428, allocations: 92.98 kB / 0.7904 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.2428, allocations: 0 / 0.7904 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.903e-05/0.2429, allocations: 12 kB / 0.7904 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.243, allocations: 7.984 kB / 0.7904 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.243, allocations: 4 kB / 0.7904 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.087e-05/0.2431, allocations: 109.7 kB / 0.7905 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2431, allocations: 0 / 0.7905 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002866/0.2434, allocations: 28 kB / 0.7905 GB, free: 5.75 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0007144/0.2441, allocations: 0.7864 MB / 0.7913 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003968/0.2445, allocations: 187.9 kB / 0.7915 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2446, allocations: 4.25 kB / 0.7915 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/0.2447, allocations: 35.92 kB / 0.7915 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.245, allocations: 27.92 kB / 0.7916 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002438/0.2474, allocations: 1.958 MB / 0.7935 GB, free: 2.562 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.2477, allocations: 0.7161 MB / 0.7942 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.708e-05/0.2478, allocations: 12.64 kB / 0.7942 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.189e-05/0.2479, allocations: 42.55 kB / 0.7942 GB, free: 1.77 MB / 0.6075 GB Notification: Performance of SimCode: time 4.81e-07/0.2479, allocations: 4 kB / 0.7942 GB, free: 1.766 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02194/0.2698, allocations: 3.141 MB / 0.7973 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.944/8.214, allocations: 14.69 kB / 0.7973 GB, free: 14.77 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1)