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.004297/0.004297, allocations: 96.95 kB / 15.73 MB, free: 6.039 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.001241/0.001241, allocations: 202.2 kB / 16.68 MB, free: 5.969 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002499/0.002499, allocations: 278.9 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.064/1.064, allocations: 178.6 MB / 0.5074 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002705/0.002705, allocations: 95.84 kB / 0.6942 GB, free: 3.656 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.454/0.4567, allocations: 89.14 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.OffTimer): time 0.00258/0.4593, allocations: 1.472 MB / 0.7827 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007186/0.4601, allocations: 442.3 kB / 0.7832 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.94e-05/0.4601, allocations: 0 / 0.7832 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.094e-05/0.4602, allocations: 4.641 kB / 0.7832 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.938e-05/0.4602, allocations: 11.02 kB / 0.7832 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001379/0.4604, allocations: 22.61 kB / 0.7832 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.82e-05/0.4605, allocations: 53.84 kB / 0.7832 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.4606, allocations: 15.88 kB / 0.7833 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.294e-05/0.4607, allocations: 26.3 kB / 0.7833 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.968e-05/0.4607, allocations: 19.67 kB / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.4607, allocations: 4.688 kB / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.186e-05/0.4608, allocations: 4.312 kB / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.394e-05/0.4608, allocations: 8.125 kB / 0.7833 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.511e-05/0.4608, allocations: 25.16 kB / 0.7833 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.461, allocations: 48.42 kB / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.461, allocations: 0 / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.253e-06/0.461, allocations: 0 / 0.7834 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.696e-06/0.461, allocations: 1.281 kB / 0.7834 GB, free: 12.39 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.0005177/0.4615, allocations: 371.1 kB / 0.7837 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.4615, allocations: 9.781 kB / 0.7838 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.491e-05/0.4616, allocations: 33.91 kB / 0.7838 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.705e-05/0.4616, allocations: 9.562 kB / 0.7838 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.4618, allocations: 170.9 kB / 0.784 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.4618, allocations: 3.75 kB / 0.784 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.4618, allocations: 5.578 kB / 0.784 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.4619, allocations: 61.48 kB / 0.784 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.4619, allocations: 4 kB / 0.784 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.462, allocations: 9.719 kB / 0.784 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.462, allocations: 1.281 kB / 0.784 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.069e-05/0.462, allocations: 21.3 kB / 0.7841 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004815/0.4625, allocations: 308.4 kB / 0.7844 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.4626, allocations: 54 kB / 0.7844 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.646e-05/0.4627, allocations: 29.7 kB / 0.7844 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.4627, allocations: 1.438 kB / 0.7844 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001537/0.4629, allocations: 73.58 kB / 0.7845 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=9): time 1.493e-06/0.4629, allocations: 0 / 0.7845 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9): time 0.0002202/0.4631, allocations: 100.8 kB / 0.7846 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.4632, allocations: 55.34 kB / 0.7847 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.742e-05/0.4633, allocations: 111.2 kB / 0.7848 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.4633, allocations: 27.88 kB / 0.7848 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.4633, allocations: 93.97 kB / 0.7849 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.541e-05/0.4634, allocations: 21.61 kB / 0.7849 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.776e-05/0.4634, allocations: 27.88 kB / 0.7849 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.4636, allocations: 318.3 kB / 0.7852 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.798e-05/0.4636, allocations: 16.81 kB / 0.7852 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.258e-05/0.4637, allocations: 48.44 kB / 0.7853 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.202e-05/0.4638, allocations: 68.95 kB / 0.7854 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4638, allocations: 0 / 0.7854 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001434/0.4639, allocations: 93.67 kB / 0.7854 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.464, allocations: 5.938 kB / 0.7855 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.464, allocations: 1.984 kB / 0.7855 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.464, allocations: 1.031 kB / 0.7855 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.745e-05/0.4641, allocations: 17.58 kB / 0.7855 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.4641, allocations: 1.562 kB / 0.7855 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.906e-05/0.4641, allocations: 14.8 kB / 0.7855 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.4642, allocations: 7.375 kB / 0.7855 GB, free: 10.41 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 9.299e-05/0.4643, allocations: 123.9 kB / 0.7856 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.211e-05/0.4643, allocations: 3.109 kB / 0.7856 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.58e-05/0.4643, allocations: 11.91 kB / 0.7856 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4643, allocations: 2.141 kB / 0.7856 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.4643, allocations: 5.125 kB / 0.7856 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.4643, allocations: 5.078 kB / 0.7856 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004189/0.4648, allocations: 359.6 kB / 0.786 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.4648, allocations: 1.094 kB / 0.786 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.905e-05/0.4648, allocations: 8.156 kB / 0.786 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4648, allocations: 1.125 kB / 0.786 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.4648, allocations: 5.016 kB / 0.786 GB, free: 9.934 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.4648, allocations: 5.406 kB / 0.786 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4648, allocations: 0 / 0.786 GB, free: 9.93 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001729/0.465, allocations: 182.9 kB / 0.7862 GB, free: 9.777 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.021e-05/0.4651, allocations: 87.16 kB / 0.7863 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.4651, allocations: 2.062 kB / 0.7863 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.923e-05/0.4652, allocations: 9.328 kB / 0.7863 GB, free: 9.672 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.4652, allocations: 11.56 kB / 0.7863 GB, free: 9.668 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.4652, allocations: 3.078 kB / 0.7863 GB, free: 9.668 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.578e-05/0.4653, allocations: 84.39 kB / 0.7864 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4653, allocations: 4 kB / 0.7864 GB, free: 9.586 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002318/0.4655, allocations: 11.25 kB / 0.7864 GB, free: 9.586 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.0004689/0.466, allocations: 0.7146 MB / 0.7871 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001319/0.4662, allocations: 57.52 kB / 0.7871 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.4662, allocations: 0 / 0.7871 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.803e-05/0.4662, allocations: 31.89 kB / 0.7872 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.4665, allocations: 16.75 kB / 0.7872 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.4679, allocations: 1.362 MB / 0.7885 GB, free: 7.594 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.4682, allocations: 0.689 MB / 0.7892 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.623e-05/0.4682, allocations: 6.375 kB / 0.7892 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.716e-05/0.4683, allocations: 20.33 kB / 0.7892 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.4683, allocations: 0 / 0.7892 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/0.4899, allocations: 1.762 MB / 0.7909 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.704/8.194, allocations: 16.02 kB / 0.7909 GB, free: 6.465 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)