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.001155/0.001155, allocations: 112.5 kB / 15.73 MB, free: 76 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.001208/0.001208, allocations: 192 kB / 16.67 MB, free: 6.574 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002144/0.002144, allocations: 283.1 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9658/0.9658, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 95.86 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1467, allocations: 86.97 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004752/0.1515, allocations: 3.261 MB / 0.7691 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002996/0.1545, allocations: 1.854 MB / 0.7709 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001873/0.1548, allocations: 8 kB / 0.7709 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009153/0.1557, allocations: 286.8 kB / 0.7712 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005069/0.1562, allocations: 219 kB / 0.7714 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006925/0.1569, allocations: 286.3 kB / 0.7717 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005112/0.1574, allocations: 410.7 kB / 0.772 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003516/0.1578, allocations: 207.9 kB / 0.7722 GB, free: 2.426 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.1581, allocations: 171.4 kB / 0.7724 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003883/0.1585, allocations: 191.3 kB / 0.7726 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.032e-05/0.1585, allocations: 24 kB / 0.7726 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003968/0.1589, allocations: 235.5 kB / 0.7728 GB, free: 1.816 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.1591, allocations: 123.7 kB / 0.773 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.1592, allocations: 147.3 kB / 0.7731 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005871/0.1598, allocations: 474.2 kB / 0.7735 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1599, allocations: 4 kB / 0.7736 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1599, allocations: 0 / 0.7736 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.063e-05/0.1599, allocations: 0 / 0.7736 GB, free: 1.082 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.00109/0.161, allocations: 0.6037 MB / 0.7741 GB, free: 436 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.161, allocations: 8.031 kB / 0.7741 GB, free: 428 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.338e-05/0.1611, allocations: 66.72 kB / 0.7742 GB, free: 352 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007701/0.1619, allocations: 92.64 kB / 0.7743 GB, free: 260 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2774/0.4393, allocations: 282.7 kB / 0.7746 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.4394, allocations: 17.38 kB / 0.7746 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.4395, allocations: 36.48 kB / 0.7746 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006943/0.4402, allocations: 439.9 kB / 0.775 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.4403, allocations: 1.406 kB / 0.775 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.545e-05/0.4403, allocations: 11.98 kB / 0.7751 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001559/0.4405, allocations: 42.78 kB / 0.7751 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005477/0.441, allocations: 351.5 kB / 0.7754 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.4431, allocations: 2.198 MB / 0.7776 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004159/0.4435, allocations: 265.4 kB / 0.7778 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.4438, allocations: 162.5 kB / 0.778 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.4438, allocations: 6.375 kB / 0.778 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.4438, allocations: 34.7 kB / 0.778 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.4438, allocations: 0 / 0.778 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.001679/0.4455, allocations: 1.049 MB / 0.779 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.194e-05/0.4455, allocations: 63.72 kB / 0.7791 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002328/0.4458, allocations: 252.6 kB / 0.7793 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.4458, allocations: 35.45 kB / 0.7794 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.281e-05/0.4459, allocations: 197.7 kB / 0.7796 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.906e-05/0.4459, allocations: 88.62 kB / 0.7797 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.4461, allocations: 73.27 kB / 0.7797 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.427e-05/0.4461, allocations: 336.5 kB / 0.78 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002346/0.4464, allocations: 154.5 kB / 0.7802 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.4466, allocations: 236.5 kB / 0.7804 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004767/0.4471, allocations: 398.7 kB / 0.7808 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4471, allocations: 2.156 kB / 0.7808 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001053/0.4482, allocations: 0.6007 MB / 0.7814 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.4482, allocations: 7.406 kB / 0.7814 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.4482, allocations: 3.875 kB / 0.7814 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006577/0.4489, allocations: 185.4 kB / 0.7816 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002873/0.4492, allocations: 64.06 kB / 0.7816 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002414/0.4516, allocations: 2.497 MB / 0.7841 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.4519, allocations: 18.59 kB / 0.7841 GB, free: 9.113 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.452, allocations: 14.44 kB / 0.7841 GB, free: 9.109 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.0001455/0.4521, allocations: 165.9 kB / 0.7843 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/0.4522, allocations: 22.92 kB / 0.7843 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005138/0.4527, allocations: 354.6 kB / 0.7846 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.4527, allocations: 7.344 kB / 0.7846 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.4527, allocations: 1.812 kB / 0.7846 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4527, allocations: 5.625 kB / 0.7846 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009273/0.4537, allocations: 0.8109 MB / 0.7854 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.4537, allocations: 5.219 kB / 0.7854 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003944/0.4541, allocations: 72.28 kB / 0.7855 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.4541, allocations: 2.312 kB / 0.7855 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.4541, allocations: 11.38 kB / 0.7855 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.4541, allocations: 2 kB / 0.7855 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4541, allocations: 0 / 0.7855 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006405/0.4548, allocations: 0.6195 MB / 0.7861 GB, free: 7.949 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.995e-05/0.4549, allocations: 132.5 kB / 0.7863 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/0.4549, allocations: 17.41 kB / 0.7863 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.4551, allocations: 10.94 kB / 0.7863 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.4552, allocations: 15.47 kB / 0.7863 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.4552, allocations: 4.812 kB / 0.7863 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001339/0.4553, allocations: 183.6 kB / 0.7865 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4554, allocations: 0 / 0.7865 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003972/0.4558, allocations: 87.59 kB / 0.7866 GB, free: 7.699 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.0007609/0.4565, allocations: 1.151 MB / 0.7877 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007695/0.4573, allocations: 0.5396 MB / 0.7882 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4573, allocations: 3.75 kB / 0.7882 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.4575, allocations: 147.9 kB / 0.7884 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004522/0.458, allocations: 56.92 kB / 0.7884 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004222/0.4622, allocations: 3.661 MB / 0.792 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.4624, allocations: 0.7967 MB / 0.7928 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002049/0.4626, allocations: 83.36 kB / 0.7928 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.4628, allocations: 84.56 kB / 0.7929 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.4628, allocations: 3.906 kB / 0.7929 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02737/0.4902, allocations: 6.814 MB / 0.7996 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.458/9.948, allocations: 9.156 kB / 0.7996 GB, free: 2.762 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)