Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.RCModel.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.DC.Lines.Examples.RCModel,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_RCModel",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.001164/0.001164, allocations: 106.7 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.00117/0.00117, allocations: 189.2 kB / 17.34 MB, free: 5.754 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.365/1.365, allocations: 222.9 MB / 241.1 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8002/0.8002, allocations: 122.9 MB / 414.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 67.48 kB / 0.5679 GB, free: 28.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.161, allocations: 77.93 MB / 0.644 GB, free: 9.594 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Lines.Examples.RCModel): time 0.006361/0.1675, allocations: 4.338 MB / 0.6483 GB, free: 5.238 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00332/0.1708, allocations: 1.854 MB / 0.6501 GB, free: 3.375 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005444/0.1714, allocations: 11.94 kB / 0.6501 GB, free: 3.363 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001904/0.1733, allocations: 0.5992 MB / 0.6507 GB, free: 2.762 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007528/0.1741, allocations: 262.6 kB / 0.6509 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.1748, allocations: 254.4 kB / 0.6512 GB, free: 2.258 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007362/0.1755, allocations: 0.6073 MB / 0.6518 GB, free: 1.648 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006924/0.1762, allocations: 467 kB / 0.6522 GB, free: 1.191 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003882/0.1766, allocations: 251.1 kB / 0.6525 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005906/0.1772, allocations: 267 kB / 0.6527 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.1773, allocations: 36 kB / 0.6527 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005413/0.1779, allocations: 251.4 kB / 0.653 GB, free: 412 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/0.1781, allocations: 159.6 kB / 0.6531 GB, free: 252 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002811/0.1784, allocations: 226.9 kB / 0.6534 GB, free: 24 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008417/0.1792, allocations: 0.6072 MB / 0.6539 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1793, allocations: 0 / 0.6539 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.413e-06/0.1793, allocations: 0 / 0.6539 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.735e-05/0.1793, allocations: 0 / 0.6539 GB, free: 15.41 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.00138/0.1807, allocations: 0.7324 MB / 0.6547 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.1807, allocations: 12.62 kB / 0.6547 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.1808, allocations: 78.66 kB / 0.6547 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001036/0.1819, allocations: 152.5 kB / 0.6549 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005295/0.1824, allocations: 342.6 kB / 0.6552 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.1825, allocations: 25.38 kB / 0.6552 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.666e-05/0.1825, allocations: 36.36 kB / 0.6553 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007886/0.1833, allocations: 0.5316 MB / 0.6558 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.1834, allocations: 4 kB / 0.6558 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.43e-05/0.1834, allocations: 19.98 kB / 0.6558 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.123e-05/0.1835, allocations: 32.58 kB / 0.6559 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005856/0.1841, allocations: 386.3 kB / 0.6562 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002642/0.1867, allocations: 2.4 MB / 0.6586 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005266/0.1872, allocations: 262.5 kB / 0.6588 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.1874, allocations: 108.8 kB / 0.6589 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.1874, allocations: 4 kB / 0.6589 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/0.1875, allocations: 34.56 kB / 0.659 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.1875, allocations: 4 kB / 0.659 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23): time 0.002272/0.1898, allocations: 1.127 MB / 0.6601 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.1898, allocations: 55.34 kB / 0.6601 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003142/0.1901, allocations: 308.5 kB / 0.6604 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.1902, allocations: 33.64 kB / 0.6604 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1903, allocations: 236.1 kB / 0.6607 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.012e-05/0.1904, allocations: 91.25 kB / 0.6608 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.1905, allocations: 61.98 kB / 0.6608 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1906, allocations: 338.8 kB / 0.6611 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001684/0.1908, allocations: 104.6 kB / 0.6612 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/0.1911, allocations: 191.7 kB / 0.6614 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004198/0.1915, allocations: 317.4 kB / 0.6617 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.1915, allocations: 8 kB / 0.6617 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007857/0.1923, allocations: 446.2 kB / 0.6622 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.1923, allocations: 8 kB / 0.6622 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1923, allocations: 0 / 0.6622 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004001/0.1927, allocations: 94.5 kB / 0.6623 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.1931, allocations: 67.94 kB / 0.6623 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003413/0.1965, allocations: 4.403 MB / 0.6666 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.1968, allocations: 12 kB / 0.6666 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.1968, allocations: 12 kB / 0.6666 GB, free: 1.367 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002496/0.1971, allocations: 177.7 kB / 0.6668 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.575e-05/0.1972, allocations: 35.75 kB / 0.6668 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.14e-05/0.1973, allocations: 42.38 kB / 0.6669 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.1973, allocations: 11.98 kB / 0.6669 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.1973, allocations: 0 / 0.6669 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1973, allocations: 0 / 0.6669 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005404/0.1979, allocations: 397.4 kB / 0.6673 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1979, allocations: 3.938 kB / 0.6673 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.1981, allocations: 35.92 kB / 0.6673 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003245/0.1984, allocations: 90.5 kB / 0.6674 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.1985, allocations: 7.984 kB / 0.6674 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003381/0.2019, allocations: 4.387 MB / 0.6717 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.2019, allocations: 7.875 kB / 0.6717 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008517/0.2027, allocations: 0.5549 MB / 0.6722 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.2029, allocations: 124.9 kB / 0.6724 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.203, allocations: 8 kB / 0.6724 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002156/0.2032, allocations: 8 kB / 0.6724 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.239e-05/0.2033, allocations: 19.97 kB / 0.6724 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.2033, allocations: 4 kB / 0.6724 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003267/0.2036, allocations: 219.1 kB / 0.6726 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2036, allocations: 3.938 kB / 0.6726 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005299/0.2042, allocations: 96 kB / 0.6727 GB, free: 10.62 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001166/0.2053, allocations: 1.105 MB / 0.6738 GB, free: 9.488 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009997/0.2063, allocations: 0.6171 MB / 0.6744 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2064, allocations: 0 / 0.6744 GB, free: 8.832 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005686/0.2069, allocations: 475.8 kB / 0.6748 GB, free: 8.332 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005388/0.2075, allocations: 83.34 kB / 0.6749 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004574/0.2121, allocations: 3.361 MB / 0.6782 GB, free: 4.73 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004787/0.2126, allocations: 0.8389 MB / 0.679 GB, free: 3.863 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002209/0.2128, allocations: 62.94 kB / 0.6791 GB, free: 3.797 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.213, allocations: 115.4 kB / 0.6792 GB, free: 3.684 MB / 0.5137 GB Notification: Performance of SimCode: time 7.72e-07/0.213, allocations: 0 / 0.6792 GB, free: 3.684 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04659/0.2596, allocations: 7.774 MB / 0.6868 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.527/9.786, allocations: 13.92 kB / 0.6868 GB, free: 12.04 MB / 0.5294 GB (rm -f IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.RCModel.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.RCModel_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_RCModel.fmu > IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)