Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.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.Controls.Continuous.Examples.OffTimer,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.OffTimer,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer",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.004394/0.004395, allocations: 96.72 kB / 15.73 MB, free: 6 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.001095/0.001095, allocations: 185.7 kB / 16.67 MB, free: 5.93 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.185/1.185, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001944/0.001944, allocations: 283.1 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8658/0.8658, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 91.84 kB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1333, allocations: 86.97 MB / 0.7659 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.OffTimer): time 0.002244/0.1356, allocations: 1.461 MB / 0.7673 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0006311/0.1362, allocations: 447.4 kB / 0.7677 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.766e-05/0.1363, allocations: 0 / 0.7677 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.531e-05/0.1363, allocations: 3.938 kB / 0.7677 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.903e-05/0.1364, allocations: 15.86 kB / 0.7677 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001294/0.1365, allocations: 19.98 kB / 0.7678 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.157e-05/0.1366, allocations: 55.83 kB / 0.7678 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.53e-05/0.1367, allocations: 12 kB / 0.7678 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.379e-05/0.1368, allocations: 19.92 kB / 0.7678 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.637e-05/0.1368, allocations: 19.92 kB / 0.7679 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.1369, allocations: 4 kB / 0.7679 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.798e-06/0.1369, allocations: 4 kB / 0.7679 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.116e-05/0.1369, allocations: 19.92 kB / 0.7679 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.967e-05/0.137, allocations: 23.91 kB / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 9.389e-05/0.137, allocations: 51.97 kB / 0.768 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1371, allocations: 0 / 0.768 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1371, allocations: 0 / 0.768 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.1371, allocations: 0 / 0.768 GB, free: 6.816 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004293/0.1375, allocations: 359.4 kB / 0.7683 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.1375, allocations: 8.031 kB / 0.7683 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.778e-05/0.1376, allocations: 42.73 kB / 0.7683 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.583e-05/0.1376, allocations: 8.891 kB / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.1377, allocations: 168.3 kB / 0.7685 GB, free: 6.148 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.1378, allocations: 4.375 kB / 0.7685 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.1378, allocations: 8.375 kB / 0.7685 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.1379, allocations: 61.73 kB / 0.7686 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.1379, allocations: 0 / 0.7686 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1379, allocations: 0 / 0.7686 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1379, allocations: 4 kB / 0.7686 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.518e-05/0.138, allocations: 23.98 kB / 0.7686 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004153/0.1384, allocations: 304.7 kB / 0.7689 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 9.423e-05/0.1385, allocations: 54.56 kB / 0.769 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.513e-05/0.1386, allocations: 20.95 kB / 0.769 GB, free: 5.609 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.1386, allocations: 4 kB / 0.769 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001408/0.1387, allocations: 87.33 kB / 0.7691 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=9): time 1.402e-06/0.1387, allocations: 0 / 0.7691 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9): time 0.0001925/0.1389, allocations: 97.58 kB / 0.7692 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.139, allocations: 59.39 kB / 0.7692 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.267e-05/0.139, allocations: 97.86 kB / 0.7693 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.1391, allocations: 37.69 kB / 0.7693 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.26e-05/0.1391, allocations: 84.09 kB / 0.7694 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.1391, allocations: 23.8 kB / 0.7694 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.093e-05/0.1392, allocations: 37.64 kB / 0.7695 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.387e-05/0.1393, allocations: 322.8 kB / 0.7698 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.253e-05/0.1393, allocations: 15.98 kB / 0.7698 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.197e-05/0.1394, allocations: 47.42 kB / 0.7698 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.66e-05/0.1395, allocations: 67.55 kB / 0.7699 GB, free: 4.559 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1395, allocations: 4 kB / 0.7699 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001243/0.1396, allocations: 97.55 kB / 0.77 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1396, allocations: 4 kB / 0.77 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.1396, allocations: 0 / 0.77 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.1396, allocations: 4 kB / 0.77 GB, free: 4.445 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.507e-05/0.1397, allocations: 11.98 kB / 0.77 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.1397, allocations: 0 / 0.77 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.26e-05/0.1398, allocations: 11.95 kB / 0.77 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.1398, allocations: 7.938 kB / 0.77 GB, free: 4.414 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,not1.y,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition2,$whenCondition3,offTim1.entryTime,$PRE.offTim1.entryTime,offTim2.entryTime,$PRE.offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 7.154e-05/0.1399, allocations: 129.5 kB / 0.7702 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.18e-05/0.1399, allocations: 4 kB / 0.7702 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.38e-05/0.1399, allocations: 7.969 kB / 0.7702 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1399, allocations: 0 / 0.7702 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.1399, allocations: 4 kB / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1399, allocations: 0 / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003471/0.1403, allocations: 362.7 kB / 0.7705 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1403, allocations: 4 kB / 0.7705 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.492e-05/0.1403, allocations: 4 kB / 0.7705 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.1403, allocations: 4.078 kB / 0.7705 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.1404, allocations: 7.938 kB / 0.7706 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.1404, allocations: 7.938 kB / 0.7706 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1404, allocations: 0 / 0.7706 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.1405, allocations: 171.5 kB / 0.7707 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.123e-05/0.1406, allocations: 85.05 kB / 0.7708 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.1406, allocations: 8.062 kB / 0.7708 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.067e-05/0.1407, allocations: 15.88 kB / 0.7708 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.121e-05/0.1407, allocations: 7.984 kB / 0.7708 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.1407, allocations: 4 kB / 0.7708 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.508e-05/0.1408, allocations: 87.27 kB / 0.7709 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1408, allocations: 0 / 0.7709 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002284/0.141, allocations: 16 kB / 0.7709 GB, free: 3.406 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003632/0.1414, allocations: 0.7204 MB / 0.7716 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001161/0.1415, allocations: 55.91 kB / 0.7717 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1415, allocations: 0 / 0.7717 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.63e-05/0.1415, allocations: 23.98 kB / 0.7717 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.1418, allocations: 16.31 kB / 0.7717 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.1429, allocations: 1.395 MB / 0.7731 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.1431, allocations: 0.6846 MB / 0.7738 GB, free: 376 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.655e-05/0.1432, allocations: 7.984 kB / 0.7738 GB, free: 368 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.784e-05/0.1432, allocations: 15.44 kB / 0.7738 GB, free: 352 kB / 0.5606 GB Notification: Performance of SimCode: time 1.452e-06/0.1432, allocations: 4 kB / 0.7738 GB, free: 348 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2721/0.4153, allocations: 1.749 MB / 0.7755 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.622/7.038, allocations: 14.69 kB / 0.7755 GB, free: 14.38 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe 2>&1)