Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.495/1.495, allocations: 288.4 MB / 303.6 MB, free: 8.16 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008667/0.0008667, allocations: 187.5 kB / 372.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.116/1.116, allocations: 205.4 MB / 0.631 GB, free: 9.871 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006426/0.0006426, allocations: 94.34 kB / 0.7444 GB, free: 5.777 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003088/0.0003088, allocations: 12.91 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1371, allocations: 115.3 MB / 0.9802 GB, free: 27.26 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001308/0.1384, allocations: 1.492 MB / 0.9816 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0006627/0.1391, allocations: 0.5503 MB / 0.9822 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.146e-05/0.1392, allocations: 8 kB / 0.9822 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 9.352e-05/0.1393, allocations: 15.8 kB / 0.9822 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.8e-05/0.1393, allocations: 23.8 kB / 0.9822 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001604/0.1395, allocations: 47.92 kB / 0.9823 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001492/0.1397, allocations: 155.5 kB / 0.9824 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.1398, allocations: 57.62 kB / 0.9825 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.332e-05/0.1398, allocations: 35.8 kB / 0.9825 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.327e-05/0.1399, allocations: 51.7 kB / 0.9826 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.1399, allocations: 4 kB / 0.9826 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.456e-05/0.1399, allocations: 4 kB / 0.9826 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.966e-05/0.14, allocations: 19.86 kB / 0.9826 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.637e-05/0.14, allocations: 77.38 kB / 0.9827 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.816e-05/0.1401, allocations: 88.03 kB / 0.9827 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1401, allocations: 0 / 0.9827 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1401, allocations: 4 kB / 0.9827 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.1401, allocations: 0 / 0.9827 GB, free: 24.61 MB / 0.6198 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.0004845/0.1406, allocations: 458.7 kB / 0.9832 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.1407, allocations: 12.03 kB / 0.9832 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.051e-05/0.1407, allocations: 38.75 kB / 0.9832 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.225e-05/0.1407, allocations: 24.75 kB / 0.9833 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.1409, allocations: 235.8 kB / 0.9835 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.634e-06/0.1409, allocations: 4.375 kB / 0.9835 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.1409, allocations: 12.38 kB / 0.9835 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.1412, allocations: 158 kB / 0.9836 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.1412, allocations: 3.984 kB / 0.9836 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.1412, allocations: 8 kB / 0.9837 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.1412, allocations: 0 / 0.9837 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002095/0.1414, allocations: 79.89 kB / 0.9837 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006085/0.142, allocations: 0.747 MB / 0.9845 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/0.1422, allocations: 54.48 kB / 0.9845 GB, free: 22.6 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.35e-05/0.1423, allocations: 40.84 kB / 0.9845 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.1423, allocations: 0 / 0.9845 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.1425, allocations: 126.7 kB / 0.9847 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 1.133e-06/0.1425, allocations: 0 / 0.9847 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0003904/0.1429, allocations: 181.3 kB / 0.9848 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/0.143, allocations: 132.8 kB / 0.985 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1431, allocations: 210.8 kB / 0.9852 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.1431, allocations: 29.64 kB / 0.9852 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.452e-05/0.1432, allocations: 132.1 kB / 0.9853 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.1432, allocations: 27.56 kB / 0.9854 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.1432, allocations: 4 kB / 0.9854 GB, free: 21.65 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 3.818e-05/0.1432, allocations: 330.8 kB / 0.9857 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.1433, allocations: 47.97 kB / 0.9857 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.1435, allocations: 144.2 kB / 0.9859 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.1437, allocations: 214.3 kB / 0.9861 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1437, allocations: 4 kB / 0.9861 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003137/0.144, allocations: 221.3 kB / 0.9863 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.1441, allocations: 11.94 kB / 0.9863 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.1441, allocations: 4.25 kB / 0.9863 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.1441, allocations: 4.234 kB / 0.9863 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.1442, allocations: 43.91 kB / 0.9863 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.1442, allocations: 4 kB / 0.9863 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.1444, allocations: 36.02 kB / 0.9864 GB, free: 20.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.1444, allocations: 8 kB / 0.9864 GB, free: 20.48 MB / 0.6198 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,sampleTrigger.y,$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 6.789e-05/0.1444, allocations: 146.5 kB / 0.9865 GB, free: 20.33 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.078e-05/0.1445, allocations: 15.81 kB / 0.9865 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.152e-05/0.1445, allocations: 21.39 kB / 0.9866 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1445, allocations: 4 kB / 0.9866 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.1445, allocations: 3.938 kB / 0.9866 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.1445, allocations: 0 / 0.9866 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005424/0.1451, allocations: 0.5288 MB / 0.9871 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1451, allocations: 4 kB / 0.9871 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.1452, allocations: 23.92 kB / 0.9871 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.1452, allocations: 0 / 0.9871 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.1452, allocations: 4 kB / 0.9871 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1452, allocations: 3.984 kB / 0.9871 GB, free: 19.67 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.1452, allocations: 3.938 kB / 0.9871 GB, free: 19.67 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003733/0.1456, allocations: 376.2 kB / 0.9875 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.64e-05/0.1457, allocations: 92.92 kB / 0.9876 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.1457, allocations: 4 kB / 0.9876 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.1458, allocations: 20.03 kB / 0.9876 GB, free: 19.14 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.874e-05/0.1459, allocations: 11.92 kB / 0.9876 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.1459, allocations: 7.984 kB / 0.9876 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.767e-05/0.146, allocations: 144.4 kB / 0.9877 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.01e-07/0.146, allocations: 4 kB / 0.9877 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002778/0.1463, allocations: 31.94 kB / 0.9878 GB, free: 18.95 MB / 0.6198 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 (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.0004887/0.1468, allocations: 0.9007 MB / 0.9887 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002495/0.147, allocations: 131.7 kB / 0.9888 GB, free: 17.89 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.147, allocations: 0 / 0.9888 GB, free: 17.89 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.1471, allocations: 65.03 kB / 0.9888 GB, free: 17.82 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004728/0.1476, allocations: 58.03 kB / 0.9889 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.1488, allocations: 1.114 MB / 0.99 GB, free: 16.55 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.1489, allocations: 0.7245 MB / 0.9907 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.255e-05/0.149, allocations: 17.95 kB / 0.9907 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.1491, allocations: 55.42 kB / 0.9908 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of SimCode: time 3.51e-07/0.1491, allocations: 0 / 0.9908 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5339/0.6829, allocations: 3.568 MB / 0.9943 GB, free: 12.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001163/0.6831, allocations: 199.4 kB / 0.9944 GB, free: 12.09 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.526, allocations: 0 / 0.9944 GB, free: 12.09 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)