Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",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.004846/0.004846, allocations: 100.3 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.00128/0.00128, allocations: 194.8 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002482/0.002482, allocations: 275.2 kB / 290.8 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.024/1.024, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002596/0.002596, allocations: 99.84 kB / 0.681 GB, free: 20 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1696/0.1722, allocations: 86.97 MB / 0.7659 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005106/0.1773, allocations: 3.26 MB / 0.7691 GB, free: 5.699 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003281/0.1806, allocations: 1.858 MB / 0.7709 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.1808, allocations: 4 kB / 0.7709 GB, free: 3.828 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001004/0.1818, allocations: 282.8 kB / 0.7712 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005068/0.1823, allocations: 219 kB / 0.7714 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007184/0.183, allocations: 287.3 kB / 0.7717 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004844/0.1835, allocations: 414.7 kB / 0.772 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003859/0.1839, allocations: 211.9 kB / 0.7723 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.1842, allocations: 167.4 kB / 0.7724 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003716/0.1846, allocations: 191.3 kB / 0.7726 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.668e-05/0.1846, allocations: 27.94 kB / 0.7726 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004307/0.1851, allocations: 235.5 kB / 0.7728 GB, free: 1.832 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001506/0.1852, allocations: 115.7 kB / 0.773 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.1854, allocations: 143.3 kB / 0.7731 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006306/0.186, allocations: 478.2 kB / 0.7735 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1861, allocations: 4 kB / 0.7736 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.643e-06/0.1861, allocations: 0 / 0.7736 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.226e-05/0.1861, allocations: 0 / 0.7736 GB, free: 1.105 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001102/0.1872, allocations: 0.5998 MB / 0.7741 GB, free: 464 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.1872, allocations: 8.031 kB / 0.7741 GB, free: 456 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.619e-05/0.1873, allocations: 74.64 kB / 0.7742 GB, free: 372 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000737/0.1881, allocations: 92.66 kB / 0.7743 GB, free: 280 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.29/0.4781, allocations: 278.8 kB / 0.7746 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.223e-05/0.4782, allocations: 18.09 kB / 0.7746 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001638/0.4784, allocations: 36.94 kB / 0.7746 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007678/0.4791, allocations: 439.5 kB / 0.775 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.4792, allocations: 2.312 kB / 0.775 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.747e-05/0.4792, allocations: 9.938 kB / 0.7751 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001566/0.4794, allocations: 40.89 kB / 0.7751 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006041/0.48, allocations: 351 kB / 0.7754 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002309/0.4823, allocations: 2.199 MB / 0.7776 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.4828, allocations: 269 kB / 0.7778 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002464/0.483, allocations: 168.6 kB / 0.778 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.4831, allocations: 2.594 kB / 0.778 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.4831, allocations: 33.45 kB / 0.778 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.244e-06/0.4831, allocations: 0 / 0.778 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.001819/0.4849, allocations: 1.054 MB / 0.7791 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.485, allocations: 63.11 kB / 0.7791 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002486/0.4852, allocations: 252.9 kB / 0.7794 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.4853, allocations: 28.48 kB / 0.7794 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.505e-05/0.4853, allocations: 194.8 kB / 0.7796 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.621e-05/0.4854, allocations: 90.89 kB / 0.7797 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.4855, allocations: 74.16 kB / 0.7797 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.212e-05/0.4856, allocations: 335.8 kB / 0.78 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/0.4859, allocations: 156.3 kB / 0.7802 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002729/0.4861, allocations: 237.6 kB / 0.7804 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000488/0.4866, allocations: 402.7 kB / 0.7808 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.4866, allocations: 1.156 kB / 0.7808 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001111/0.4878, allocations: 0.6005 MB / 0.7814 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.4878, allocations: 6.844 kB / 0.7814 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.4878, allocations: 2.25 kB / 0.7814 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006909/0.4885, allocations: 183.1 kB / 0.7816 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.4888, allocations: 62.8 kB / 0.7816 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00247/0.4913, allocations: 2.504 MB / 0.7841 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.4916, allocations: 15.62 kB / 0.7841 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.373e-05/0.4916, allocations: 18.42 kB / 0.7841 GB, free: 9.16 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00014/0.4918, allocations: 163.4 kB / 0.7843 GB, free: 9.02 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.639e-05/0.4918, allocations: 23.42 kB / 0.7843 GB, free: 9.008 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005046/0.4923, allocations: 354.8 kB / 0.7846 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.4923, allocations: 5.094 kB / 0.7846 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.4924, allocations: 8 kB / 0.7846 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.4924, allocations: 5.328 kB / 0.7847 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009268/0.4933, allocations: 0.8087 MB / 0.7854 GB, free: 8.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4933, allocations: 1.5 kB / 0.7854 GB, free: 8.344 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003985/0.4937, allocations: 78.83 kB / 0.7855 GB, free: 8.336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.4937, allocations: 1.219 kB / 0.7855 GB, free: 8.336 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.592e-05/0.4938, allocations: 6.188 kB / 0.7855 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.4938, allocations: 8.5 kB / 0.7855 GB, free: 8.328 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4938, allocations: 3.938 kB / 0.7855 GB, free: 8.324 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006645/0.4944, allocations: 0.6095 MB / 0.7861 GB, free: 8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.4946, allocations: 136.6 kB / 0.7863 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.44e-05/0.4946, allocations: 6.844 kB / 0.7863 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.4948, allocations: 15.41 kB / 0.7863 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.576e-05/0.4949, allocations: 15.23 kB / 0.7863 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.4949, allocations: 7.156 kB / 0.7863 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001414/0.495, allocations: 180.1 kB / 0.7865 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.495, allocations: 0 / 0.7865 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004006/0.4954, allocations: 89.25 kB / 0.7866 GB, free: 7.746 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * 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 Backend phase and start with SimCode phase: time 0.0007717/0.4962, allocations: 1.156 MB / 0.7877 GB, free: 6.887 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007956/0.497, allocations: 0.5343 MB / 0.7882 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.497, allocations: 3.75 kB / 0.7882 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.4972, allocations: 149.6 kB / 0.7884 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.4977, allocations: 57.52 kB / 0.7884 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00423/0.5019, allocations: 3.665 MB / 0.792 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.5022, allocations: 0.8012 MB / 0.7928 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002107/0.5024, allocations: 75.14 kB / 0.7928 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.5025, allocations: 86.36 kB / 0.7929 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.5025, allocations: 0 / 0.7929 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03418/0.5367, allocations: 6.823 MB / 0.7996 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.902/10.44, allocations: 7.438 kB / 0.7996 GB, free: 2.805 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_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_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)