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.001556/0.001556, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002195/0.002195, allocations: 279.1 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9449/0.9449, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 100.4 kB / 0.5954 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1391, allocations: 86.98 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004488/0.1437, allocations: 3.262 MB / 0.6835 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002735/0.1464, allocations: 1.857 MB / 0.6853 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.1465, allocations: 7.938 kB / 0.6853 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000841/0.1474, allocations: 290.8 kB / 0.6856 GB, free: 11.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003959/0.1478, allocations: 215 kB / 0.6858 GB, free: 10.95 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005825/0.1484, allocations: 290.1 kB / 0.6861 GB, free: 10.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003821/0.1488, allocations: 406.7 kB / 0.6864 GB, free: 10.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003294/0.1491, allocations: 200.9 kB / 0.6866 GB, free: 10.07 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.1493, allocations: 167.4 kB / 0.6868 GB, free: 9.91 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003097/0.1496, allocations: 195.3 kB / 0.687 GB, free: 9.719 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.101e-05/0.1497, allocations: 24 kB / 0.687 GB, free: 9.695 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003619/0.1501, allocations: 235.5 kB / 0.6872 GB, free: 9.465 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.1502, allocations: 123.7 kB / 0.6873 GB, free: 9.344 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.1504, allocations: 151.3 kB / 0.6875 GB, free: 9.195 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004845/0.1508, allocations: 458.6 kB / 0.6879 GB, free: 8.746 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1509, allocations: 0 / 0.6879 GB, free: 8.746 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1509, allocations: 0 / 0.6879 GB, free: 8.746 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.1509, allocations: 0 / 0.6879 GB, free: 8.746 MB / 494.1 MB 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.0009796/0.1519, allocations: 0.5926 MB / 0.6885 GB, free: 8.105 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1519, allocations: 16.03 kB / 0.6885 GB, free: 8.09 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.14e-05/0.152, allocations: 62.7 kB / 0.6886 GB, free: 8.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000721/0.1527, allocations: 92.47 kB / 0.6887 GB, free: 7.93 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003375/0.1531, allocations: 283.9 kB / 0.6889 GB, free: 7.613 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.1531, allocations: 24.88 kB / 0.689 GB, free: 7.59 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.1532, allocations: 36.48 kB / 0.689 GB, free: 7.555 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006139/0.1538, allocations: 441.1 kB / 0.6894 GB, free: 7.09 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.1539, allocations: 0 / 0.6894 GB, free: 7.09 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.1539, allocations: 12 kB / 0.6894 GB, free: 7.078 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001564/0.1541, allocations: 44.52 kB / 0.6895 GB, free: 7.035 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005369/0.1546, allocations: 345.9 kB / 0.6898 GB, free: 6.695 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002342/0.157, allocations: 2.21 MB / 0.692 GB, free: 4.289 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000418/0.1574, allocations: 271.1 kB / 0.6922 GB, free: 4.016 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.1576, allocations: 156.8 kB / 0.6924 GB, free: 3.859 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.1577, allocations: 4 kB / 0.6924 GB, free: 3.855 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.1577, allocations: 34.56 kB / 0.6924 GB, free: 3.812 MB / 494.1 MB Notification: Performance of pre-optimization done (n=22): time 1.383e-06/0.1577, allocations: 0 / 0.6924 GB, free: 3.812 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001726/0.1594, allocations: 1.057 MB / 0.6934 GB, free: 2.688 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.1595, allocations: 55.41 kB / 0.6935 GB, free: 2.621 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.1597, allocations: 248.9 kB / 0.6937 GB, free: 2.371 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.1597, allocations: 33.7 kB / 0.6938 GB, free: 2.332 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.1598, allocations: 184 kB / 0.6939 GB, free: 2.145 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.757e-05/0.1599, allocations: 90.73 kB / 0.694 GB, free: 2.055 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.16, allocations: 73.67 kB / 0.6941 GB, free: 1.977 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1602, allocations: 330.8 kB / 0.6944 GB, free: 1.645 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.1604, allocations: 151.9 kB / 0.6946 GB, free: 1.496 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002762/0.1607, allocations: 241.5 kB / 0.6948 GB, free: 1.223 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005011/0.1612, allocations: 406.9 kB / 0.6952 GB, free: 0.793 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1612, allocations: 3.938 kB / 0.6952 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001062/0.1623, allocations: 0.5859 MB / 0.6958 GB, free: 200 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.1623, allocations: 4 kB / 0.6958 GB, free: 196 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1623, allocations: 4 kB / 0.6958 GB, free: 192 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006707/0.163, allocations: 200.9 kB / 0.6959 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002681/0.1633, allocations: 59.84 kB / 0.696 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002839/0.1661, allocations: 2.488 MB / 0.6984 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002835/0.1664, allocations: 15.98 kB / 0.6985 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.1664, allocations: 16 kB / 0.6985 GB, free: 13.27 MB / 0.4981 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.0001736/0.1666, allocations: 174.3 kB / 0.6986 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.993e-05/0.1667, allocations: 23.72 kB / 0.6987 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005386/0.1672, allocations: 361.2 kB / 0.699 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1672, allocations: 4 kB / 0.699 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.1673, allocations: 3.984 kB / 0.699 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1673, allocations: 0 / 0.699 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009776/0.1682, allocations: 0.8043 MB / 0.6998 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.1683, allocations: 0 / 0.6998 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004008/0.1687, allocations: 79.88 kB / 0.6999 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1687, allocations: 4.062 kB / 0.6999 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.168e-05/0.1687, allocations: 8 kB / 0.6999 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1687, allocations: 4 kB / 0.6999 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1687, allocations: 0 / 0.6999 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007215/0.1694, allocations: 0.6084 MB / 0.7005 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.1696, allocations: 132.7 kB / 0.7006 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.426e-05/0.1696, allocations: 12 kB / 0.7006 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.1698, allocations: 11.98 kB / 0.7006 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.993e-05/0.1699, allocations: 19.91 kB / 0.7006 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.1699, allocations: 8 kB / 0.7007 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001771/0.1701, allocations: 176.5 kB / 0.7008 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1701, allocations: 3.938 kB / 0.7008 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003992/0.1705, allocations: 88 kB / 0.7009 GB, free: 10.65 MB / 0.4981 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.0009892/0.1715, allocations: 1.159 MB / 0.702 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008913/0.1724, allocations: 0.5686 MB / 0.7026 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1724, allocations: 0 / 0.7026 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002016/0.1726, allocations: 154.2 kB / 0.7027 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004446/0.1731, allocations: 62.58 kB / 0.7028 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004642/0.1777, allocations: 3.653 MB / 0.7064 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.1781, allocations: 0.7873 MB / 0.7071 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002031/0.1783, allocations: 78.89 kB / 0.7072 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.1784, allocations: 83.41 kB / 0.7073 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.1784, allocations: 4 kB / 0.7073 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02693/0.2054, allocations: 6.703 MB / 0.7138 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.723/8.929, allocations: 10.16 kB / 0.7139 GB, free: 13.37 MB / 0.5137 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)