Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_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.0008947/0.0008948, allocations: 100.3 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.0009544/0.0009546, 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.417/1.417, allocations: 223.2 MB / 239.9 MB, free: 5.438 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.522/2.522, allocations: 390.3 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003522, allocations: 8 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8001/0.8005, allocations: 142.3 MB / 0.9536 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.006989/0.8075, allocations: 5.772 MB / 0.9592 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005201/0.8128, allocations: 2.904 MB / 0.9621 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007369/0.8136, allocations: 28.91 kB / 0.9621 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003824/0.814, allocations: 124.4 kB / 0.9622 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001211/0.8152, allocations: 420.6 kB / 0.9626 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009137/0.8161, allocations: 333.4 kB / 0.9629 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0009904/0.8171, allocations: 0.7534 MB / 0.9637 GB, free: 240 kB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001782/0.8189, allocations: 0.9403 MB / 0.9646 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000694/0.8196, allocations: 353.3 kB / 0.9649 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00064/0.8203, allocations: 391 kB / 0.9653 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 9.42e-05/0.8204, allocations: 39.34 kB / 0.9653 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005509/0.8209, allocations: 153.3 kB / 0.9655 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002966/0.8212, allocations: 247.6 kB / 0.9657 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000223/0.8215, allocations: 178.3 kB / 0.9659 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.8225, allocations: 0.8673 MB / 0.9667 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.8225, allocations: 0 / 0.9667 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.595e-06/0.8225, allocations: 0 / 0.9667 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.459e-05/0.8225, allocations: 0 / 0.9667 GB, free: 14.27 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001817/0.8243, allocations: 1.008 MB / 0.9677 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.8244, allocations: 9.344 kB / 0.9677 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.8246, allocations: 125.5 kB / 0.9679 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001332/0.8259, allocations: 215.8 kB / 0.9681 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.8269, allocations: 0.5337 MB / 0.9686 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.806e-05/0.827, allocations: 55.8 kB / 0.9686 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001293/0.8271, allocations: 69.25 kB / 0.9687 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/0.8288, allocations: 1.069 MB / 0.9697 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/0.8288, allocations: 14.69 kB / 0.9698 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.451e-05/0.8289, allocations: 34.72 kB / 0.9698 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001635/0.8291, allocations: 83.5 kB / 0.9699 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.8303, allocations: 0.7478 MB / 0.9706 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006149/0.8364, allocations: 5.886 MB / 0.9764 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.8375, allocations: 0.5571 MB / 0.9769 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.8376, allocations: 5.406 kB / 0.9769 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.8376, allocations: 38 kB / 0.9769 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 2.534e-06/0.8377, allocations: 0 / 0.9769 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.004432/0.8421, allocations: 1.984 MB / 0.9789 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.8422, allocations: 60.56 kB / 0.9789 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000825/0.843, allocations: 0.554 MB / 0.9795 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.8431, allocations: 36.83 kB / 0.9795 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002722/0.8433, allocations: 420.4 kB / 0.9799 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.8435, allocations: 172.6 kB / 0.9801 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-05/0.8435, allocations: 14.75 kB / 0.9801 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001705/0.8437, allocations: 373 kB / 0.9804 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004255/0.8442, allocations: 273.8 kB / 0.9807 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000576/0.8447, allocations: 490.8 kB / 0.9812 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005396/0.8453, allocations: 351.7 kB / 0.9815 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.8453, allocations: 2.469 kB / 0.9815 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002068/0.8474, allocations: 1.078 MB / 0.9826 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.8474, allocations: 12 kB / 0.9826 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.8474, allocations: 11.98 kB / 0.9826 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008076/0.8482, allocations: 275.1 kB / 0.9828 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000462/0.8487, allocations: 123.8 kB / 0.983 GB, free: 1.125 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00598/0.8547, allocations: 6.7 MB / 0.9895 GB, free: 9.891 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007538/0.8555, allocations: 35.95 kB / 0.9895 GB, free: 9.855 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.512e-05/0.8556, allocations: 32 kB / 0.9896 GB, free: 9.824 MB / 0.7481 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 (67): * Single equations (assignments): 63 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004348/0.856, allocations: 253.6 kB / 0.9898 GB, free: 9.566 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.8561, allocations: 79.11 kB / 0.9899 GB, free: 9.488 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.8576, allocations: 0.8848 MB / 0.9908 GB, free: 8.574 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.8576, allocations: 4 kB / 0.9908 GB, free: 8.57 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.8576, allocations: 4 kB / 0.9908 GB, free: 8.566 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.8577, allocations: 0 / 0.9908 GB, free: 8.566 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.8603, allocations: 1.724 MB / 0.9924 GB, free: 6.754 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.8603, allocations: 384 / 0.9924 GB, free: 6.754 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002679/0.8606, allocations: 63.94 kB / 0.9925 GB, free: 6.691 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007021/0.8613, allocations: 271.3 kB / 0.9928 GB, free: 6.414 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.8613, allocations: 8 kB / 0.9928 GB, free: 6.406 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006244/0.8676, allocations: 6.694 MB / 0.9993 GB, free: 15.18 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.8676, allocations: 7.969 kB / 0.9993 GB, free: 15.17 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.8695, allocations: 1.048 MB / 1 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003783/0.8699, allocations: 200.1 kB / 1.001 GB, free: 13.82 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.48e-05/0.87, allocations: 15.94 kB / 1.001 GB, free: 13.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.8704, allocations: 27.97 kB / 1.001 GB, free: 13.78 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.8705, allocations: 39.94 kB / 1.001 GB, free: 13.74 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.8705, allocations: 12 kB / 1.001 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004607/0.871, allocations: 387.1 kB / 1.001 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of sort global known variables: time 4.31e-07/0.871, allocations: 0 / 1.001 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008893/0.8719, allocations: 228 kB / 1.001 GB, free: 13.13 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002046/0.8739, allocations: 2.014 MB / 1.003 GB, free: 11.04 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001976/0.8759, allocations: 1.267 MB / 1.004 GB, free: 9.727 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/0.876, allocations: 4 kB / 1.004 GB, free: 9.723 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.8772, allocations: 0.8971 MB / 1.005 GB, free: 8.773 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.8782, allocations: 202.8 kB / 1.005 GB, free: 8.578 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008155/0.8864, allocations: 8.939 MB / 1.014 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006511/0.8871, allocations: 1.032 MB / 1.015 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0004863/0.8876, allocations: 122 kB / 1.015 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003295/0.8879, allocations: 255.4 kB / 1.016 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of SimCode: time 1.262e-06/0.8879, allocations: 0 / 1.016 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03487/0.9228, allocations: 16.3 MB / 1.032 GB, free: 14.03 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.923, allocations: 220.5 kB / 1.032 GB, free: 13.79 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.107/3.03, allocations: 6.625 kB / 1.032 GB, free: 13.79 MB / 0.795 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat