Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="IBPSA_latest_IBPSA_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.001356/0.001356, allocations: 107.9 kB / 16.41 MB, free: 6.508 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.001443/0.001443, allocations: 189.2 kB / 17.34 MB, free: 5.738 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.408/1.408, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8058/0.8058, allocations: 126.7 MB / 417.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 68.62 kB / 0.5735 GB, free: 27.25 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1388, allocations: 78.86 MB / 0.6505 GB, free: 3.715 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005389/0.1442, allocations: 3.729 MB / 0.6542 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003225/0.1475, allocations: 1.808 MB / 0.656 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000241/0.1478, allocations: 15.88 kB / 0.656 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008904/0.1487, allocations: 266.6 kB / 0.6562 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0007051/0.1494, allocations: 294.4 kB / 0.6565 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006161/0.15, allocations: 262.6 kB / 0.6568 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007247/0.1508, allocations: 0.5971 MB / 0.6573 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004316/0.1512, allocations: 258.6 kB / 0.6576 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003243/0.1515, allocations: 231.1 kB / 0.6578 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003455/0.1519, allocations: 238.9 kB / 0.658 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.298e-05/0.152, allocations: 24 kB / 0.6581 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000499/0.1525, allocations: 275.4 kB / 0.6583 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001545/0.1526, allocations: 119.6 kB / 0.6584 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002325/0.1529, allocations: 206.9 kB / 0.6586 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007999/0.1537, allocations: 0.5955 MB / 0.6592 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.1537, allocations: 4 kB / 0.6592 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.483e-06/0.1537, allocations: 0 / 0.6592 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.1537, allocations: 0 / 0.6592 GB, free: 10.8 MB / 0.4981 GB 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.001277/0.155, allocations: 0.7512 MB / 0.6599 GB, free: 10 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1551, allocations: 12.03 kB / 0.66 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.5e-05/0.1552, allocations: 74.7 kB / 0.66 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008841/0.156, allocations: 132.5 kB / 0.6602 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006031/0.1567, allocations: 407.9 kB / 0.6605 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.1567, allocations: 25.02 kB / 0.6606 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.1568, allocations: 36.36 kB / 0.6606 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008814/0.1576, allocations: 0.5469 MB / 0.6611 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.1577, allocations: 7.953 kB / 0.6611 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.851e-05/0.1577, allocations: 15.98 kB / 0.6612 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-05/0.1578, allocations: 44.53 kB / 0.6612 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000766/0.1586, allocations: 409.7 kB / 0.6616 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003192/0.1618, allocations: 3.342 MB / 0.6649 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007028/0.1625, allocations: 330.5 kB / 0.6652 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003415/0.1628, allocations: 172.8 kB / 0.6653 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.1629, allocations: 4 kB / 0.6653 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.1629, allocations: 42.5 kB / 0.6654 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=26): time 3.767e-06/0.1629, allocations: 3.984 kB / 0.6654 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of matching and sorting (n=27): time 0.002229/0.1652, allocations: 1.063 MB / 0.6664 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.1652, allocations: 55.64 kB / 0.6665 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/0.1656, allocations: 341.6 kB / 0.6668 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.216e-05/0.1656, allocations: 33.7 kB / 0.6668 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000187/0.1658, allocations: 248.1 kB / 0.6671 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.984e-05/0.1659, allocations: 95.17 kB / 0.6672 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000126/0.1661, allocations: 86.08 kB / 0.6672 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001809/0.1663, allocations: 346.8 kB / 0.6676 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.1666, allocations: 144.8 kB / 0.6677 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004448/0.167, allocations: 295.2 kB / 0.668 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007522/0.1678, allocations: 483.2 kB / 0.6685 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.1678, allocations: 4 kB / 0.6685 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001056/0.1689, allocations: 0.554 MB / 0.669 GB, free: 72 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.1689, allocations: 8 kB / 0.669 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1689, allocations: 4.625 kB / 0.669 GB, free: 60 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003328/0.1692, allocations: 102.4 kB / 0.6691 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003567/0.1696, allocations: 83.88 kB / 0.6692 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/0.1696, allocations: 19.86 kB / 0.6692 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002596/0.1699, allocations: 31.97 kB / 0.6692 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.1699, allocations: 16 kB / 0.6693 GB, free: 15.8 MB / 0.5137 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.000204/0.1702, allocations: 177.7 kB / 0.6694 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.301e-05/0.1702, allocations: 43.72 kB / 0.6695 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009654/0.1712, allocations: 460 kB / 0.6699 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1712, allocations: 4 kB / 0.6699 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1712, allocations: 0 / 0.6699 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1712, allocations: 3.938 kB / 0.6699 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001515/0.1728, allocations: 0.9598 MB / 0.6708 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1728, allocations: 0 / 0.6708 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.173, allocations: 51.95 kB / 0.6709 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002481/0.1733, allocations: 90.48 kB / 0.671 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.1733, allocations: 8 kB / 0.671 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1733, allocations: 0 / 0.671 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1733, allocations: 7.922 kB / 0.671 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009083/0.1743, allocations: 0.5512 MB / 0.6715 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.1744, allocations: 140.8 kB / 0.6717 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.435e-05/0.1745, allocations: 8 kB / 0.6717 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.1747, allocations: 23.91 kB / 0.6717 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.311e-05/0.1748, allocations: 23.97 kB / 0.6717 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.1749, allocations: 11.94 kB / 0.6717 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002564/0.1751, allocations: 235.2 kB / 0.672 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1751, allocations: 0 / 0.672 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004182/0.1755, allocations: 84 kB / 0.672 GB, free: 12.79 MB / 0.5137 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.00124/0.1768, allocations: 1.097 MB / 0.6731 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009488/0.1778, allocations: 0.6342 MB / 0.6737 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.1778, allocations: 5.25 kB / 0.6737 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005126/0.1783, allocations: 437.8 kB / 0.6742 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006898/0.179, allocations: 121.2 kB / 0.6743 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004911/0.1839, allocations: 3.725 MB / 0.6779 GB, free: 6.363 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/0.1844, allocations: 0.8307 MB / 0.6787 GB, free: 5.504 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002413/0.1846, allocations: 79.36 kB / 0.6788 GB, free: 5.426 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.1848, allocations: 127.4 kB / 0.6789 GB, free: 5.301 MB / 0.5137 GB Notification: Performance of SimCode: time 3.01e-07/0.1848, allocations: 0 / 0.6789 GB, free: 5.301 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03188/0.2167, allocations: 8.306 MB / 0.687 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.86, allocations: 6.688 kB / 0.687 GB, free: 13.2 MB / 0.5294 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)