Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.427/2.427, allocations: 390.5 MB / 398 MB, free: 10.93 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 172.9 kB / 491.2 MB, free: 1.586 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 221.5 MB / 0.7868 GB, free: 13.28 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008955/0.0008957, allocations: 95.83 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.26e-05/2.257e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3031, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.013/1.316, allocations: 196.8 MB / 1.405 GB, free: 3.328 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/1.316, allocations: 92.59 kB / 1.405 GB, free: 3.277 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.7778/2.094, allocations: 323.5 MB / 1.721 GB, free: 11.98 MB / 1.135 GB Notification: Performance of FrontEnd: time 1.634e-06/2.094, allocations: 0 / 1.721 GB, free: 11.98 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.000495/2.094, allocations: 155.8 kB / 1.721 GB, free: 11.83 MB / 1.135 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1394 * Number of variables: 1394 Notification: Performance of Generate backend data structure: time 0.01946/2.114, allocations: 4.65 MB / 1.725 GB, free: 7.113 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 5.693e-05/2.114, allocations: 12.02 kB / 1.725 GB, free: 7.102 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01228/2.126, allocations: 1.483 MB / 1.727 GB, free: 5.609 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01364/2.14, allocations: 4.226 MB / 1.731 GB, free: 1.301 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004572/2.14, allocations: 167.9 kB / 1.731 GB, free: 1.137 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00407/2.144, allocations: 296.2 kB / 1.731 GB, free: 0.8477 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01745/2.162, allocations: 5.573 MB / 1.737 GB, free: 11.27 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02638/2.188, allocations: 7.538 MB / 1.744 GB, free: 3.27 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001865/2.189, allocations: 27.72 kB / 1.744 GB, free: 3.242 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006768/2.189, allocations: 12 kB / 1.744 GB, free: 3.23 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003633/2.19, allocations: 330 kB / 1.744 GB, free: 2.906 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9131/3.103, allocations: 38.92 MB / 1.782 GB, free: 222 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004669/3.107, allocations: 2.712 MB / 1.785 GB, free: 222 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004064/3.112, allocations: 2.473 MB / 1.788 GB, free: 222 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000253/3.112, allocations: 27.62 kB / 1.788 GB, free: 221.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/3.112, allocations: 62.27 kB / 1.788 GB, free: 221.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=265): time 7.814e-06/3.112, allocations: 0 / 1.788 GB, free: 221.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=424): time 0.08303/3.195, allocations: 27.33 MB / 1.814 GB, free: 219.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.698e-05/3.195, allocations: 97.3 kB / 1.814 GB, free: 219.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003761/3.199, allocations: 1.625 MB / 1.816 GB, free: 219.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.001175/3.2, allocations: 33.14 kB / 1.816 GB, free: 219.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001608/3.202, allocations: 2.361 MB / 1.818 GB, free: 218.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.002152/3.204, allocations: 1.378 MB / 1.82 GB, free: 217.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002924/3.204, allocations: 0 / 1.82 GB, free: 217.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0002219/3.204, allocations: 486.7 kB / 1.82 GB, free: 217.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003345/3.208, allocations: 2.642 MB / 1.823 GB, free: 217.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00385/3.212, allocations: 3.583 MB / 1.826 GB, free: 216.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003963/3.216, allocations: 3.237 MB / 1.829 GB, free: 216.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.715e-05/3.216, allocations: 7.688 kB / 1.829 GB, free: 216.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=557) (initialization): time 0.02419/3.24, allocations: 11.15 MB / 1.84 GB, free: 215.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/3.24, allocations: 16.84 kB / 1.84 GB, free: 215.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.14e-05/3.24, allocations: 29.62 kB / 1.84 GB, free: 215.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01686/3.257, allocations: 4.891 MB / 1.845 GB, free: 215.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002707/3.259, allocations: 0.5061 MB / 1.846 GB, free: 215.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0646/3.324, allocations: 62.27 MB / 1.906 GB, free: 177.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00494/3.329, allocations: 101.3 kB / 1.907 GB, free: 177.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007065/3.33, allocations: 165.4 kB / 1.907 GB, free: 177.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (275): * Single equations (assignments): 251 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 24 {(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(2,100.0%) 16,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000857/3.331, allocations: 185.1 kB / 1.907 GB, free: 177.3 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02273/3.353, allocations: 10.44 MB / 1.917 GB, free: 173.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002066/3.356, allocations: 376.3 kB / 1.917 GB, free: 173.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02319/3.379, allocations: 10.99 MB / 1.928 GB, free: 169.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.101e-05/3.379, allocations: 41.22 kB / 1.928 GB, free: 169.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001351/3.379, allocations: 46.94 kB / 1.928 GB, free: 169.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001016/3.379, allocations: 28.86 kB / 1.928 GB, free: 169.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03631/3.415, allocations: 16.53 MB / 1.944 GB, free: 162.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.98e-05/3.415, allocations: 3.719 kB / 1.944 GB, free: 162.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001758/3.417, allocations: 296.5 kB / 1.945 GB, free: 162.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01505/3.432, allocations: 4.416 MB / 1.949 GB, free: 161.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008256/3.433, allocations: 15.62 kB / 1.949 GB, free: 161.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06518/3.498, allocations: 60.02 MB / 2.008 GB, free: 118.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.221e-05/3.498, allocations: 17.39 kB / 2.008 GB, free: 118.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0275/3.526, allocations: 14.7 MB / 2.022 GB, free: 111.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0032/3.529, allocations: 0.9566 MB / 2.023 GB, free: 111 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001364/3.531, allocations: 14.94 kB / 2.023 GB, free: 111 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003272/3.534, allocations: 110.3 kB / 2.023 GB, free: 111 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001704/3.536, allocations: 399.1 kB / 2.023 GB, free: 110.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003423/3.536, allocations: 108.7 kB / 2.024 GB, free: 110.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001924/3.538, allocations: 1.193 MB / 2.025 GB, free: 110.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.11e-07/3.538, allocations: 4 kB / 2.025 GB, free: 110.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.007875/3.546, allocations: 1.552 MB / 2.026 GB, free: 108.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 121 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 24 {(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 15,(3,100.0%) 15,(4,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(2,100.0%) 8,(3,100.0%) 15,(4,100.0%) 16,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02496/3.571, allocations: 17.1 MB / 2.043 GB, free: 93.56 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01868/3.589, allocations: 10.95 MB / 2.054 GB, free: 83.33 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.71e-05/3.59, allocations: 0 / 2.054 GB, free: 83.33 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01488/3.604, allocations: 7.588 MB / 2.061 GB, free: 76.26 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008693/3.613, allocations: 0.8778 MB / 2.062 GB, free: 75.61 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03511/3.648, allocations: 11.17 MB / 2.073 GB, free: 65.88 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007369/3.656, allocations: 4.194 MB / 2.077 GB, free: 62.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002889/3.659, allocations: 0.6527 MB / 2.078 GB, free: 62.25 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002277/3.661, allocations: 2.125 MB / 2.08 GB, free: 60.28 MB / 1.151 GB Notification: Performance of SimCode: time 9.42e-07/3.661, allocations: 0 / 2.08 GB, free: 60.28 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.028/4.689, allocations: 131.1 MB / 2.208 GB, free: 238.8 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/4.689, allocations: 165.9 kB / 2.208 GB, free: 238.6 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.83/10.52, allocations: 0.7656 kB / 2.208 GB, free: 238.6 MB / 1.182 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat does not exist to compare? outputFormat=mat