Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",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.001034/0.001034, allocations: 99.23 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.0009078/0.000908, allocations: 177.3 kB / 15.94 MB, free: 228 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.238 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.479/2.479, allocations: 390.3 MB / 0.6653 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003457/0.0003457, allocations: 12 kB / 0.8146 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8273/0.8277, allocations: 142.3 MB / 0.9536 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.005461/0.8332, allocations: 4.705 MB / 0.9582 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003952/0.8372, allocations: 2.489 MB / 0.9606 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005291/0.8378, allocations: 17.41 kB / 0.9606 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003202/0.8381, allocations: 97.66 kB / 0.9607 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001129/0.8392, allocations: 325.2 kB / 0.961 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.8404, allocations: 307.2 kB / 0.9613 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001449/0.8418, allocations: 0.5769 MB / 0.9619 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.8432, allocations: 0.7487 MB / 0.9626 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005549/0.8437, allocations: 291.8 kB / 0.9629 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004919/0.8442, allocations: 298.3 kB / 0.9632 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.038e-05/0.8443, allocations: 26 kB / 0.9632 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005021/0.8448, allocations: 156.4 kB / 0.9634 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002725/0.8451, allocations: 200.6 kB / 0.9636 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.8453, allocations: 148.9 kB / 0.9637 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007162/0.846, allocations: 0.6886 MB / 0.9644 GB, free: 24 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.846, allocations: 0 / 0.9644 GB, free: 24 kB / 0.7169 GB Notification: Performance of FrontEnd: time 2.805e-06/0.846, allocations: 0 / 0.9644 GB, free: 24 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.063e-05/0.846, allocations: 0 / 0.9644 GB, free: 24 kB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001576/0.8476, allocations: 0.8526 MB / 0.9652 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.8477, allocations: 9 kB / 0.9652 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/0.8478, allocations: 95.2 kB / 0.9653 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001282/0.8491, allocations: 187.7 kB / 0.9655 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008108/0.8499, allocations: 485.8 kB / 0.9659 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.284e-05/0.85, allocations: 36.75 kB / 0.966 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.8502, allocations: 58.45 kB / 0.966 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.8514, allocations: 0.8195 MB / 0.9668 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/0.8514, allocations: 2.625 kB / 0.9668 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.287e-05/0.8515, allocations: 19.44 kB / 0.9669 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000213/0.8517, allocations: 69.91 kB / 0.9669 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009364/0.8527, allocations: 0.5718 MB / 0.9675 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004572/0.8573, allocations: 4.582 MB / 0.972 GB, free: 9.512 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004948/0.8578, allocations: 299 kB / 0.9722 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.8578, allocations: 8.297 kB / 0.9723 GB, free: 9.344 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.8579, allocations: 32.09 kB / 0.9723 GB, free: 9.305 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 2.185e-06/0.8579, allocations: 0 / 0.9723 GB, free: 9.305 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005779/0.8636, allocations: 2.642 MB / 0.9749 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.8637, allocations: 59.77 kB / 0.9749 GB, free: 7.516 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005093/0.8642, allocations: 460.5 kB / 0.9754 GB, free: 7.227 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.8643, allocations: 31.64 kB / 0.9754 GB, free: 7.191 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000247/0.8645, allocations: 340.5 kB / 0.9757 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.8647, allocations: 147.8 kB / 0.9759 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.8647, allocations: 10.28 kB / 0.9759 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.8648, allocations: 372 kB / 0.9762 GB, free: 6.391 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003628/0.8652, allocations: 237.8 kB / 0.9764 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004548/0.8657, allocations: 401.4 kB / 0.9768 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/0.8661, allocations: 295.4 kB / 0.9771 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.8661, allocations: 2.312 kB / 0.9771 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001636/0.8677, allocations: 0.9168 MB / 0.978 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.8678, allocations: 7.531 kB / 0.978 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.8678, allocations: 9.812 kB / 0.978 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007975/0.8686, allocations: 234.2 kB / 0.9782 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005633/0.8692, allocations: 113.9 kB / 0.9784 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004808/0.874, allocations: 5.001 MB / 0.9832 GB, free: 476 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006277/0.8746, allocations: 33.5 kB / 0.9833 GB, free: 456 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.462e-05/0.8747, allocations: 22.84 kB / 0.9833 GB, free: 452 kB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000399/0.8751, allocations: 229.7 kB / 0.9835 GB, free: 212 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.8752, allocations: 59.3 kB / 0.9836 GB, free: 152 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.8767, allocations: 0.7697 MB / 0.9843 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.8767, allocations: 11.89 kB / 0.9843 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.8768, allocations: 4 kB / 0.9843 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.8768, allocations: 0 / 0.9843 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.8792, allocations: 1.5 MB / 0.9858 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.8792, allocations: 3.984 kB / 0.9858 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003707/0.8796, allocations: 64.33 kB / 0.9859 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000655/0.8802, allocations: 214.5 kB / 0.9861 GB, free: 13.47 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.231e-05/0.8803, allocations: 15.98 kB / 0.9861 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00429/0.8846, allocations: 4.935 MB / 0.9909 GB, free: 8.125 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.8846, allocations: 4.031 kB / 0.9909 GB, free: 8.121 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/0.8864, allocations: 1.217 MB / 0.9921 GB, free: 6.812 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002919/0.8867, allocations: 176.3 kB / 0.9923 GB, free: 6.621 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.282e-05/0.8868, allocations: 8 kB / 0.9923 GB, free: 6.613 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003317/0.8871, allocations: 23.97 kB / 0.9923 GB, free: 6.59 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/0.8872, allocations: 35.95 kB / 0.9923 GB, free: 6.555 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/0.8872, allocations: 16.06 kB / 0.9923 GB, free: 6.539 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003404/0.8876, allocations: 310.9 kB / 0.9926 GB, free: 6.238 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8876, allocations: 0 / 0.9926 GB, free: 6.238 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007605/0.8884, allocations: 172 kB / 0.9928 GB, free: 6.07 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002232/0.8906, allocations: 2.251 MB / 0.995 GB, free: 3.73 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.00162/0.8922, allocations: 1 MB / 0.996 GB, free: 2.691 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.8922, allocations: 0 / 0.996 GB, free: 2.691 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009332/0.8932, allocations: 0.6953 MB / 0.9967 GB, free: 1.957 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000777/0.894, allocations: 152.4 kB / 0.9968 GB, free: 1.809 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007375/0.9014, allocations: 7.314 MB / 1.004 GB, free: 10.31 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.9019, allocations: 0.9572 MB / 1.005 GB, free: 9.324 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004237/0.9023, allocations: 117 kB / 1.005 GB, free: 9.207 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002742/0.9026, allocations: 207.4 kB / 1.005 GB, free: 9.008 MB / 0.7637 GB Notification: Performance of SimCode: time 1.323e-06/0.9026, allocations: 0 / 1.005 GB, free: 9.008 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02547/0.9281, allocations: 13.27 MB / 1.018 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/0.9283, allocations: 222 kB / 1.018 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/2.878, allocations: 0 / 1.018 GB, free: 11.83 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat does not exist to compare? outputFormat=mat