Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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_L,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L",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.001102/0.001102, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001195/0.001195, allocations: 168.7 kB / 15.95 MB, free: 204 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.576/1.576, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.554/2.554, allocations: 409.4 MB / 0.684 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003507, allocations: 19.98 kB / 0.8378 GB, free: 6.469 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7738/0.7741, allocations: 146.8 MB / 0.9812 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03156/0.8057, allocations: 29.73 MB / 1.01 GB, free: 8.43 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01605/0.8218, allocations: 9.741 MB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003296/0.8252, allocations: 127.2 kB / 1.02 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002212/0.8274, allocations: 0.6162 MB / 1.02 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00484/0.8323, allocations: 1.473 MB / 1.022 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004519/0.8368, allocations: 1.261 MB / 1.023 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01038/0.8472, allocations: 8.27 MB / 1.031 GB, free: 2.887 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01711/0.8644, allocations: 10.33 MB / 1.041 GB, free: 8.48 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005857/0.8703, allocations: 2.26 MB / 1.043 GB, free: 6.211 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007089/0.8774, allocations: 2.896 MB / 1.046 GB, free: 3.305 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.001224/0.8787, allocations: 268 kB / 1.047 GB, free: 3.043 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003258/0.882, allocations: 0.8389 MB / 1.047 GB, free: 2.203 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.003012/0.885, allocations: 2.034 MB / 1.049 GB, free: 168 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.00207/0.8871, allocations: 0.9603 MB / 1.05 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.898, allocations: 8.351 MB / 1.058 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.898, allocations: 0 / 1.058 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of FrontEnd: time 4.148e-06/0.898, allocations: 0 / 1.058 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0003152/0.8984, allocations: 0 / 1.058 GB, free: 6.824 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: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.009481/0.9078, allocations: 4.062 MB / 1.062 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.9079, allocations: 11.97 kB / 1.062 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001719/0.9096, allocations: 0.6818 MB / 1.063 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005277/0.9149, allocations: 0.9581 MB / 1.064 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005418/0.9204, allocations: 2.8 MB / 1.067 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/0.9206, allocations: 345.3 kB / 1.067 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006996/0.9213, allocations: 475.7 kB / 1.068 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01349/0.9348, allocations: 7.628 MB / 1.075 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001237/0.935, allocations: 23.78 kB / 1.075 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004585/0.9354, allocations: 200 kB / 1.075 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000346/0.9358, allocations: 316.9 kB / 1.076 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0103/0.9461, allocations: 5.671 MB / 1.081 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03724/0.9834, allocations: 35.12 MB / 1.115 GB, free: 8.84 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002691/0.9861, allocations: 2.149 MB / 1.117 GB, free: 6.574 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001471/0.9876, allocations: 1.272 MB / 1.119 GB, free: 5.297 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 8.31e-05/0.9877, allocations: 17.3 kB / 1.119 GB, free: 5.281 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.9877, allocations: 51.81 kB / 1.119 GB, free: 5.219 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=133): time 2.855e-06/0.9878, allocations: 4 kB / 1.119 GB, free: 5.215 MB / 0.8731 GB Notification: Performance of matching and sorting (n=136): time 0.01268/1, allocations: 7.073 MB / 1.126 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/1.001, allocations: 68.67 kB / 1.126 GB, free: 13.79 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001889/1.002, allocations: 1.472 MB / 1.127 GB, free: 12.27 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 9.206e-05/1.003, allocations: 49.7 kB / 1.127 GB, free: 12.22 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001233/1.004, allocations: 2.008 MB / 1.129 GB, free: 10.18 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004182/1.004, allocations: 489.1 kB / 1.13 GB, free: 9.699 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.12e-05/1.004, allocations: 36 kB / 1.13 GB, free: 9.664 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001903/1.004, allocations: 381.9 kB / 1.13 GB, free: 9.285 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/1.006, allocations: 0.9057 MB / 1.131 GB, free: 8.379 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001699/1.008, allocations: 1.585 MB / 1.132 GB, free: 6.484 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001585/1.009, allocations: 1.181 MB / 1.134 GB, free: 5.301 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/1.009, allocations: 4 kB / 1.134 GB, free: 5.297 MB / 0.8887 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.005835/1.015, allocations: 3.507 MB / 1.137 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.753e-05/1.015, allocations: 21.36 kB / 1.137 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/1.015, allocations: 20 kB / 1.137 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002354/1.017, allocations: 0.904 MB / 1.138 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/1.018, allocations: 351.4 kB / 1.138 GB, free: 428 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01934/1.038, allocations: 21.2 MB / 1.159 GB, free: 9.617 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/1.04, allocations: 99.86 kB / 1.159 GB, free: 9.52 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/1.04, allocations: 84 kB / 1.159 GB, free: 9.438 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 (185): * Single equations (assignments): 173 * 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,(3,77.8%) 5,(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.003281/1.043, allocations: 1.61 MB / 1.161 GB, free: 7.816 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004579/1.044, allocations: 205.5 kB / 1.161 GB, free: 7.613 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005233/1.049, allocations: 2.978 MB / 1.164 GB, free: 4.59 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/1.049, allocations: 16 kB / 1.164 GB, free: 4.574 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.838e-05/1.049, allocations: 8 kB / 1.164 GB, free: 4.566 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/1.049, allocations: 3.984 kB / 1.164 GB, free: 4.562 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01187/1.061, allocations: 7.325 MB / 1.171 GB, free: 13 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/1.061, allocations: 8 kB / 1.171 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007176/1.062, allocations: 183.7 kB / 1.171 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002126/1.064, allocations: 0.8179 MB / 1.172 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-05/1.064, allocations: 28 kB / 1.172 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01859/1.082, allocations: 20.31 MB / 1.192 GB, free: 6.02 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/1.083, allocations: 7.938 kB / 1.192 GB, free: 6.012 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005342/1.088, allocations: 3.016 MB / 1.195 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/1.089, allocations: 458.5 kB / 1.195 GB, free: 2.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002229/1.089, allocations: 32 kB / 1.195 GB, free: 2.379 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007396/1.09, allocations: 71.84 kB / 1.195 GB, free: 2.309 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004706/1.091, allocations: 124.7 kB / 1.195 GB, free: 2.188 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.626e-05/1.091, allocations: 40.19 kB / 1.196 GB, free: 2.148 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001702/1.092, allocations: 0.96 MB / 1.196 GB, free: 1.164 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.31e-07/1.092, allocations: 0 / 1.196 GB, free: 1.164 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003117/1.095, allocations: 0.7852 MB / 1.197 GB, free: 388 kB / 0.9512 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 (91): * Single equations (assignments): 79 * 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%) 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%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005318/1.101, allocations: 3.598 MB / 1.201 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.006659/1.108, allocations: 4.008 MB / 1.205 GB, free: 8.496 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.488e-05/1.108, allocations: 8.062 kB / 1.205 GB, free: 8.488 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.00372/1.111, allocations: 2.732 MB / 1.207 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003177/1.115, allocations: 0.66 MB / 1.208 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03458/1.149, allocations: 19.02 MB / 1.227 GB, free: 0.7539 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004008/1.153, allocations: 3.117 MB / 1.23 GB, free: 13.61 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001663/1.155, allocations: 461.9 kB / 1.23 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/1.157, allocations: 1.546 MB / 1.232 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of SimCode: time 1.102e-06/1.157, allocations: 0 / 1.232 GB, free: 11.61 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7018/1.859, allocations: 59.02 MB / 1.289 GB, free: 246.9 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/1.859, allocations: 232.9 kB / 1.289 GB, free: 246.7 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.985/4.844, allocations: 5.625 kB / 1.289 GB, free: 246.7 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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_L_res.mat does not exist to compare? outputFormat=mat