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.001538/0.001539, allocations: 100.1 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.001583/0.001583, 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.453/1.453, allocations: 223.2 MB / 239.9 MB, free: 5.453 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.394/2.394, allocations: 390.3 MB / 0.6653 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003835/0.0003836, allocations: 8 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8204/0.8208, allocations: 142.3 MB / 0.9536 GB, free: 8.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03531/0.8562, allocations: 30.61 MB / 0.9835 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01941/0.8757, allocations: 9.65 MB / 0.9929 GB, free: 7.805 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004808/0.8805, allocations: 119.2 kB / 0.993 GB, free: 7.688 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.004137/0.8847, allocations: 0.6754 MB / 0.9937 GB, free: 7.008 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.009666/0.8944, allocations: 1.581 MB / 0.9952 GB, free: 5.422 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.005247/0.8997, allocations: 1.156 MB / 0.9964 GB, free: 4.27 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.008639/0.9083, allocations: 3.893 MB / 1 GB, free: 376 kB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01801/0.9264, allocations: 10.41 MB / 1.01 GB, free: 5.883 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005296/0.9318, allocations: 2.129 MB / 1.012 GB, free: 3.746 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005096/0.9369, allocations: 2.203 MB / 1.015 GB, free: 1.535 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.00166/0.9386, allocations: 280 kB / 1.015 GB, free: 1.262 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00352/0.9421, allocations: 0.5346 MB / 1.015 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.003324/0.9455, allocations: 1.921 MB / 1.017 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.002426/0.9479, allocations: 1.03 MB / 1.018 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.9583, allocations: 8.402 MB / 1.026 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.9584, allocations: 0 / 1.026 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.416e-06/0.9584, allocations: 0 / 1.026 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.000412/0.9588, allocations: 0 / 1.026 GB, free: 5.34 MB / 0.7794 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.01718/0.976, allocations: 4.379 MB / 1.031 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.001e-05/0.9761, allocations: 8.031 kB / 1.031 GB, free: 0.8828 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002813/0.9789, allocations: 0.706 MB / 1.031 GB, free: 172 kB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00493/0.9838, allocations: 0.9074 MB / 1.032 GB, free: 15.25 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007858/0.9917, allocations: 2.921 MB / 1.035 GB, free: 12.27 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003461/0.9921, allocations: 357.6 kB / 1.035 GB, free: 11.92 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001826/0.994, allocations: 468 kB / 1.036 GB, free: 11.46 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01709/1.011, allocations: 7.828 MB / 1.044 GB, free: 3.27 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001242/1.011, allocations: 23.78 kB / 1.044 GB, free: 3.246 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005443/1.012, allocations: 207.8 kB / 1.044 GB, free: 3.047 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005556/1.012, allocations: 369.1 kB / 1.044 GB, free: 2.684 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01256/1.025, allocations: 5.898 MB / 1.05 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04696/1.072, allocations: 36.24 MB / 1.085 GB, free: 5.293 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003713/1.076, allocations: 2.134 MB / 1.087 GB, free: 3.145 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001406/1.076, allocations: 21.3 kB / 1.087 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.311e-05/1.076, allocations: 51.88 kB / 1.087 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=157): time 3.838e-06/1.076, allocations: 4 kB / 1.087 GB, free: 3.062 MB / 0.8419 GB Notification: Performance of matching and sorting (n=160): time 0.01481/1.091, allocations: 7.536 MB / 1.095 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/1.091, allocations: 68.72 kB / 1.095 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003098/1.094, allocations: 1.845 MB / 1.097 GB, free: 9.301 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.000228/1.094, allocations: 53.7 kB / 1.097 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001493/1.096, allocations: 2.123 MB / 1.099 GB, free: 7.094 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006069/1.096, allocations: 0.5546 MB / 1.099 GB, free: 6.531 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/1.097, allocations: 44 kB / 1.099 GB, free: 6.488 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001981/1.097, allocations: 398.3 kB / 1.1 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001663/1.098, allocations: 1.047 MB / 1.101 GB, free: 5.043 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00209/1.101, allocations: 1.752 MB / 1.103 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001983/1.103, allocations: 1.341 MB / 1.104 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.869e-05/1.103, allocations: 8 kB / 1.104 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006522/1.109, allocations: 3.909 MB / 1.108 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.305e-05/1.109, allocations: 16 kB / 1.108 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-05/1.109, allocations: 20 kB / 1.108 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00238/1.112, allocations: 0.9312 MB / 1.109 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001663/1.113, allocations: 431.2 kB / 1.109 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01949/1.133, allocations: 21.42 MB / 1.13 GB, free: 5.219 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002551/1.135, allocations: 123.9 kB / 1.13 GB, free: 5.098 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004837/1.136, allocations: 92 kB / 1.13 GB, free: 5.008 MB / 0.8887 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.003518/1.139, allocations: 1.651 MB / 1.132 GB, free: 3.348 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008168/1.14, allocations: 261 kB / 1.132 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005852/1.146, allocations: 3.248 MB / 1.135 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.89e-05/1.146, allocations: 16 kB / 1.135 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-05/1.146, allocations: 12 kB / 1.135 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-05/1.146, allocations: 11.97 kB / 1.135 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/1.159, allocations: 7.541 MB / 1.143 GB, free: 8.059 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/1.159, allocations: 4 kB / 1.143 GB, free: 8.055 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009034/1.16, allocations: 215.6 kB / 1.143 GB, free: 7.844 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00223/1.162, allocations: 0.8885 MB / 1.144 GB, free: 6.918 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001388/1.162, allocations: 35.94 kB / 1.144 GB, free: 6.883 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01878/1.181, allocations: 21.38 MB / 1.165 GB, free: 15.9 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.181, allocations: 15.98 kB / 1.165 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005777/1.187, allocations: 3.701 MB / 1.168 GB, free: 11.94 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001555/1.189, allocations: 0.5331 MB / 1.169 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004224/1.189, allocations: 32 kB / 1.169 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/1.19, allocations: 91.88 kB / 1.169 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003809/1.191, allocations: 137 kB / 1.169 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/1.191, allocations: 48 kB / 1.169 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001742/1.192, allocations: 1.205 MB / 1.17 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/1.192, allocations: 0 / 1.17 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00354/1.196, allocations: 0.9062 MB / 1.171 GB, free: 8.961 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.006023/1.202, allocations: 5.423 MB / 1.176 GB, free: 3.344 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.006635/1.209, allocations: 4.404 MB / 1.181 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.846e-05/1.209, allocations: 0 / 1.181 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.004221/1.213, allocations: 3 MB / 1.184 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003612/1.217, allocations: 0.7471 MB / 1.184 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04848/1.265, allocations: 36.51 MB / 1.22 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004353/1.27, allocations: 3.294 MB / 1.223 GB, free: 1.41 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.00238/1.272, allocations: 0.5254 MB / 1.224 GB, free: 0.8789 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002228/1.274, allocations: 1.659 MB / 1.225 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of SimCode: time 8.72e-07/1.274, allocations: 0 / 1.225 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6939/1.968, allocations: 68.67 MB / 1.292 GB, free: 262.5 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/1.968, allocations: 221.3 kB / 1.293 GB, free: 262.3 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.329/5.298, allocations: 1.875 kB / 1.293 GB, free: 262.3 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