Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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.002203/0.002203, allocations: 99.7 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.001934/0.001934, 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 2.59/2.59, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.714/4.714, allocations: 409.2 MB / 0.6838 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007785/0.0007793, allocations: 8 kB / 0.8375 GB, free: 6.523 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.721/1.722, allocations: 146.8 MB / 0.9809 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.05822/1.78, allocations: 30.61 MB / 1.011 GB, free: 7.578 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.03205/1.812, allocations: 9.668 MB / 1.02 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007483/1.82, allocations: 119.2 kB / 1.02 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.005759/1.826, allocations: 0.6754 MB / 1.021 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.01294/1.839, allocations: 1.573 MB / 1.023 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.008022/1.847, allocations: 1.171 MB / 1.024 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01627/1.863, allocations: 3.881 MB / 1.027 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.03207/1.895, allocations: 10.39 MB / 1.038 GB, free: 11.99 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00867/1.904, allocations: 2.129 MB / 1.04 GB, free: 9.852 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008775/1.913, allocations: 2.203 MB / 1.042 GB, free: 7.641 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.002819/1.916, allocations: 280 kB / 1.042 GB, free: 7.367 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006893/1.923, allocations: 0.5307 MB / 1.043 GB, free: 6.836 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.007376/1.93, allocations: 1.918 MB / 1.044 GB, free: 4.914 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.006422/1.937, allocations: 1.034 MB / 1.046 GB, free: 3.871 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0221/1.959, allocations: 8.406 MB / 1.054 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.187e-05/1.959, allocations: 0 / 1.054 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.532e-06/1.959, allocations: 0 / 1.054 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0006363/1.96, allocations: 4 kB / 1.054 GB, free: 11.44 MB / 0.8106 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.02608/1.986, allocations: 4.367 MB / 1.058 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 9.171e-05/1.986, allocations: 15.97 kB / 1.058 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005388/1.991, allocations: 0.7021 MB / 1.059 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01203/2.003, allocations: 0.9072 MB / 1.06 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01506/2.019, allocations: 2.921 MB / 1.062 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009307/2.02, allocations: 361.6 kB / 1.063 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003867/2.024, allocations: 463.9 kB / 1.063 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03727/2.061, allocations: 7.828 MB / 1.071 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004034/2.061, allocations: 19.78 kB / 1.071 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003574/2.065, allocations: 212 kB / 1.071 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001151/2.066, allocations: 369.1 kB / 1.071 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02696/2.093, allocations: 5.894 MB / 1.077 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09241/2.186, allocations: 36.25 MB / 1.113 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00711/2.193, allocations: 2.135 MB / 1.115 GB, free: 9.262 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002397/2.193, allocations: 17.31 kB / 1.115 GB, free: 9.246 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001021/2.193, allocations: 59.72 kB / 1.115 GB, free: 9.18 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=157): time 9.127e-06/2.193, allocations: 0 / 1.115 GB, free: 9.18 MB / 0.8731 GB Notification: Performance of matching and sorting (n=160): time 0.02816/2.222, allocations: 7.54 MB / 1.122 GB, free: 1.363 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/2.222, allocations: 72.67 kB / 1.122 GB, free: 1.281 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005441/2.227, allocations: 1.845 MB / 1.124 GB, free: 15.41 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0007687/2.228, allocations: 57.7 kB / 1.124 GB, free: 15.34 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.003243/2.231, allocations: 2.119 MB / 1.126 GB, free: 13.2 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.001516/2.233, allocations: 0.5546 MB / 1.127 GB, free: 12.64 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002498/2.233, allocations: 40 kB / 1.127 GB, free: 12.6 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0004415/2.234, allocations: 394.3 kB / 1.127 GB, free: 12.21 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003292/2.237, allocations: 1.051 MB / 1.128 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003839/2.241, allocations: 1.744 MB / 1.13 GB, free: 9.094 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004239/2.245, allocations: 1.349 MB / 1.131 GB, free: 7.742 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.879e-05/2.245, allocations: 8 kB / 1.131 GB, free: 7.734 MB / 0.8887 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.01405/2.259, allocations: 3.897 MB / 1.135 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/2.259, allocations: 19.95 kB / 1.135 GB, free: 3.77 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.432e-05/2.259, allocations: 20 kB / 1.135 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005007/2.264, allocations: 0.9354 MB / 1.136 GB, free: 2.777 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003308/2.268, allocations: 431.3 kB / 1.136 GB, free: 2.355 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03975/2.308, allocations: 21.43 MB / 1.157 GB, free: 11.32 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004787/2.313, allocations: 131.9 kB / 1.157 GB, free: 11.2 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008061/2.313, allocations: 92 kB / 1.157 GB, free: 11.11 MB / 0.92 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.006993/2.32, allocations: 1.645 MB / 1.159 GB, free: 9.449 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001414/2.322, allocations: 257 kB / 1.159 GB, free: 9.195 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/2.333, allocations: 3.248 MB / 1.162 GB, free: 5.902 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-05/2.333, allocations: 16 kB / 1.162 GB, free: 5.887 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.923e-05/2.333, allocations: 8 kB / 1.162 GB, free: 5.879 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.354e-05/2.333, allocations: 7.969 kB / 1.162 GB, free: 5.871 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02757/2.361, allocations: 7.537 MB / 1.17 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.763e-05/2.361, allocations: 4 kB / 1.17 GB, free: 14.17 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002045/2.363, allocations: 223.6 kB / 1.17 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004351/2.367, allocations: 0.8887 MB / 1.171 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004363/2.368, allocations: 32 kB / 1.171 GB, free: 13 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03763/2.405, allocations: 21.39 MB / 1.192 GB, free: 6.004 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.661e-05/2.406, allocations: 8.312 kB / 1.192 GB, free: 5.996 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/2.417, allocations: 3.693 MB / 1.195 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003649/2.421, allocations: 0.5331 MB / 1.196 GB, free: 1.508 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001064/2.422, allocations: 40.17 kB / 1.196 GB, free: 1.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002702/2.425, allocations: 99.88 kB / 1.196 GB, free: 1.371 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007907/2.426, allocations: 137 kB / 1.196 GB, free: 1.238 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002748/2.426, allocations: 44 kB / 1.196 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.003922/2.43, allocations: 1.209 MB / 1.197 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9.52e-07/2.43, allocations: 3.938 kB / 1.197 GB, free: 15.97 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.008515/2.438, allocations: 0.9023 MB / 1.198 GB, free: 15.07 MB / 0.9669 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.01263/2.451, allocations: 5.419 MB / 1.204 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.01318/2.464, allocations: 4.408 MB / 1.208 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.093e-05/2.465, allocations: 5 kB / 1.208 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.008021/2.473, allocations: 2.999 MB / 1.211 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007612/2.48, allocations: 0.7312 MB / 1.212 GB, free: 1 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08894/2.569, allocations: 36.51 MB / 1.247 GB, free: 10.85 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01004/2.579, allocations: 3.294 MB / 1.25 GB, free: 7.523 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.004128/2.584, allocations: 0.5254 MB / 1.251 GB, free: 6.992 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004633/2.588, allocations: 1.659 MB / 1.253 GB, free: 5.332 MB / 1.014 GB Notification: Performance of SimCode: time 4.077e-06/2.588, allocations: 0 / 1.253 GB, free: 5.332 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.603/4.192, allocations: 68.65 MB / 1.32 GB, free: 215 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005709/4.192, allocations: 220.4 kB / 1.32 GB, free: 214.8 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.619/11.81, allocations: 4.062 kB / 1.32 GB, free: 214.8 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat