Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_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_latest_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.0009515/0.0009517, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001112/0.001112, allocations: 172.7 kB / 15.95 MB, free: 208 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.438/1.438, allocations: 223.2 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.732/2.732, allocations: 409.4 MB / 0.684 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003731, allocations: 8 kB / 0.8378 GB, free: 6.516 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7901/0.7905, allocations: 146.8 MB / 0.9811 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.00704/0.7976, allocations: 6.055 MB / 0.9871 GB, free: 204 kB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004613/0.8022, allocations: 2.897 MB / 0.9899 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005401/0.8028, allocations: 27.81 kB / 0.9899 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.000377/0.8032, allocations: 130.9 kB / 0.99 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.00103/0.8042, allocations: 421.7 kB / 0.9904 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009014/0.8052, allocations: 342.2 kB / 0.9908 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001409/0.8066, allocations: 1.326 MB / 0.9921 GB, free: 11.06 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001659/0.8082, allocations: 0.9365 MB / 0.993 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006602/0.8089, allocations: 390.4 kB / 0.9933 GB, free: 9.719 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006229/0.8095, allocations: 494.2 kB / 0.9938 GB, free: 9.234 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.233e-05/0.8096, allocations: 36 kB / 0.9939 GB, free: 9.199 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005336/0.8102, allocations: 187.8 kB / 0.994 GB, free: 9.016 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002572/0.8104, allocations: 267.2 kB / 0.9943 GB, free: 8.754 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.8106, allocations: 177.3 kB / 0.9945 GB, free: 8.574 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0008547/0.8115, allocations: 0.9099 MB / 0.9953 GB, free: 7.664 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.8115, allocations: 0 / 0.9953 GB, free: 7.664 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.994e-06/0.8115, allocations: 4 kB / 0.9953 GB, free: 7.66 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.008e-05/0.8115, allocations: 0 / 0.9953 GB, free: 7.66 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001662/0.8132, allocations: 1.013 MB / 0.9963 GB, free: 6.598 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.8132, allocations: 8.031 kB / 0.9963 GB, free: 6.59 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/0.8134, allocations: 122.5 kB / 0.9965 GB, free: 6.461 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001433/0.8148, allocations: 238.7 kB / 0.9967 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008194/0.8157, allocations: 0.5365 MB / 0.9972 GB, free: 5.645 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.768e-05/0.8157, allocations: 49.3 kB / 0.9973 GB, free: 5.598 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.8158, allocations: 67.94 kB / 0.9973 GB, free: 5.531 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.8174, allocations: 1.073 MB / 0.9984 GB, free: 4.344 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.8174, allocations: 7.938 kB / 0.9984 GB, free: 4.336 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.176e-05/0.8175, allocations: 31.98 kB / 0.9984 GB, free: 4.305 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001394/0.8177, allocations: 81.25 kB / 0.9985 GB, free: 4.227 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.8188, allocations: 0.7503 MB / 0.9992 GB, free: 3.477 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005342/0.8241, allocations: 5.905 MB / 1.005 GB, free: 13.14 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009713/0.8251, allocations: 0.5554 MB / 1.006 GB, free: 12.57 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004263/0.8256, allocations: 326 kB / 1.006 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 3.608e-05/0.8256, allocations: 4.438 kB / 1.006 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.8257, allocations: 39 kB / 1.006 GB, free: 12.2 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=47): time 3.287e-06/0.8257, allocations: 0 / 1.006 GB, free: 12.2 MB / 0.7637 GB Notification: Performance of matching and sorting (n=48): time 0.0037/0.8294, allocations: 1.986 MB / 1.008 GB, free: 10.12 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.8294, allocations: 55.84 kB / 1.008 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006086/0.8301, allocations: 0.5587 MB / 1.008 GB, free: 9.492 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.8301, allocations: 37.64 kB / 1.008 GB, free: 9.449 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/0.8304, allocations: 414.9 kB / 1.009 GB, free: 9.039 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.8305, allocations: 173.6 kB / 1.009 GB, free: 8.867 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.109e-05/0.8306, allocations: 12 kB / 1.009 GB, free: 8.855 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.8307, allocations: 378.8 kB / 1.009 GB, free: 8.477 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003866/0.8311, allocations: 273.8 kB / 1.01 GB, free: 8.207 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005314/0.8317, allocations: 488.9 kB / 1.01 GB, free: 7.637 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004899/0.8322, allocations: 358 kB / 1.01 GB, free: 7.289 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.8322, allocations: 0 / 1.01 GB, free: 7.289 MB / 0.7637 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001694/0.8339, allocations: 1.079 MB / 1.012 GB, free: 6.191 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.8339, allocations: 12.08 kB / 1.012 GB, free: 6.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.8339, allocations: 12 kB / 1.012 GB, free: 6.168 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007778/0.8347, allocations: 279.1 kB / 1.012 GB, free: 5.883 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004533/0.8352, allocations: 123.8 kB / 1.012 GB, free: 5.762 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006385/0.8416, allocations: 6.595 MB / 1.018 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007024/0.8423, allocations: 39.97 kB / 1.018 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.181e-05/0.8424, allocations: 28 kB / 1.018 GB, free: 14.56 MB / 0.7794 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.0004503/0.8428, allocations: 257.8 kB / 1.019 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.8429, allocations: 67.25 kB / 1.019 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001576/0.8445, allocations: 0.8886 MB / 1.02 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.8446, allocations: 8 kB / 1.02 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.8446, allocations: 7.953 kB / 1.02 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.8446, allocations: 3.984 kB / 1.02 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00261/0.8473, allocations: 1.713 MB / 1.021 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.8473, allocations: 0 / 1.021 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002587/0.8475, allocations: 63.89 kB / 1.021 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006969/0.8482, allocations: 267.4 kB / 1.022 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.651e-05/0.8483, allocations: 12 kB / 1.022 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006099/0.8544, allocations: 6.596 MB / 1.028 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.8544, allocations: 0 / 1.028 GB, free: 4.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.8561, allocations: 0.9873 MB / 1.029 GB, free: 2.988 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002815/0.8564, allocations: 196.1 kB / 1.029 GB, free: 2.777 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.72e-05/0.8564, allocations: 12 kB / 1.029 GB, free: 2.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003266/0.8568, allocations: 27.97 kB / 1.029 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.8569, allocations: 43.94 kB / 1.029 GB, free: 2.695 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.8569, allocations: 12 kB / 1.029 GB, free: 2.684 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004481/0.8574, allocations: 383.1 kB / 1.03 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8574, allocations: 0 / 1.03 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0008365/0.8582, allocations: 228 kB / 1.03 GB, free: 2.094 MB / 0.7794 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.001768/0.86, allocations: 1.54 MB / 1.031 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001952/0.862, allocations: 1.26 MB / 1.033 GB, free: 15.19 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.862, allocations: 0 / 1.033 GB, free: 15.19 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.8633, allocations: 0.8894 MB / 1.033 GB, free: 14.25 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.8645, allocations: 212.2 kB / 1.034 GB, free: 14.04 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006511/0.871, allocations: 4.427 MB / 1.038 GB, free: 9.43 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006487/0.8717, allocations: 1.013 MB / 1.039 GB, free: 8.387 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004579/0.8722, allocations: 114 kB / 1.039 GB, free: 8.273 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000318/0.8725, allocations: 255.3 kB / 1.039 GB, free: 8.023 MB / 0.795 GB Notification: Performance of SimCode: time 6.01e-07/0.8725, allocations: 0 / 1.039 GB, free: 8.023 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03153/0.904, allocations: 16.34 MB / 1.055 GB, free: 8.039 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/0.9043, allocations: 223.8 kB / 1.056 GB, free: 7.805 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.112/3.017, allocations: 7.375 kB / 1.056 GB, free: 7.801 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat does not exist to compare? outputFormat=mat