Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",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.001089/0.001089, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001327/0.001327, allocations: 172.7 kB / 15.95 MB, free: 208 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.484/1.484, allocations: 223.3 MB / 240 MB, free: 5.359 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.565/2.565, allocations: 390.4 MB / 0.6655 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004083/0.0004085, allocations: 12 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8301/0.8305, allocations: 142.3 MB / 0.9539 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03942/0.87, allocations: 32.03 MB / 0.9851 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.018/0.888, allocations: 9.487 MB / 0.9944 GB, free: 6.523 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004167/0.8922, allocations: 119.3 kB / 0.9945 GB, free: 6.406 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002654/0.8949, allocations: 0.6859 MB / 0.9952 GB, free: 5.715 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.006097/0.901, allocations: 1.64 MB / 0.9968 GB, free: 4.066 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004422/0.9054, allocations: 1.142 MB / 0.9979 GB, free: 2.926 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.01318/0.9186, allocations: 8.841 MB / 1.007 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02015/0.9388, allocations: 10.42 MB / 1.017 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005832/0.9447, allocations: 2.436 MB / 1.019 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007107/0.9518, allocations: 3.118 MB / 1.022 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.002256/0.9541, allocations: 284 kB / 1.022 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004207/0.9583, allocations: 0.6439 MB / 1.023 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.004372/0.9627, allocations: 2.089 MB / 1.025 GB, free: 6.977 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.003039/0.9658, allocations: 1.027 MB / 1.026 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.01169/0.9775, allocations: 8.558 MB / 1.034 GB, free: 13.36 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.9776, allocations: 0 / 1.034 GB, free: 13.36 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.475e-06/0.9776, allocations: 4 kB / 1.034 GB, free: 13.36 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0004036/0.978, allocations: 4 kB / 1.034 GB, free: 13.35 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01253/0.9905, allocations: 4.406 MB / 1.039 GB, free: 8.879 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.9906, allocations: 16.03 kB / 1.039 GB, free: 8.863 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002984/0.9936, allocations: 0.6943 MB / 1.039 GB, free: 8.16 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005874/0.9995, allocations: 0.9656 MB / 1.04 GB, free: 7.188 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006973/1.006, allocations: 2.929 MB / 1.043 GB, free: 4.203 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004225/1.007, allocations: 357.6 kB / 1.044 GB, free: 3.852 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001691/1.009, allocations: 467.9 kB / 1.044 GB, free: 3.395 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02047/1.029, allocations: 7.871 MB / 1.052 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003689/1.03, allocations: 23.81 kB / 1.052 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002291/1.032, allocations: 215.9 kB / 1.052 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007567/1.033, allocations: 369.1 kB / 1.052 GB, free: 10.56 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/1.048, allocations: 5.898 MB / 1.058 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04768/1.096, allocations: 36.24 MB / 1.093 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003903/1.1, allocations: 2.142 MB / 1.096 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002672/1.103, allocations: 1.494 MB / 1.097 GB, free: 9.523 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001595/1.103, allocations: 17.31 kB / 1.097 GB, free: 9.508 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.81e-05/1.103, allocations: 51.88 kB / 1.097 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=157): time 3.356e-06/1.103, allocations: 0 / 1.097 GB, free: 9.449 MB / 0.8575 GB Notification: Performance of matching and sorting (n=160): time 0.01508/1.118, allocations: 7.533 MB / 1.104 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/1.118, allocations: 68.72 kB / 1.104 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003297/1.122, allocations: 1.845 MB / 1.106 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0002244/1.122, allocations: 53.7 kB / 1.106 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001581/1.123, allocations: 2.134 MB / 1.108 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006689/1.124, allocations: 0.5624 MB / 1.109 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001763/1.124, allocations: 44 kB / 1.109 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0002079/1.124, allocations: 390.3 kB / 1.109 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001768/1.126, allocations: 1.055 MB / 1.11 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002223/1.128, allocations: 1.756 MB / 1.112 GB, free: 9.344 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002141/1.131, allocations: 1.345 MB / 1.113 GB, free: 7.996 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.841e-05/1.131, allocations: 4 kB / 1.113 GB, free: 7.992 MB / 0.8731 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006981/1.138, allocations: 3.902 MB / 1.117 GB, free: 4.043 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.445e-05/1.138, allocations: 12 kB / 1.117 GB, free: 4.031 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.206e-05/1.138, allocations: 24 kB / 1.117 GB, free: 4.008 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002501/1.14, allocations: 0.9274 MB / 1.118 GB, free: 3.043 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/1.142, allocations: 427.2 kB / 1.119 GB, free: 2.625 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02157/1.164, allocations: 21.05 MB / 1.139 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002697/1.166, allocations: 119.9 kB / 1.139 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005583/1.167, allocations: 96 kB / 1.139 GB, free: 11.76 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (227): * Single equations (assignments): 215 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0049/1.172, allocations: 1.641 MB / 1.141 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/1.173, allocations: 257.1 kB / 1.141 GB, free: 9.855 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00642/1.179, allocations: 3.26 MB / 1.144 GB, free: 6.543 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.845e-05/1.179, allocations: 16 kB / 1.144 GB, free: 6.527 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.104e-05/1.179, allocations: 12 kB / 1.144 GB, free: 6.516 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.91e-05/1.179, allocations: 7.969 kB / 1.144 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01675/1.196, allocations: 7.541 MB / 1.152 GB, free: 14.82 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.942e-05/1.196, allocations: 4 kB / 1.152 GB, free: 14.81 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/1.197, allocations: 219.6 kB / 1.152 GB, free: 14.6 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002419/1.2, allocations: 0.8925 MB / 1.153 GB, free: 13.67 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002159/1.2, allocations: 32 kB / 1.153 GB, free: 13.64 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01951/1.219, allocations: 21.01 MB / 1.173 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.22, allocations: 8.062 kB / 1.173 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006186/1.226, allocations: 3.368 MB / 1.177 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/1.227, allocations: 0.5292 MB / 1.177 GB, free: 2.973 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006997/1.228, allocations: 39.98 kB / 1.177 GB, free: 2.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/1.229, allocations: 91.89 kB / 1.177 GB, free: 2.844 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004469/1.23, allocations: 137 kB / 1.177 GB, free: 2.707 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/1.23, allocations: 52 kB / 1.178 GB, free: 2.656 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.002249/1.232, allocations: 1.201 MB / 1.179 GB, free: 1.441 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.41e-07/1.232, allocations: 0 / 1.179 GB, free: 1.441 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.004015/1.236, allocations: 0.9062 MB / 1.18 GB, free: 0.5352 MB / 0.9356 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 (109): * Single equations (assignments): 97 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006124/1.243, allocations: 3.972 MB / 1.183 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006941/1.249, allocations: 4.401 MB / 1.188 GB, free: 7.887 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.25, allocations: 8 kB / 1.188 GB, free: 7.879 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.004386/1.254, allocations: 3 MB / 1.191 GB, free: 4.723 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004816/1.259, allocations: 0.7805 MB / 1.191 GB, free: 3.945 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04367/1.302, allocations: 21.51 MB / 1.212 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005248/1.308, allocations: 3.209 MB / 1.216 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002295/1.31, allocations: 0.5332 MB / 1.216 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00239/1.313, allocations: 1.663 MB / 1.218 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of SimCode: time 1.192e-06/1.313, allocations: 0 / 1.218 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7233/2.036, allocations: 68.7 MB / 1.285 GB, free: 266.4 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/2.036, allocations: 230.2 kB / 1.285 GB, free: 266.2 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.322/5.358, allocations: 2.25 kB / 1.285 GB, free: 266.2 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat