Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",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.302/2.302, allocations: 387.1 MB / 399.7 MB, free: 9.488 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.001373/0.001373, allocations: 176.3 kB / 492.3 MB, free: 0.6016 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.6/1.6, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.0008555/0.0008554, allocations: 97.98 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.434e-05/3.435e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.2947, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.101/1.396, allocations: 218.6 MB / 1.426 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/1.396, allocations: 100.5 kB / 1.426 GB, free: 14.39 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.2889/1.685, allocations: 123.6 MB / 1.547 GB, free: 80 kB / 0.948 GB Notification: Performance of FrontEnd: time 1.442e-06/1.685, allocations: 0 / 1.547 GB, free: 80 kB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001044/1.685, allocations: 40 kB / 1.547 GB, free: 40 kB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.003225/1.688, allocations: 1.61 MB / 1.548 GB, free: 14.38 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/1.688, allocations: 8.031 kB / 1.548 GB, free: 14.37 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00027/1.689, allocations: 190.2 kB / 1.549 GB, free: 14.18 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01149/1.7, allocations: 1.878 MB / 1.55 GB, free: 12.29 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003446/1.704, allocations: 1.22 MB / 1.552 GB, free: 11.02 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.426e-05/1.704, allocations: 86.36 kB / 1.552 GB, free: 10.93 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003218/1.704, allocations: 127.8 kB / 1.552 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003742/1.708, allocations: 2.237 MB / 1.554 GB, free: 8.383 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.356e-05/1.708, allocations: 4 kB / 1.554 GB, free: 8.379 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001771/1.708, allocations: 63.88 kB / 1.554 GB, free: 8.316 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/1.708, allocations: 86.22 kB / 1.554 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003018/1.711, allocations: 1.863 MB / 1.556 GB, free: 6.359 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01572/1.727, allocations: 10.72 MB / 1.566 GB, free: 11.06 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002651/1.73, allocations: 1.702 MB / 1.568 GB, free: 9.297 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/1.731, allocations: 0.9062 MB / 1.569 GB, free: 8.391 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 6.57e-05/1.731, allocations: 16.77 kB / 1.569 GB, free: 8.375 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/1.731, allocations: 43.34 kB / 1.569 GB, free: 8.324 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=89): time 3.076e-06/1.731, allocations: 0 / 1.569 GB, free: 8.324 MB / 0.9792 GB Notification: Performance of matching and sorting (n=131): time 0.03469/1.766, allocations: 9.947 MB / 1.579 GB, free: 14.31 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/1.766, allocations: 226.9 kB / 1.579 GB, free: 14.04 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001529/1.768, allocations: 0.9638 MB / 1.58 GB, free: 13.06 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002161/1.768, allocations: 45.7 kB / 1.58 GB, free: 13.01 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000502/1.768, allocations: 0.704 MB / 1.581 GB, free: 12.3 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004543/1.769, allocations: 453.5 kB / 1.581 GB, free: 11.86 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/1.769, allocations: 28 kB / 1.581 GB, free: 11.83 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0001463/1.769, allocations: 353.9 kB / 1.581 GB, free: 11.48 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/1.77, allocations: 0.9553 MB / 1.582 GB, free: 10.52 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/1.772, allocations: 1.229 MB / 1.584 GB, free: 9.195 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/1.773, allocations: 1.059 MB / 1.585 GB, free: 8.137 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/1.773, allocations: 7.984 kB / 1.585 GB, free: 8.129 MB / 0.9948 GB Notification: Performance of matching and sorting (n=164) (initialization): time 0.008463/1.782, allocations: 3.725 MB / 1.588 GB, free: 4.352 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/1.782, allocations: 8 kB / 1.588 GB, free: 4.344 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/1.782, allocations: 8 kB / 1.588 GB, free: 4.336 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00643/1.788, allocations: 1.603 MB / 1.59 GB, free: 2.691 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/1.791, allocations: 443.2 kB / 1.59 GB, free: 2.258 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0255/1.816, allocations: 24.77 MB / 1.614 GB, free: 7.758 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002976/1.819, allocations: 319.5 kB / 1.615 GB, free: 7.445 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002047/1.819, allocations: 59.97 kB / 1.615 GB, free: 7.387 MB / 1.026 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 82 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 4,(1,100.0%) 1,(2,100.0%) 4,(3,100.0%) 9,(1,100.0%) 1,(3,100.0%) 9,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004013/1.82, allocations: 189.6 kB / 1.615 GB, free: 7.195 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003032/1.82, allocations: 162.1 kB / 1.615 GB, free: 7.035 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008535/1.829, allocations: 3.771 MB / 1.619 GB, free: 3.211 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.08e-05/1.829, allocations: 15.98 kB / 1.619 GB, free: 3.195 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-05/1.829, allocations: 16 kB / 1.619 GB, free: 3.18 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/1.829, allocations: 3.984 kB / 1.619 GB, free: 3.176 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/1.842, allocations: 6.208 MB / 1.625 GB, free: 12.79 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/1.842, allocations: 4 kB / 1.625 GB, free: 12.79 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/1.844, allocations: 399.6 kB / 1.625 GB, free: 12.4 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005798/1.85, allocations: 1.505 MB / 1.627 GB, free: 10.85 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001801/1.85, allocations: 39.97 kB / 1.627 GB, free: 10.81 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02433/1.874, allocations: 23.8 MB / 1.65 GB, free: 1.277 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/1.875, allocations: 3.938 kB / 1.65 GB, free: 1.273 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007895/1.882, allocations: 3.698 MB / 1.654 GB, free: 13.39 MB / 1.073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00134/1.884, allocations: 474.9 kB / 1.654 GB, free: 12.91 MB / 1.073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002642/1.884, allocations: 24 kB / 1.654 GB, free: 12.89 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002185/1.886, allocations: 323.5 kB / 1.654 GB, free: 12.57 MB / 1.073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004694/1.887, allocations: 132.7 kB / 1.655 GB, free: 12.44 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/1.887, allocations: 47.97 kB / 1.655 GB, free: 12.39 MB / 1.073 GB Notification: Performance of sorting global known variables: time 0.001213/1.888, allocations: 0.7391 MB / 1.655 GB, free: 11.65 MB / 1.073 GB Notification: Performance of sort global known variables: time 3.31e-07/1.888, allocations: 0 / 1.655 GB, free: 11.65 MB / 1.073 GB Notification: Performance of remove unused functions: time 0.002859/1.891, allocations: 0.6016 MB / 1.656 GB, free: 11.05 MB / 1.073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 54 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 7,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(3,100.0%) 9,(3,100.0%) 7,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008444/1.899, allocations: 5.048 MB / 1.661 GB, free: 5.855 MB / 1.073 GB Notification: Performance of simCode: created initialization part: time 0.007008/1.907, allocations: 4.322 MB / 1.665 GB, free: 1.363 MB / 1.073 GB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/1.907, allocations: 4 kB / 1.665 GB, free: 1.359 MB / 1.073 GB Notification: Performance of simCode: created simulation system equations: time 0.004929/1.911, allocations: 3.112 MB / 1.668 GB, free: 14.07 MB / 1.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002366/1.914, allocations: 0.4954 MB / 1.669 GB, free: 13.58 MB / 1.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006418/1.92, allocations: 3.233 MB / 1.672 GB, free: 10.27 MB / 1.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/1.921, allocations: 1.509 MB / 1.673 GB, free: 8.73 MB / 1.089 GB Notification: Performance of simCode: alias equations: time 0.001704/1.923, allocations: 429.4 kB / 1.674 GB, free: 8.305 MB / 1.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008562/1.924, allocations: 0.6203 MB / 1.674 GB, free: 7.684 MB / 1.089 GB Notification: Performance of SimCode: time 1.352e-06/1.924, allocations: 4 kB / 1.674 GB, free: 7.68 MB / 1.089 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09218/2.016, allocations: 51.12 MB / 1.724 GB, free: 5.141 MB / 1.135 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003415/2.017, allocations: 187.5 kB / 1.724 GB, free: 4.918 MB / 1.135 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.492/5.509, allocations: 3.938 kB / 1.724 GB, free: 4.914 MB / 1.135 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat does not exist to compare? outputFormat=mat