Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.001298/0.001298, allocations: 108 kB / 15.61 MB, free: 152 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.001301/0.001301, allocations: 197 kB / 16.53 MB, free: 6.664 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.299/1.299, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002148/0.002148, allocations: 295 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.93/0.93, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 98.97 kB / 0.5954 GB, free: 27.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1324, allocations: 86.97 MB / 0.6803 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004911/0.1373, allocations: 3.728 MB / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.1401, allocations: 1.792 MB / 0.6857 GB, free: 11.08 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002775/0.1404, allocations: 15.88 kB / 0.6857 GB, free: 11.06 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008785/0.1413, allocations: 266.7 kB / 0.686 GB, free: 10.8 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006452/0.142, allocations: 302.3 kB / 0.6862 GB, free: 10.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000562/0.1426, allocations: 252.6 kB / 0.6865 GB, free: 10.26 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006526/0.1432, allocations: 0.6088 MB / 0.6871 GB, free: 9.648 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004509/0.1437, allocations: 254.5 kB / 0.6873 GB, free: 9.398 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003985/0.1441, allocations: 231.2 kB / 0.6875 GB, free: 9.172 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003577/0.1445, allocations: 234.9 kB / 0.6878 GB, free: 8.941 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.488e-05/0.1445, allocations: 32 kB / 0.6878 GB, free: 8.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004591/0.145, allocations: 275.4 kB / 0.6881 GB, free: 8.641 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.1452, allocations: 111.6 kB / 0.6882 GB, free: 8.531 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002073/0.1454, allocations: 206.9 kB / 0.6884 GB, free: 8.328 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006539/0.146, allocations: 0.5917 MB / 0.6889 GB, free: 7.734 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.146, allocations: 0 / 0.6889 GB, free: 7.734 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1461, allocations: 0 / 0.6889 GB, free: 7.734 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.1461, allocations: 0 / 0.6889 GB, free: 7.734 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001095/0.1472, allocations: 0.7363 MB / 0.6897 GB, free: 6.949 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.1472, allocations: 8.031 kB / 0.6897 GB, free: 6.941 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.034e-05/0.1473, allocations: 66.72 kB / 0.6897 GB, free: 6.867 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008844/0.1482, allocations: 136.2 kB / 0.6899 GB, free: 6.734 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000455/0.1486, allocations: 371.6 kB / 0.6902 GB, free: 6.332 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.1487, allocations: 33 kB / 0.6902 GB, free: 6.301 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.595e-05/0.1487, allocations: 28.38 kB / 0.6903 GB, free: 6.273 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007426/0.1495, allocations: 0.5477 MB / 0.6908 GB, free: 5.656 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.1495, allocations: 7.938 kB / 0.6908 GB, free: 5.648 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.79e-05/0.1496, allocations: 23.97 kB / 0.6908 GB, free: 5.625 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.797e-05/0.1496, allocations: 40.55 kB / 0.6909 GB, free: 5.586 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000674/0.1503, allocations: 405.8 kB / 0.6913 GB, free: 5.191 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/0.1529, allocations: 3.341 MB / 0.6945 GB, free: 1.598 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006229/0.1535, allocations: 335.1 kB / 0.6948 GB, free: 1.262 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/0.1538, allocations: 180.7 kB / 0.695 GB, free: 1.082 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.1538, allocations: 4 kB / 0.695 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.1539, allocations: 38.56 kB / 0.6951 GB, free: 1.031 MB / 494.1 MB Notification: Performance of pre-optimization done (n=26): time 1.463e-06/0.1539, allocations: 0 / 0.6951 GB, free: 1.031 MB / 494.1 MB Notification: Performance of matching and sorting (n=27): time 0.001937/0.1558, allocations: 1.068 MB / 0.6961 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.1559, allocations: 55.64 kB / 0.6962 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003041/0.1562, allocations: 337.6 kB / 0.6965 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.1562, allocations: 33.7 kB / 0.6965 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1563, allocations: 239.6 kB / 0.6967 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.019e-05/0.1564, allocations: 102.6 kB / 0.6968 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.1565, allocations: 81.92 kB / 0.6969 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1566, allocations: 346.8 kB / 0.6972 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/0.1569, allocations: 144.8 kB / 0.6974 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003347/0.1573, allocations: 294.5 kB / 0.6977 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006322/0.1579, allocations: 477.8 kB / 0.6981 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1579, allocations: 4 kB / 0.6981 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009398/0.1589, allocations: 0.5694 MB / 0.6987 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.1589, allocations: 4 kB / 0.6987 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1589, allocations: 4 kB / 0.6987 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002811/0.1592, allocations: 87.08 kB / 0.6988 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003372/0.1595, allocations: 91.81 kB / 0.6989 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.1596, allocations: 11.94 kB / 0.6989 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.1598, allocations: 27.97 kB / 0.6989 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.1599, allocations: 16 kB / 0.6989 GB, free: 12.82 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001663/0.16, allocations: 188 kB / 0.6991 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.526e-05/0.1601, allocations: 39.53 kB / 0.6991 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008287/0.1609, allocations: 459.5 kB / 0.6996 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.161, allocations: 4 kB / 0.6996 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.161, allocations: 0 / 0.6996 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.161, allocations: 7.984 kB / 0.6996 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.1623, allocations: 0.9598 MB / 0.7005 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.1623, allocations: 4 kB / 0.7005 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.1626, allocations: 47.89 kB / 0.7006 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002237/0.1628, allocations: 90.59 kB / 0.7007 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.1628, allocations: 4 kB / 0.7007 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1628, allocations: 0 / 0.7007 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.1628, allocations: 3.984 kB / 0.7007 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007822/0.1636, allocations: 0.5467 MB / 0.7012 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.1638, allocations: 136.6 kB / 0.7013 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.156e-05/0.1638, allocations: 15.94 kB / 0.7013 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.1641, allocations: 23.91 kB / 0.7014 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/0.1641, allocations: 31.91 kB / 0.7014 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.1642, allocations: 4 kB / 0.7014 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002041/0.1644, allocations: 239.2 kB / 0.7016 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1644, allocations: 0 / 0.7016 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003918/0.1648, allocations: 84 kB / 0.7017 GB, free: 9.805 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001028/0.1658, allocations: 1.092 MB / 0.7028 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008797/0.1667, allocations: 0.6652 MB / 0.7034 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1667, allocations: 1.25 kB / 0.7034 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000423/0.1671, allocations: 441.8 kB / 0.7038 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006839/0.1678, allocations: 130.2 kB / 0.704 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/0.1721, allocations: 3.738 MB / 0.7076 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.1725, allocations: 0.8309 MB / 0.7084 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002398/0.1727, allocations: 79.36 kB / 0.7085 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.1729, allocations: 127.4 kB / 0.7086 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.1729, allocations: 0 / 0.7086 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02677/0.1997, allocations: 8.206 MB / 0.7166 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.715/8.915, allocations: 8 kB / 0.7166 GB, free: 10.3 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_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_VariableImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)