Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.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_L_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",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.295/2.295, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.001218/0.001218, allocations: 183.3 kB / 0.4901 GB, free: 2.25 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.535/1.535, allocations: 223.1 MB / 0.7992 GB, free: 14.64 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.0009447/0.0009447, allocations: 108.1 kB / 0.9396 GB, free: 1.816 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004165/0.0004165, allocations: 7.125 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2834, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2284/0.5119, allocations: 183.5 MB / 1.408 GB, free: 1.859 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003307/0.5123, allocations: 95.94 kB / 1.409 GB, free: 1.766 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.102/1.614, allocations: 212.4 MB / 1.616 GB, free: 25.5 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.464e-06/1.614, allocations: 0 / 1.616 GB, free: 25.5 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.000477/1.615, allocations: 135.9 kB / 1.616 GB, free: 25.37 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01819/1.633, allocations: 4.756 MB / 1.621 GB, free: 20.54 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/1.633, allocations: 8.031 kB / 1.621 GB, free: 20.53 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004285/1.637, allocations: 0.8088 MB / 1.622 GB, free: 19.71 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008123/1.645, allocations: 1.055 MB / 1.623 GB, free: 18.65 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/1.656, allocations: 3.407 MB / 1.626 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003809/1.656, allocations: 415.1 kB / 1.626 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002615/1.659, allocations: 0.5428 MB / 1.627 GB, free: 14.23 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02913/1.688, allocations: 8.578 MB / 1.635 GB, free: 5.223 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004125/1.688, allocations: 31.62 kB / 1.635 GB, free: 5.191 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00256/1.691, allocations: 248 kB / 1.635 GB, free: 4.949 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003898/1.691, allocations: 314.8 kB / 1.636 GB, free: 4.641 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01557/1.707, allocations: 6.147 MB / 1.642 GB, free: 14.48 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06014/1.767, allocations: 40.1 MB / 1.681 GB, free: 2.668 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0052/1.772, allocations: 3.099 MB / 1.684 GB, free: 15.42 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002661/1.773, allocations: 18 kB / 1.684 GB, free: 15.41 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.376e-05/1.773, allocations: 56.5 kB / 1.684 GB, free: 15.34 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=179): time 5.851e-06/1.773, allocations: 0 / 1.684 GB, free: 15.34 MB / 0.9792 GB Notification: Performance of matching and sorting (n=182): time 0.02741/1.8, allocations: 9.869 MB / 1.694 GB, free: 5.375 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.024e-05/1.8, allocations: 69.41 kB / 1.694 GB, free: 5.293 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003271/1.804, allocations: 1.302 MB / 1.695 GB, free: 3.953 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0001783/1.804, allocations: 57.7 kB / 1.695 GB, free: 3.891 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.002001/1.806, allocations: 2.242 MB / 1.697 GB, free: 1.617 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008224/1.807, allocations: 0.6277 MB / 1.698 GB, free: 0.9805 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/1.807, allocations: 48 kB / 1.698 GB, free: 0.9336 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0002504/1.807, allocations: 394.3 kB / 1.698 GB, free: 0.543 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001805/1.809, allocations: 1.168 MB / 1.699 GB, free: 15.37 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002447/1.811, allocations: 1.847 MB / 1.701 GB, free: 13.21 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0023/1.814, allocations: 1.505 MB / 1.703 GB, free: 11.71 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.831e-05/1.814, allocations: 4 kB / 1.703 GB, free: 11.71 MB / 0.9948 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.008356/1.822, allocations: 4.535 MB / 1.707 GB, free: 7.148 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/1.822, allocations: 12 kB / 1.707 GB, free: 7.137 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.675e-05/1.822, allocations: 24 kB / 1.707 GB, free: 7.113 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003868/1.826, allocations: 1.583 MB / 1.709 GB, free: 5.523 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/1.827, allocations: 355.4 kB / 1.709 GB, free: 5.176 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02362/1.851, allocations: 17.7 MB / 1.726 GB, free: 2.934 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002275/1.853, allocations: 127.8 kB / 1.726 GB, free: 2.809 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004867/1.854, allocations: 95.98 kB / 1.727 GB, free: 2.715 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * 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 (174): * Single equations (assignments): 170 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(12,30.6%) 26,(6,66.7%) 24,(6,66.7%) 16,(6,66.7%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00625/1.86, allocations: 1.887 MB / 1.728 GB, free: 0.8164 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001239/1.861, allocations: 229.3 kB / 1.729 GB, free: 0.5898 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008467/1.87, allocations: 4.075 MB / 1.733 GB, free: 12.48 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.926e-05/1.87, allocations: 20 kB / 1.733 GB, free: 12.46 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-05/1.87, allocations: 16 kB / 1.733 GB, free: 12.45 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/1.87, allocations: 7.969 kB / 1.733 GB, free: 12.44 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02004/1.89, allocations: 9.408 MB / 1.742 GB, free: 2.785 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/1.89, allocations: 8 kB / 1.742 GB, free: 2.777 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008446/1.891, allocations: 179.7 kB / 1.742 GB, free: 2.602 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003501/1.894, allocations: 1.35 MB / 1.743 GB, free: 1.242 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00013/1.895, allocations: 36 kB / 1.743 GB, free: 1.207 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02068/1.915, allocations: 16.53 MB / 1.759 GB, free: 152 kB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/1.915, allocations: 11.95 kB / 1.759 GB, free: 140 kB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007147/1.923, allocations: 4.348 MB / 1.764 GB, free: 11.54 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/1.924, allocations: 0.5257 MB / 1.764 GB, free: 10.99 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/1.924, allocations: 39.95 kB / 1.764 GB, free: 10.95 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008876/1.925, allocations: 87.89 kB / 1.764 GB, free: 10.87 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004761/1.926, allocations: 161.7 kB / 1.765 GB, free: 10.71 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/1.926, allocations: 44 kB / 1.765 GB, free: 10.66 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.001448/1.927, allocations: 0.989 MB / 1.766 GB, free: 9.652 MB / 1.057 GB Notification: Performance of sort global known variables: time 4.11e-07/1.927, allocations: 7.938 kB / 1.766 GB, free: 9.645 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.003255/1.93, allocations: 1.031 MB / 1.767 GB, free: 8.613 MB / 1.057 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 simulation (85): * Single equations (assignments): 81 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,66.7%) 16,(6,66.7%) 16,(6,66.7%) 24,(6,66.7%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006998/1.937, allocations: 6.088 MB / 1.772 GB, free: 2.359 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.006621/1.944, allocations: 4.278 MB / 1.777 GB, free: 14.03 MB / 1.073 GB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/1.944, allocations: 0 / 1.777 GB, free: 14.03 MB / 1.073 GB Notification: Performance of simCode: created simulation system equations: time 0.004197/1.948, allocations: 2.659 MB / 1.779 GB, free: 11.33 MB / 1.073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003222/1.952, allocations: 0.6868 MB / 1.78 GB, free: 10.65 MB / 1.073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04572/1.997, allocations: 37.33 MB / 1.816 GB, free: 3.875 MB / 1.104 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005153/2.003, allocations: 3.672 MB / 1.82 GB, free: 176 kB / 1.104 GB Notification: Performance of simCode: alias equations: time 0.001922/2.005, allocations: 467.8 kB / 1.82 GB, free: 15.71 MB / 1.12 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002144/2.007, allocations: 1.788 MB / 1.822 GB, free: 13.92 MB / 1.12 GB Notification: Performance of SimCode: time 1.483e-06/2.007, allocations: 0 / 1.822 GB, free: 13.92 MB / 1.12 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7392/2.746, allocations: 71.02 MB / 1.892 GB, free: 280.7 MB / 1.135 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/2.746, allocations: 236.5 kB / 1.892 GB, free: 280.4 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.041/6.787, allocations: 4.469 kB / 1.892 GB, free: 280.4 MB / 1.135 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat does not exist to compare? outputFormat=mat