Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_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.00103/0.00103, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001332/0.001332, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.408/2.408, allocations: 390.4 MB / 0.6655 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003784, allocations: 15.94 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8053/0.8057, allocations: 142.3 MB / 0.9539 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.004795/0.8105, allocations: 4.908 MB / 0.9587 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003743/0.8143, allocations: 2.487 MB / 0.9611 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004454/0.8148, allocations: 18.78 kB / 0.9611 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002829/0.8151, allocations: 104.1 kB / 0.9612 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008073/0.8159, allocations: 332.7 kB / 0.9615 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008107/0.8167, allocations: 308.8 kB / 0.9618 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001278/0.818, allocations: 1.045 MB / 0.9628 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.8192, allocations: 0.7378 MB / 0.9636 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005074/0.8197, allocations: 313 kB / 0.9639 GB, free: 484 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004539/0.8201, allocations: 374.9 kB / 0.9642 GB, free: 272 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.955e-05/0.8202, allocations: 26.25 kB / 0.9642 GB, free: 272 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004808/0.8207, allocations: 195.1 kB / 0.9644 GB, free: 180 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.8209, allocations: 219.1 kB / 0.9646 GB, free: 44 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001717/0.8211, allocations: 140.9 kB / 0.9648 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007056/0.8218, allocations: 0.7236 MB / 0.9655 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.8218, allocations: 0.9688 kB / 0.9655 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.118e-06/0.8218, allocations: 0 / 0.9655 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.8218, allocations: 3.938 kB / 0.9655 GB, free: 15.47 MB / 0.7325 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.001344/0.8232, allocations: 0.8586 MB / 0.9663 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.8232, allocations: 8.875 kB / 0.9663 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001122/0.8234, allocations: 95.73 kB / 0.9664 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/0.8247, allocations: 196.3 kB / 0.9666 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000717/0.8254, allocations: 485.6 kB / 0.9671 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/0.8255, allocations: 37.5 kB / 0.9671 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.8256, allocations: 54.3 kB / 0.9672 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.8269, allocations: 0.8276 MB / 0.968 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.8269, allocations: 2.562 kB / 0.968 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.246e-05/0.827, allocations: 26.34 kB / 0.968 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001972/0.8272, allocations: 70.88 kB / 0.9681 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009563/0.8282, allocations: 0.5673 MB / 0.9686 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004401/0.8326, allocations: 4.586 MB / 0.9731 GB, free: 8.945 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005002/0.8331, allocations: 295 kB / 0.9734 GB, free: 8.785 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003301/0.8335, allocations: 225.6 kB / 0.9736 GB, free: 8.668 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.8335, allocations: 3.875 kB / 0.9736 GB, free: 8.668 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.8335, allocations: 48.06 kB / 0.9736 GB, free: 8.613 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 2.224e-06/0.8335, allocations: 1.062 kB / 0.9736 GB, free: 8.613 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005971/0.8395, allocations: 2.636 MB / 0.9762 GB, free: 6.898 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.8396, allocations: 59.16 kB / 0.9763 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006511/0.8403, allocations: 457.2 kB / 0.9767 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.8403, allocations: 30.77 kB / 0.9767 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002612/0.8406, allocations: 348.7 kB / 0.9771 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.8407, allocations: 140.1 kB / 0.9772 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.061e-05/0.8408, allocations: 10.66 kB / 0.9772 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001744/0.841, allocations: 363.6 kB / 0.9776 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.8413, allocations: 237.4 kB / 0.9778 GB, free: 5.598 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.8419, allocations: 403.9 kB / 0.9782 GB, free: 5.266 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.8424, allocations: 299 kB / 0.9785 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.8424, allocations: 2.656 kB / 0.9785 GB, free: 5.113 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001898/0.8443, allocations: 0.9163 MB / 0.9793 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.093e-05/0.8443, allocations: 6.531 kB / 0.9794 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/0.8444, allocations: 9.672 kB / 0.9794 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000772/0.8451, allocations: 227 kB / 0.9796 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004971/0.8456, allocations: 117.7 kB / 0.9797 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004979/0.8506, allocations: 4.936 MB / 0.9845 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008247/0.8515, allocations: 27.97 kB / 0.9845 GB, free: 15.44 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.946e-05/0.8516, allocations: 24 kB / 0.9846 GB, free: 15.42 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004906/0.8521, allocations: 221.6 kB / 0.9848 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.8522, allocations: 59.3 kB / 0.9848 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001591/0.8538, allocations: 0.7699 MB / 0.9856 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.8538, allocations: 11.94 kB / 0.9856 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.8539, allocations: 0 / 0.9856 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.8539, allocations: 3.984 kB / 0.9856 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002429/0.8563, allocations: 1.498 MB / 0.9871 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.8563, allocations: 7.938 kB / 0.9871 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003596/0.8567, allocations: 67.94 kB / 0.9871 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006219/0.8573, allocations: 210.5 kB / 0.9873 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.8574, allocations: 8 kB / 0.9873 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0043/0.8617, allocations: 4.868 MB / 0.9921 GB, free: 7.18 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.8617, allocations: 4.125 kB / 0.9921 GB, free: 7.176 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001803/0.8635, allocations: 1.137 MB / 0.9932 GB, free: 5.992 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002839/0.8638, allocations: 168.4 kB / 0.9934 GB, free: 5.809 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.344e-05/0.8639, allocations: 19.94 kB / 0.9934 GB, free: 5.789 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003098/0.8642, allocations: 27.91 kB / 0.9934 GB, free: 5.762 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.036e-05/0.8643, allocations: 35.89 kB / 0.9934 GB, free: 5.727 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.057e-05/0.8644, allocations: 16 kB / 0.9935 GB, free: 5.711 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003701/0.8647, allocations: 306.9 kB / 0.9938 GB, free: 5.414 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8647, allocations: 64 / 0.9938 GB, free: 5.414 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007659/0.8655, allocations: 172 kB / 0.9939 GB, free: 5.246 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001953/0.8675, allocations: 1.688 MB / 0.9956 GB, free: 3.496 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001604/0.8691, allocations: 1 MB / 0.9965 GB, free: 2.457 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.8691, allocations: 0 / 0.9965 GB, free: 2.457 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009259/0.87, allocations: 0.6914 MB / 0.9972 GB, free: 1.727 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009343/0.871, allocations: 171.9 kB / 0.9974 GB, free: 1.559 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005727/0.8767, allocations: 3.853 MB / 1.001 GB, free: 13.56 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005716/0.8773, allocations: 0.9455 MB / 1.002 GB, free: 12.59 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004263/0.8778, allocations: 113 kB / 1.002 GB, free: 12.48 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002855/0.8781, allocations: 203.4 kB / 1.002 GB, free: 12.28 MB / 0.7637 GB Notification: Performance of SimCode: time 6.71e-07/0.8781, allocations: 3.938 kB / 1.002 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02783/0.9059, allocations: 13.3 MB / 1.015 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/0.9062, allocations: 230.3 kB / 1.016 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/2.946, allocations: 0 / 1.016 GB, free: 15.06 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat does not exist to compare? outputFormat=mat