Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.Lines.Examples.ACLine_RL,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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.001179/0.001179, allocations: 105.5 kB / 16.41 MB, free: 6.469 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.001144/0.001144, allocations: 191.9 kB / 17.34 MB, free: 5.75 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7761/0.7761, allocations: 126.1 MB / 417.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 67.16 kB / 0.5726 GB, free: 27.58 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1349, allocations: 78.72 MB / 0.6495 GB, free: 4.57 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007449/0.1424, allocations: 5.437 MB / 0.6548 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004624/0.147, allocations: 2.63 MB / 0.6573 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004573/0.1475, allocations: 23.88 kB / 0.6574 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001894/0.1494, allocations: 0.6729 MB / 0.658 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001247/0.1507, allocations: 425.7 kB / 0.6584 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.1517, allocations: 398.1 kB / 0.6588 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001205/0.153, allocations: 0.9551 MB / 0.6597 GB, free: 10 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006715/0.1536, allocations: 466.7 kB / 0.6602 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006222/0.1543, allocations: 386.5 kB / 0.6606 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006788/0.155, allocations: 398.5 kB / 0.6609 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.1551, allocations: 48 kB / 0.661 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000736/0.1558, allocations: 363.2 kB / 0.6613 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002718/0.1561, allocations: 255.3 kB / 0.6616 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004125/0.1565, allocations: 346.3 kB / 0.6619 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001142/0.1577, allocations: 0.9727 MB / 0.6629 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1577, allocations: 0 / 0.6629 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.413e-06/0.1577, allocations: 0 / 0.6629 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.582e-05/0.1578, allocations: 0 / 0.6629 GB, free: 6.809 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001687/0.1594, allocations: 0.9923 MB / 0.6638 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.1595, allocations: 8.031 kB / 0.6638 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000138/0.1596, allocations: 106.7 kB / 0.6639 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001411/0.1611, allocations: 204.2 kB / 0.6641 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008258/0.1619, allocations: 0.5145 MB / 0.6646 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.325e-05/0.1619, allocations: 41.36 kB / 0.6647 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.1621, allocations: 44.56 kB / 0.6647 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.1633, allocations: 0.8348 MB / 0.6655 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.1633, allocations: 11.89 kB / 0.6655 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.714e-05/0.1634, allocations: 31.98 kB / 0.6656 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001834/0.1636, allocations: 60.95 kB / 0.6656 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008909/0.1645, allocations: 0.5736 MB / 0.6662 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00448/0.1689, allocations: 4.578 MB / 0.6707 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004769/0.1694, allocations: 299.2 kB / 0.6709 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.1698, allocations: 225.3 kB / 0.6712 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.1698, allocations: 4.281 kB / 0.6712 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.1698, allocations: 34.84 kB / 0.6712 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=33): time 1.823e-06/0.1698, allocations: 4 kB / 0.6712 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=40): time 0.005571/0.1754, allocations: 2.643 MB / 0.6738 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.1755, allocations: 55.41 kB / 0.6738 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005063/0.176, allocations: 458 kB / 0.6743 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.1761, allocations: 33.7 kB / 0.6743 GB, free: 10.37 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/0.1763, allocations: 344.5 kB / 0.6746 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.1764, allocations: 154.7 kB / 0.6748 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.1766, allocations: 106.2 kB / 0.6749 GB, free: 9.766 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1767, allocations: 362.8 kB / 0.6752 GB, free: 9.402 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003361/0.177, allocations: 237 kB / 0.6754 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004429/0.1775, allocations: 410.4 kB / 0.6758 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008336/0.1783, allocations: 0.674 MB / 0.6765 GB, free: 7.945 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1783, allocations: 3.938 kB / 0.6765 GB, free: 7.941 MB / 0.5137 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001652/0.18, allocations: 0.9218 MB / 0.6774 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.18, allocations: 8 kB / 0.6774 GB, free: 6.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.18, allocations: 4 kB / 0.6774 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007952/0.1808, allocations: 222.5 kB / 0.6776 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005297/0.1814, allocations: 115.8 kB / 0.6777 GB, free: 6.652 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00541/0.1868, allocations: 5.348 MB / 0.683 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/0.1873, allocations: 27.97 kB / 0.683 GB, free: 0.8594 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.625e-05/0.1873, allocations: 24 kB / 0.683 GB, free: 0.8359 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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 {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003396/0.1877, allocations: 225.7 kB / 0.6832 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.1878, allocations: 67.56 kB / 0.6833 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/0.1894, allocations: 0.7772 MB / 0.684 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.1894, allocations: 4 kB / 0.684 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.1894, allocations: 0 / 0.684 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.1894, allocations: 4 kB / 0.6841 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.1919, allocations: 1.495 MB / 0.6855 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.1919, allocations: 4.219 kB / 0.6855 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003795/0.1923, allocations: 71.88 kB / 0.6856 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006824/0.193, allocations: 202.4 kB / 0.6858 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.193, allocations: 12 kB / 0.6858 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004861/0.1979, allocations: 5.278 MB / 0.6909 GB, free: 8.168 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.712e-06/0.1979, allocations: 8.016 kB / 0.691 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.1997, allocations: 1.131 MB / 0.6921 GB, free: 6.98 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002488/0.1999, allocations: 176.7 kB / 0.6922 GB, free: 6.789 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.021e-05/0.2, allocations: 16.05 kB / 0.6922 GB, free: 6.773 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003256/0.2004, allocations: 27.97 kB / 0.6923 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.445e-05/0.2004, allocations: 35.89 kB / 0.6923 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-05/0.2005, allocations: 12 kB / 0.6923 GB, free: 6.699 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000338/0.2008, allocations: 306.9 kB / 0.6926 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2008, allocations: 0 / 0.6926 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000668/0.2015, allocations: 172 kB / 0.6928 GB, free: 6.234 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[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 (30): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,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.002054/0.2036, allocations: 1.704 MB / 0.6944 GB, free: 4.469 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001604/0.2052, allocations: 1.004 MB / 0.6954 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.2052, allocations: 0 / 0.6954 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009533/0.2062, allocations: 0.6876 MB / 0.6961 GB, free: 2.699 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008627/0.207, allocations: 175.8 kB / 0.6963 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007492/0.2145, allocations: 5.621 MB / 0.7017 GB, free: 12.62 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005674/0.2151, allocations: 0.9533 MB / 0.7027 GB, free: 11.64 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003217/0.2155, allocations: 113 kB / 0.7028 GB, free: 11.53 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002587/0.2157, allocations: 207.4 kB / 0.703 GB, free: 11.32 MB / 0.545 GB Notification: Performance of SimCode: time 7.31e-07/0.2157, allocations: 4 kB / 0.703 GB, free: 11.32 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04116/0.2569, allocations: 14.09 MB / 0.7167 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.41, allocations: 8.625 kB / 0.7168 GB, free: 13.47 MB / 0.5606 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_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_Lines_Examples_ACLine_RL.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)