Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.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.Examples.GridDCLoad,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Examples_GridDCLoad",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.001143/0.001144, allocations: 111.4 kB / 16.41 MB, free: 6.488 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.001221/0.001221, allocations: 191.2 kB / 17.34 MB, free: 5.762 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.391/1.391, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7653/0.7653, allocations: 122.9 MB / 414.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 66.03 kB / 0.5679 GB, free: 28.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1315, allocations: 77.93 MB / 0.644 GB, free: 9.551 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004419/0.1359, allocations: 3.061 MB / 0.647 GB, free: 6.477 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002893/0.1388, allocations: 1.906 MB / 0.6489 GB, free: 4.559 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001859/0.1391, allocations: 11.88 kB / 0.6489 GB, free: 4.547 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009742/0.14, allocations: 282.9 kB / 0.6492 GB, free: 4.27 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005074/0.1406, allocations: 199.1 kB / 0.6494 GB, free: 4.074 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006946/0.1413, allocations: 249.2 kB / 0.6496 GB, free: 3.832 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004538/0.1417, allocations: 319 kB / 0.6499 GB, free: 3.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004066/0.1422, allocations: 177.6 kB / 0.6501 GB, free: 3.344 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.1424, allocations: 139.5 kB / 0.6502 GB, free: 3.207 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003643/0.1428, allocations: 151.4 kB / 0.6503 GB, free: 3.059 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.44e-05/0.1428, allocations: 20 kB / 0.6504 GB, free: 3.039 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007096/0.1436, allocations: 399.2 kB / 0.6507 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.1437, allocations: 91.72 kB / 0.6508 GB, free: 2.559 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.1439, allocations: 119.4 kB / 0.6509 GB, free: 2.441 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008561/0.1447, allocations: 486.4 kB / 0.6514 GB, free: 1.965 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/0.1448, allocations: 4 kB / 0.6514 GB, free: 1.961 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1448, allocations: 3.938 kB / 0.6514 GB, free: 1.957 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.1448, allocations: 0 / 0.6514 GB, free: 1.957 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001209/0.146, allocations: 0.5762 MB / 0.652 GB, free: 1.328 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.674e-05/0.1461, allocations: 8.625 kB / 0.652 GB, free: 1.32 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.422e-05/0.1462, allocations: 54.73 kB / 0.652 GB, free: 1.258 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009116/0.1471, allocations: 112.7 kB / 0.6521 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003662/0.1475, allocations: 268.8 kB / 0.6524 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.1475, allocations: 12.81 kB / 0.6524 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.1475, allocations: 24.36 kB / 0.6524 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005419/0.1481, allocations: 349.3 kB / 0.6528 GB, free: 460 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.1481, allocations: 0 / 0.6528 GB, free: 460 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.1481, allocations: 15.98 kB / 0.6528 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.045e-05/0.1482, allocations: 24.42 kB / 0.6528 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004699/0.1487, allocations: 297.5 kB / 0.6531 GB, free: 120 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.151, allocations: 1.726 MB / 0.6548 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004864/0.1515, allocations: 330.1 kB / 0.6551 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.1517, allocations: 105.9 kB / 0.6552 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000117/0.1518, allocations: 89.09 kB / 0.6553 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1518, allocations: 46.44 kB / 0.6553 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 2.625e-06/0.1518, allocations: 3.984 kB / 0.6553 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23): time 0.002488/0.1543, allocations: 0.9649 MB / 0.6563 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.715e-05/0.1544, allocations: 81.05 kB / 0.6563 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.1546, allocations: 219.7 kB / 0.6566 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.1547, allocations: 33.73 kB / 0.6566 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1548, allocations: 172.5 kB / 0.6568 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.413e-05/0.1549, allocations: 83.31 kB / 0.6568 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.155, allocations: 61.66 kB / 0.6569 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1551, allocations: 334.8 kB / 0.6572 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002175/0.1553, allocations: 135.9 kB / 0.6573 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003106/0.1557, allocations: 209.2 kB / 0.6575 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004586/0.1561, allocations: 368.7 kB / 0.6579 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1562, allocations: 3.938 kB / 0.6579 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008334/0.157, allocations: 0.5081 MB / 0.6584 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.157, allocations: 8 kB / 0.6584 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.157, allocations: 0 / 0.6584 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005056/0.1575, allocations: 147.6 kB / 0.6585 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002554/0.1578, allocations: 63.91 kB / 0.6586 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002915/0.1607, allocations: 4.19 MB / 0.6627 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.161, allocations: 19.94 kB / 0.6627 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.161, allocations: 16 kB / 0.6627 GB, free: 5.496 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): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.1612, allocations: 177.2 kB / 0.6629 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.1613, allocations: 19.91 kB / 0.6629 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000861/0.1622, allocations: 474.4 kB / 0.6634 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.1622, allocations: 4 kB / 0.6634 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1622, allocations: 8 kB / 0.6634 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1622, allocations: 3.984 kB / 0.6634 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.1637, allocations: 0.9882 MB / 0.6643 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.1638, allocations: 4 kB / 0.6644 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.1639, allocations: 31.97 kB / 0.6644 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003966/0.1643, allocations: 143.5 kB / 0.6645 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.1643, allocations: 11.98 kB / 0.6645 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002786/0.1671, allocations: 4.159 MB / 0.6686 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.1671, allocations: 4.156 kB / 0.6686 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000762/0.1679, allocations: 0.6292 MB / 0.6692 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.1681, allocations: 132.9 kB / 0.6693 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.098e-05/0.1681, allocations: 11.98 kB / 0.6693 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.1684, allocations: 11.98 kB / 0.6694 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/0.1684, allocations: 28.06 kB / 0.6694 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.1684, allocations: 15.94 kB / 0.6694 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001403/0.1686, allocations: 157.5 kB / 0.6696 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1686, allocations: 0 / 0.6696 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005314/0.1691, allocations: 95.86 kB / 0.6696 GB, free: 13.88 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001132/0.1703, allocations: 1.201 MB / 0.6708 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000919/0.1712, allocations: 0.5714 MB / 0.6714 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.1712, allocations: 0 / 0.6714 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005113/0.1717, allocations: 406.3 kB / 0.6718 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.1723, allocations: 43.97 kB / 0.6718 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004127/0.1764, allocations: 3.321 MB / 0.675 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.1768, allocations: 0.7831 MB / 0.6758 GB, free: 7.195 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001729/0.177, allocations: 54.25 kB / 0.6759 GB, free: 7.145 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.1771, allocations: 71.41 kB / 0.6759 GB, free: 7.074 MB / 0.5137 GB Notification: Performance of SimCode: time 3.51e-07/0.1771, allocations: 0 / 0.6759 GB, free: 7.074 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02702/0.2041, allocations: 6.7 MB / 0.6825 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.7, allocations: 3.984 kB / 0.6825 GB, free: 0.5195 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad_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_Examples_GridDCLoad.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)