Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.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.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL",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.005214/0.005214, allocations: 101 kB / 15.73 MB, free: 6.059 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.001295/0.001295, allocations: 193.3 kB / 16.67 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002458/0.002458, allocations: 289.6 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.065/1.065, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002725/0.002725, allocations: 103.8 kB / 0.6809 GB, free: 7.449 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4108/0.4135, allocations: 86.98 MB / 0.7659 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.005223/0.4188, allocations: 2.296 MB / 0.7681 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001783/0.4206, allocations: 0.7908 MB / 0.7689 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.4207, allocations: 0 / 0.7689 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0007119/0.4214, allocations: 143.4 kB / 0.769 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002415/0.4217, allocations: 59.61 kB / 0.7691 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.4219, allocations: 63.8 kB / 0.7691 GB, free: 468 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.4222, allocations: 159.4 kB / 0.7693 GB, free: 308 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003103/0.4226, allocations: 101 kB / 0.7694 GB, free: 208 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.4227, allocations: 63.77 kB / 0.7695 GB, free: 144 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.4229, allocations: 71.62 kB / 0.7695 GB, free: 72 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.737e-05/0.4229, allocations: 12 kB / 0.7695 GB, free: 60 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.423, allocations: 59.89 kB / 0.7696 GB, free: 0 / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.136e-05/0.4231, allocations: 35.91 kB / 0.7696 GB, free: 15.96 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.974e-05/0.4232, allocations: 67.66 kB / 0.7697 GB, free: 15.9 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.4235, allocations: 164.6 kB / 0.7698 GB, free: 15.74 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4235, allocations: 8 kB / 0.7699 GB, free: 15.73 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.433e-06/0.4235, allocations: 0 / 0.7699 GB, free: 15.73 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.768e-06/0.4235, allocations: 0 / 0.7699 GB, free: 15.73 MB / 0.545 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.0007928/0.4243, allocations: 498.3 kB / 0.7703 GB, free: 15.19 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.4244, allocations: 8.031 kB / 0.7703 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.11e-05/0.4244, allocations: 46.67 kB / 0.7704 GB, free: 15.12 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002369/0.4247, allocations: 32.83 kB / 0.7704 GB, free: 15.09 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.425, allocations: 210.4 kB / 0.7706 GB, free: 14.85 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.006e-05/0.4251, allocations: 42.45 kB / 0.7707 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.802e-05/0.4251, allocations: 15.94 kB / 0.7707 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000357/0.4255, allocations: 149.1 kB / 0.7708 GB, free: 14.63 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.4255, allocations: 0 / 0.7708 GB, free: 14.63 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.4255, allocations: 0 / 0.7708 GB, free: 14.63 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.083e-05/0.4256, allocations: 8 kB / 0.7708 GB, free: 14.62 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.4258, allocations: 91.88 kB / 0.7709 GB, free: 14.53 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009233/0.4267, allocations: 0.6364 MB / 0.7715 GB, free: 13.83 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002431/0.427, allocations: 58.56 kB / 0.7716 GB, free: 13.77 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.118e-05/0.4271, allocations: 28.91 kB / 0.7716 GB, free: 13.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.4271, allocations: 4 kB / 0.7716 GB, free: 13.73 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002212/0.4273, allocations: 142.9 kB / 0.7718 GB, free: 13.57 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.4273, allocations: 0 / 0.7718 GB, free: 13.57 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0004122/0.4277, allocations: 163.2 kB / 0.7719 GB, free: 13.39 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.783e-05/0.4278, allocations: 140.5 kB / 0.772 GB, free: 13.23 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.428, allocations: 179.2 kB / 0.7722 GB, free: 13.04 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.4281, allocations: 33.7 kB / 0.7722 GB, free: 13 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.4282, allocations: 144 kB / 0.7724 GB, free: 12.85 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.015e-05/0.4282, allocations: 23.8 kB / 0.7724 GB, free: 12.83 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.756e-05/0.4283, allocations: 37.7 kB / 0.7724 GB, free: 12.79 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.4285, allocations: 322.8 kB / 0.7728 GB, free: 12.46 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.4286, allocations: 35.98 kB / 0.7728 GB, free: 12.43 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.4287, allocations: 117.3 kB / 0.7729 GB, free: 12.28 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.429, allocations: 234.3 kB / 0.7731 GB, free: 12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4291, allocations: 4 kB / 0.7731 GB, free: 11.99 MB / 0.545 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003964/0.4295, allocations: 240.7 kB / 0.7734 GB, free: 11.74 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.753e-05/0.4295, allocations: 63.34 kB / 0.7734 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.4295, allocations: 4 kB / 0.7734 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.4296, allocations: 8.312 kB / 0.7734 GB, free: 11.65 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.4297, allocations: 27.92 kB / 0.7735 GB, free: 11.62 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.4297, allocations: 7.984 kB / 0.7735 GB, free: 11.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.4299, allocations: 23.89 kB / 0.7735 GB, free: 11.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.4299, allocations: 8 kB / 0.7735 GB, free: 11.59 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.0001453/0.43, allocations: 165.9 kB / 0.7736 GB, free: 11.41 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.88e-05/0.4301, allocations: 23.84 kB / 0.7737 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.878e-05/0.4301, allocations: 21.39 kB / 0.7737 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.4301, allocations: 0 / 0.7737 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.4301, allocations: 4 kB / 0.7737 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.4301, allocations: 0 / 0.7737 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.4303, allocations: 213.6 kB / 0.7739 GB, free: 11.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.4303, allocations: 0 / 0.7739 GB, free: 11.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.975e-05/0.4304, allocations: 8 kB / 0.7739 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.4304, allocations: 7.922 kB / 0.7739 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.4305, allocations: 4 kB / 0.7739 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.4305, allocations: 0 / 0.7739 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4305, allocations: 0 / 0.7739 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004062/0.4309, allocations: 218.6 kB / 0.7741 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.844e-05/0.431, allocations: 97.06 kB / 0.7742 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.581e-05/0.431, allocations: 11.94 kB / 0.7742 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.715e-05/0.4311, allocations: 11.98 kB / 0.7742 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.702e-05/0.4312, allocations: 7.984 kB / 0.7742 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.4312, allocations: 7.938 kB / 0.7743 GB, free: 10.69 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001286/0.4313, allocations: 136.4 kB / 0.7744 GB, free: 10.56 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4313, allocations: 0 / 0.7744 GB, free: 10.56 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002483/0.4316, allocations: 31.94 kB / 0.7744 GB, free: 10.53 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0007224/0.4323, allocations: 0.7623 MB / 0.7752 GB, free: 9.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003448/0.4327, allocations: 215 kB / 0.7754 GB, free: 9.496 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4327, allocations: 0 / 0.7754 GB, free: 9.496 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.4328, allocations: 107.4 kB / 0.7755 GB, free: 9.379 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.4331, allocations: 14.5 kB / 0.7755 GB, free: 9.367 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00236/0.4354, allocations: 1.957 MB / 0.7774 GB, free: 7.258 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.4358, allocations: 0.7119 MB / 0.7781 GB, free: 6.52 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.461e-05/0.4359, allocations: 24.62 kB / 0.7781 GB, free: 6.492 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.681e-05/0.436, allocations: 31.44 kB / 0.7781 GB, free: 6.461 MB / 0.545 GB Notification: Performance of SimCode: time 2.81e-07/0.436, allocations: 0 / 0.7781 GB, free: 6.461 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.462, allocations: 3.132 MB / 0.7812 GB, free: 3.461 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/8.382, allocations: 11.55 kB / 0.7812 GB, free: 3.453 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)