Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.217/2.217, allocations: 387.4 MB / 394.9 MB, free: 13.42 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.001238/0.001238, allocations: 183.5 kB / 487.4 MB, free: 5.078 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.48/1.48, allocations: 221.5 MB / 0.7824 GB, free: 1.016 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008888/0.0008887, allocations: 103.7 kB / 0.9219 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.606e-05/1.609e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2709, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9/1.171, allocations: 197 MB / 1.398 GB, free: 11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/1.171, allocations: 93.56 kB / 1.399 GB, free: 10.95 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 1.649/2.821, allocations: 383.2 MB / 1.773 GB, free: 232 MB / 1.151 GB Notification: Performance of FrontEnd: time 4.559e-06/2.821, allocations: 2.906 kB / 1.773 GB, free: 232 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0007906/2.822, allocations: 175 kB / 1.773 GB, free: 231.9 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02476/2.846, allocations: 5.538 MB / 1.778 GB, free: 229.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/2.846, allocations: 9.906 kB / 1.778 GB, free: 229.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01625/2.863, allocations: 1.768 MB / 1.78 GB, free: 229.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01552/2.878, allocations: 5.056 MB / 1.785 GB, free: 228.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005884/2.879, allocations: 194.8 kB / 1.785 GB, free: 228.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003572/2.882, allocations: 354.4 kB / 1.786 GB, free: 228.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02036/2.903, allocations: 6.837 MB / 1.792 GB, free: 228.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0292/2.932, allocations: 8.98 MB / 1.801 GB, free: 227.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002148/2.932, allocations: 35.06 kB / 1.801 GB, free: 227.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000966/2.933, allocations: 15.19 kB / 1.801 GB, free: 227.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003255/2.934, allocations: 380.9 kB / 1.801 GB, free: 227.1 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05126/2.985, allocations: 45.11 MB / 1.845 GB, free: 200.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004899/2.99, allocations: 4.041 MB / 1.849 GB, free: 200.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004377/2.994, allocations: 3.446 MB / 1.853 GB, free: 200.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003006/2.995, allocations: 36.75 kB / 1.853 GB, free: 200.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.57e-05/2.995, allocations: 68.16 kB / 1.853 GB, free: 200.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=353): time 6.392e-06/2.995, allocations: 0 / 1.853 GB, free: 200.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=578): time 0.09167/3.086, allocations: 37.28 MB / 1.889 GB, free: 197 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.886e-05/3.087, allocations: 108.9 kB / 1.889 GB, free: 196.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003886/3.09, allocations: 1.827 MB / 1.891 GB, free: 196.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.001243/3.092, allocations: 25.7 kB / 1.891 GB, free: 196.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001605/3.093, allocations: 2.715 MB / 1.894 GB, free: 195.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.002304/3.096, allocations: 1.873 MB / 1.896 GB, free: 194 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003754/3.096, allocations: 0 / 1.896 GB, free: 194 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0002688/3.096, allocations: 0.5275 MB / 1.896 GB, free: 193.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00438/3.101, allocations: 3.612 MB / 1.9 GB, free: 192.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005077/3.106, allocations: 4.697 MB / 1.904 GB, free: 189.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005367/3.111, allocations: 4.414 MB / 1.909 GB, free: 187.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.258e-05/3.111, allocations: 6.469 kB / 1.909 GB, free: 187.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03141/3.143, allocations: 15.18 MB / 1.923 GB, free: 182.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 5.241e-05/3.143, allocations: 16.44 kB / 1.923 GB, free: 182.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.982e-05/3.143, allocations: 33.72 kB / 1.924 GB, free: 182.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02454/3.167, allocations: 7.314 MB / 1.931 GB, free: 180.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00269/3.17, allocations: 0.5517 MB / 1.931 GB, free: 180.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08323/3.253, allocations: 65.16 MB / 1.995 GB, free: 143.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006305/3.26, allocations: 124.9 kB / 1.995 GB, free: 143.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001858/3.262, allocations: 201.4 kB / 1.995 GB, free: 143.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 137 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (286): * Single equations (assignments): 275 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(5,84.0%) 17,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(6,77.8%) 40,(6,77.8%) 72,(14,57.1%) 72,(14,51.0%) 72,(8,70.3%) 70,(6,77.8%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003416/3.265, allocations: 193.2 kB / 1.995 GB, free: 143 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03704/3.302, allocations: 14.38 MB / 2.009 GB, free: 134.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002211/3.304, allocations: 450.7 kB / 2.01 GB, free: 134.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03526/3.34, allocations: 15.15 MB / 2.025 GB, free: 122.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.851e-05/3.34, allocations: 56 kB / 2.025 GB, free: 122 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001724/3.34, allocations: 72 kB / 2.025 GB, free: 122 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001719/3.34, allocations: 27.52 kB / 2.025 GB, free: 122 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05333/3.393, allocations: 22.28 MB / 2.046 GB, free: 104.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.727e-05/3.394, allocations: 8 kB / 2.046 GB, free: 104.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001988/3.396, allocations: 330.1 kB / 2.047 GB, free: 104 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02173/3.417, allocations: 6.725 MB / 2.053 GB, free: 98.71 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001424/3.419, allocations: 19.8 kB / 2.053 GB, free: 98.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07796/3.497, allocations: 62.24 MB / 2.114 GB, free: 42.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.255e-05/3.497, allocations: 11.94 kB / 2.114 GB, free: 42.49 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04162/3.538, allocations: 20.16 MB / 2.134 GB, free: 24.77 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004172/3.543, allocations: 1.241 MB / 2.135 GB, free: 23.63 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002076/3.545, allocations: 15.7 kB / 2.135 GB, free: 23.62 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004458/3.549, allocations: 144.3 kB / 2.135 GB, free: 23.54 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002484/3.552, allocations: 0.5185 MB / 2.136 GB, free: 23.21 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007967/3.553, allocations: 136 kB / 2.136 GB, free: 23.08 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.003022/3.556, allocations: 1.335 MB / 2.137 GB, free: 21.89 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.3e-07/3.556, allocations: 0 / 2.137 GB, free: 21.89 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0127/3.568, allocations: 2.031 MB / 2.139 GB, free: 19.86 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (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],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 131 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(6,77.8%) 40,(7,71.4%) 71,(14,57.1%) 72,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(5,84.0%) 17,(6,77.8%) 40,(8,70.3%) 70,(14,51.0%) 72} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03957/3.608, allocations: 22.52 MB / 2.161 GB, free: 15.87 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.03076/3.639, allocations: 13.01 MB / 2.174 GB, free: 3.984 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.526e-05/3.639, allocations: 0 / 2.174 GB, free: 3.984 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.02241/3.661, allocations: 8.564 MB / 2.182 GB, free: 12.49 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007601/3.669, allocations: 0.9662 MB / 2.183 GB, free: 11.76 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7741/4.443, allocations: 14.42 MB / 2.197 GB, free: 233.5 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01105/4.454, allocations: 5.013 MB / 2.202 GB, free: 232.6 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.004041/4.458, allocations: 0.7206 MB / 2.203 GB, free: 232.6 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005386/4.464, allocations: 2.585 MB / 2.205 GB, free: 232.6 MB / 1.182 GB Notification: Performance of SimCode: time 1.884e-06/4.464, allocations: 0 / 2.205 GB, free: 232.6 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2967/4.76, allocations: 170.1 MB / 2.371 GB, free: 222.3 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/4.761, allocations: 170.8 kB / 2.372 GB, free: 222.1 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.499/11.26, allocations: 0 / 2.372 GB, free: 222.1 MB / 1.182 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat does not exist to compare? outputFormat=mat