Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.001057/0.001057, allocations: 99.62 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.001159/0.001159, 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.469/1.469, allocations: 223.2 MB / 239.9 MB, free: 5.457 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.486/2.486, allocations: 390.3 MB / 0.6653 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004276/0.0004277, allocations: 8 kB / 0.8146 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.855/0.8554, allocations: 142.3 MB / 0.9536 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01399/0.8695, allocations: 12.49 MB / 0.9658 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01531/0.8848, allocations: 9.43 MB / 0.975 GB, free: 7.27 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001947/0.8868, allocations: 48.62 kB / 0.9751 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001332/0.8881, allocations: 262.7 kB / 0.9753 GB, free: 7.016 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.005652/0.8938, allocations: 1.474 MB / 0.9767 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001939/0.8958, allocations: 0.5165 MB / 0.9772 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004154/0.8999, allocations: 1.753 MB / 0.979 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004026/0.904, allocations: 1.801 MB / 0.9807 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002817/0.9068, allocations: 1.201 MB / 0.9819 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002297/0.9091, allocations: 0.8442 MB / 0.9827 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0005187/0.9096, allocations: 73.7 kB / 0.9828 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001746/0.9114, allocations: 385.9 kB / 0.9832 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0007602/0.9122, allocations: 466.5 kB / 0.9836 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0008309/0.913, allocations: 352.8 kB / 0.9839 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003061/0.9161, allocations: 2.079 MB / 0.986 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.9161, allocations: 0 / 0.986 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.114e-06/0.9161, allocations: 0 / 0.986 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 5.69e-05/0.9162, allocations: 3.938 kB / 0.986 GB, free: 14.85 MB / 0.7481 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.003509/0.9197, allocations: 1.851 MB / 0.9878 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.9198, allocations: 8.031 kB / 0.9878 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002882/0.9201, allocations: 198.2 kB / 0.988 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01131/0.9314, allocations: 2.182 MB / 0.9901 GB, free: 10.55 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003148/0.9346, allocations: 1.17 MB / 0.9912 GB, free: 9.32 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.516e-05/0.9347, allocations: 94.27 kB / 0.9913 GB, free: 9.227 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002938/0.935, allocations: 112 kB / 0.9914 GB, free: 9.117 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005765/0.9407, allocations: 2.678 MB / 0.9941 GB, free: 6.289 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.898e-05/0.9408, allocations: 7.906 kB / 0.9941 GB, free: 6.281 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001668/0.941, allocations: 55.98 kB / 0.9941 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006621/0.9416, allocations: 194.1 kB / 0.9943 GB, free: 6.035 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007672/0.9493, allocations: 2.834 MB / 0.9971 GB, free: 3.191 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01729/0.9667, allocations: 10.56 MB / 1.007 GB, free: 8.051 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006412/0.9731, allocations: 2.391 MB / 1.01 GB, free: 5.633 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001028/0.9732, allocations: 9 kB / 1.01 GB, free: 5.625 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.9733, allocations: 43.56 kB / 1.01 GB, free: 5.574 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=89): time 3.808e-06/0.9733, allocations: 0 / 1.01 GB, free: 5.574 MB / 0.7637 GB Notification: Performance of matching and sorting (n=153): time 0.05716/1.03, allocations: 16.49 MB / 1.026 GB, free: 4.926 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/1.031, allocations: 68.72 kB / 1.026 GB, free: 4.848 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001525/1.032, allocations: 1.16 MB / 1.027 GB, free: 3.676 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0003119/1.032, allocations: 53.7 kB / 1.027 GB, free: 3.617 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005205/1.033, allocations: 0.7398 MB / 1.028 GB, free: 2.871 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004913/1.033, allocations: 0.5237 MB / 1.028 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001202/1.034, allocations: 28 kB / 1.028 GB, free: 2.312 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001589/1.034, allocations: 369.9 kB / 1.029 GB, free: 1.945 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003441/1.037, allocations: 1.518 MB / 1.03 GB, free: 436 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00362/1.041, allocations: 1.795 MB / 1.032 GB, free: 14.53 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003645/1.044, allocations: 1.638 MB / 1.034 GB, free: 12.89 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/1.045, allocations: 7.953 kB / 1.034 GB, free: 12.89 MB / 0.795 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01317/1.058, allocations: 5.292 MB / 1.039 GB, free: 7.555 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/1.058, allocations: 9.719 kB / 1.039 GB, free: 7.547 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/1.058, allocations: 8 kB / 1.039 GB, free: 7.539 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006678/1.064, allocations: 1.901 MB / 1.041 GB, free: 5.617 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00202/1.067, allocations: 415.3 kB / 1.041 GB, free: 5.211 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02662/1.093, allocations: 22.86 MB / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002989/1.096, allocations: 319.6 kB / 1.064 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003484/1.097, allocations: 63.97 kB / 1.064 GB, free: 12.92 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 17,(3,100.0%) 17,(3,100.0%) 15,(3,100.0%) 15,(2,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001221/1.098, allocations: 469.4 kB / 1.064 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005694/1.098, allocations: 169.9 kB / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01455/1.113, allocations: 5.344 MB / 1.07 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.193e-05/1.113, allocations: 12 kB / 1.07 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.645e-05/1.113, allocations: 20 kB / 1.07 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.63e-05/1.113, allocations: 7.969 kB / 1.07 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01722/1.13, allocations: 7.465 MB / 1.077 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/1.13, allocations: 4 kB / 1.077 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/1.132, allocations: 363.7 kB / 1.077 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006148/1.138, allocations: 1.698 MB / 1.079 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002667/1.139, allocations: 51.89 kB / 1.079 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02781/1.166, allocations: 22.03 MB / 1.1 GB, free: 6.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/1.166, allocations: 4.031 kB / 1.1 GB, free: 6.035 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01312/1.18, allocations: 5.078 MB / 1.105 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/1.181, allocations: 494.7 kB / 1.106 GB, free: 296 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000618/1.182, allocations: 31.98 kB / 1.106 GB, free: 264 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002479/1.184, allocations: 327.5 kB / 1.106 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006123/1.185, allocations: 149 kB / 1.106 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000222/1.185, allocations: 55.97 kB / 1.106 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001406/1.187, allocations: 0.7782 MB / 1.107 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.71e-07/1.187, allocations: 4 kB / 1.107 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002837/1.19, allocations: 0.6563 MB / 1.108 GB, free: 14.3 MB / 0.8731 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(3,100.0%) 15,(2,100.0%) 8,(3,100.0%) 17,(2,100.0%) 8,(3,100.0%) 15,(2,100.0%) 8,(3,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01355/1.203, allocations: 6.382 MB / 1.114 GB, free: 7.781 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01236/1.215, allocations: 5.176 MB / 1.119 GB, free: 2.5 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.498e-05/1.216, allocations: 4 kB / 1.119 GB, free: 2.496 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.007678/1.223, allocations: 3.374 MB / 1.122 GB, free: 15.02 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/1.226, allocations: 0.4975 MB / 1.123 GB, free: 14.52 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0394/1.265, allocations: 20.61 MB / 1.143 GB, free: 9.191 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001878/1.267, allocations: 1.603 MB / 1.145 GB, free: 7.551 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001967/1.269, allocations: 386.4 kB / 1.145 GB, free: 7.168 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/1.27, allocations: 0.6593 MB / 1.146 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of SimCode: time 1.362e-06/1.27, allocations: 0 / 1.146 GB, free: 6.508 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.103/1.373, allocations: 56.13 MB / 1.2 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002363/1.374, allocations: 229 kB / 1.201 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.34/4.714, allocations: 0 / 1.201 GB, free: 14.84 MB / 0.9669 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat does not exist to compare? outputFormat=mat