Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.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.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N",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.001301/0.001301, allocations: 99.94 kB / 15.05 MB, free: 1.105 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.001576/0.001576, allocations: 177.3 kB / 15.95 MB, free: 216 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.4/1.4, allocations: 223.2 MB / 239.9 MB, free: 5.449 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.488/2.488, allocations: 390.3 MB / 0.6653 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003652, allocations: 12 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7601/0.7605, allocations: 142.3 MB / 0.9536 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N): time 0.011/0.7715, allocations: 10.44 MB / 0.9638 GB, free: 244 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00874/0.7803, allocations: 5.148 MB / 0.9688 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.7816, allocations: 29.06 kB / 0.9688 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.7826, allocations: 335 kB / 0.9692 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001924/0.7846, allocations: 0.5438 MB / 0.9697 GB, free: 11.49 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001985/0.7866, allocations: 0.6116 MB / 0.9703 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002134/0.7887, allocations: 1.2 MB / 0.9715 GB, free: 10.24 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005725/0.7945, allocations: 3.859 MB / 0.9752 GB, free: 8.262 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001375/0.7959, allocations: 0.6449 MB / 0.9759 GB, free: 7.902 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001092/0.797, allocations: 0.7437 MB / 0.9766 GB, free: 7.457 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0002045/0.7972, allocations: 101.8 kB / 0.9767 GB, free: 7.457 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00108/0.7983, allocations: 326.8 kB / 0.977 GB, free: 7.363 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0007184/0.799, allocations: 0.6817 MB / 0.9777 GB, free: 6.984 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004936/0.7995, allocations: 368.9 kB / 0.978 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.00413/0.8036, allocations: 3.264 MB / 0.9812 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.8037, allocations: 3.938 kB / 0.9812 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.495e-06/0.8037, allocations: 0 / 0.9812 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.2e-05/0.8038, allocations: 4 kB / 0.9812 GB, free: 3.781 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: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.00441/0.8082, allocations: 1.761 MB / 0.9829 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.027e-05/0.8082, allocations: 12.02 kB / 0.9829 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003997/0.8087, allocations: 260.7 kB / 0.9832 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003166/0.8118, allocations: 0.7627 MB / 0.9839 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002612/0.8145, allocations: 1.231 MB / 0.9851 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.353e-05/0.8145, allocations: 131.1 kB / 0.9853 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002563/0.8148, allocations: 156 kB / 0.9854 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004509/0.8193, allocations: 2.925 MB / 0.9883 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.057e-05/0.8194, allocations: 11.84 kB / 0.9883 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001723/0.8196, allocations: 67.98 kB / 0.9883 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003877/0.82, allocations: 199 kB / 0.9885 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004/0.824, allocations: 2.511 MB / 0.991 GB, free: 9.59 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01258/0.8366, allocations: 10.91 MB / 1.002 GB, free: 13.78 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.8378, allocations: 0.9299 MB / 1.003 GB, free: 12.8 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/0.8379, allocations: 93.38 kB / 1.003 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.838, allocations: 38.94 kB / 1.003 GB, free: 12.65 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=46): time 2.595e-06/0.838, allocations: 0 / 1.003 GB, free: 12.65 MB / 0.7637 GB Notification: Performance of matching and sorting (n=70): time 0.02648/0.8645, allocations: 8.958 MB / 1.011 GB, free: 3.621 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.496e-05/0.8646, allocations: 85.67 kB / 1.012 GB, free: 3.52 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.8661, allocations: 0.9376 MB / 1.012 GB, free: 2.574 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001327/0.8662, allocations: 41.7 kB / 1.012 GB, free: 2.527 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005853/0.8668, allocations: 0.7736 MB / 1.013 GB, free: 1.738 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002472/0.8671, allocations: 244.5 kB / 1.013 GB, free: 1.496 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.97e-05/0.8672, allocations: 20 kB / 1.013 GB, free: 1.477 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0002012/0.8674, allocations: 398.8 kB / 1.014 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.8685, allocations: 0.7989 MB / 1.015 GB, free: 284 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/0.8699, allocations: 1.156 MB / 1.016 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/0.8712, allocations: 0.9985 MB / 1.017 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.8712, allocations: 7.984 kB / 1.017 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.009371/0.8806, allocations: 3.787 MB / 1.02 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.001669/0.8823, allocations: 4.261 MB / 1.025 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/0.8824, allocations: 12 kB / 1.025 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008317/0.8907, allocations: 2.158 MB / 1.027 GB, free: 3.379 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009823/0.8917, allocations: 231.6 kB / 1.027 GB, free: 3.152 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01622/0.9079, allocations: 10.68 MB / 1.037 GB, free: 8.219 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.9096, allocations: 199.5 kB / 1.038 GB, free: 8.023 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.9097, allocations: 47.98 kB / 1.038 GB, free: 7.977 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.9098, allocations: 4 kB / 1.038 GB, free: 7.973 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007717/0.9175, allocations: 3.08 MB / 1.041 GB, free: 4.887 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.341e-05/0.9176, allocations: 19.89 kB / 1.041 GB, free: 4.867 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005337/0.9229, allocations: 1.356 MB / 1.042 GB, free: 3.508 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.9242, allocations: 295.5 kB / 1.042 GB, free: 3.219 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/0.9354, allocations: 6.383 MB / 1.048 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.9371, allocations: 171.7 kB / 1.049 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000262/0.9374, allocations: 47.98 kB / 1.049 GB, free: 12.48 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (97): * Single equations (assignments): 95 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.001873/0.9393, allocations: 0.8949 MB / 1.05 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/0.9396, allocations: 90.92 kB / 1.05 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009418/0.949, allocations: 3.32 MB / 1.053 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-05/0.9491, allocations: 12 kB / 1.053 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.9491, allocations: 0 / 1.053 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.9491, allocations: 3.984 kB / 1.053 GB, free: 8.129 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01385/0.963, allocations: 5.501 MB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/0.963, allocations: 4 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004691/0.9635, allocations: 107.8 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007674/0.9712, allocations: 1.973 MB / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001599/0.9714, allocations: 16.19 kB / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01572/0.9871, allocations: 10.08 MB / 1.07 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.106e-06/0.9871, allocations: 4 kB / 1.07 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008737/0.9959, allocations: 3.297 MB / 1.073 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009729/0.9969, allocations: 339.9 kB / 1.074 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003154/0.9973, allocations: 16 kB / 1.074 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.9984, allocations: 147.8 kB / 1.074 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003329/0.9987, allocations: 60.47 kB / 1.074 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.438e-05/0.9988, allocations: 20 kB / 1.074 GB, free: 2.066 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001336/1, allocations: 0.6746 MB / 1.075 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.6e-07/1, allocations: 0 / 1.075 GB, free: 1.398 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003174/1.003, allocations: 0.7031 MB / 1.075 GB, free: 0.6953 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 12} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.009641/1.013, allocations: 4.447 MB / 1.08 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.008511/1.022, allocations: 3.917 MB / 1.083 GB, free: 8.199 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/1.022, allocations: 0 / 1.083 GB, free: 8.199 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.002426/1.024, allocations: 1.305 MB / 1.085 GB, free: 6.867 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/1.026, allocations: 248.8 kB / 1.085 GB, free: 6.625 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02902/1.055, allocations: 18.58 MB / 1.103 GB, free: 3.68 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002319/1.057, allocations: 1.754 MB / 1.105 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001579/1.059, allocations: 0.5148 MB / 1.105 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000857/1.059, allocations: 0.4993 MB / 1.106 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of SimCode: time 1.633e-06/1.059, allocations: 0 / 1.106 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07104/1.13, allocations: 41.82 MB / 1.147 GB, free: 7.48 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002721/1.131, allocations: 247.1 kB / 1.147 GB, free: 7.234 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.414/3.544, allocations: 7.938 kB / 1.147 GB, free: 7.227 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat does not exist to compare? outputFormat=mat