Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",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.001497/0.001498, allocations: 99.86 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.002142/0.002142, 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 2.638/2.638, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.842/4.842, allocations: 409.2 MB / 0.6838 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0007087/0.0007089, allocations: 8 kB / 0.8375 GB, free: 6.535 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.496/1.497, allocations: 146.8 MB / 0.9809 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.07004/1.567, allocations: 35.75 MB / 1.016 GB, free: 2.441 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.046/1.613, allocations: 14.52 MB / 1.03 GB, free: 3.887 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.009767/1.623, allocations: 155 kB / 1.03 GB, free: 3.734 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.00747/1.63, allocations: 0.8384 MB / 1.031 GB, free: 2.891 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.01626/1.647, allocations: 2.111 MB / 1.033 GB, free: 0.7734 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.01417/1.661, allocations: 1.926 MB / 1.035 GB, free: 14.85 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.02381/1.685, allocations: 5.729 MB / 1.04 GB, free: 9.109 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.04272/1.728, allocations: 13.97 MB / 1.054 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01603/1.744, allocations: 3.157 MB / 1.057 GB, free: 7.883 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01219/1.756, allocations: 3.306 MB / 1.06 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.005185/1.761, allocations: 400 kB / 1.061 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009769/1.771, allocations: 0.761 MB / 1.062 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.009961/1.781, allocations: 2.74 MB / 1.064 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.008318/1.79, allocations: 1.389 MB / 1.066 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0278/1.818, allocations: 11.61 MB / 1.077 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 9.277e-06/1.818, allocations: 3.938 kB / 1.077 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.756e-06/1.818, allocations: 0 / 1.077 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0007513/1.819, allocations: 0 / 1.077 GB, free: 3.629 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.03574/1.854, allocations: 6.174 MB / 1.083 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001066/1.854, allocations: 12.03 kB / 1.083 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007403/1.862, allocations: 0.8992 MB / 1.084 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01986/1.882, allocations: 1.51 MB / 1.085 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01935/1.901, allocations: 4.101 MB / 1.089 GB, free: 6.758 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009843/1.902, allocations: 452.1 kB / 1.09 GB, free: 6.312 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00522/1.908, allocations: 0.6013 MB / 1.09 GB, free: 5.711 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04926/1.957, allocations: 10.58 MB / 1.101 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006253/1.958, allocations: 27.69 kB / 1.101 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004839/1.962, allocations: 267.9 kB / 1.101 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005178/1.968, allocations: 0.7729 MB / 1.102 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03521/2.003, allocations: 8.514 MB / 1.11 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1267/2.13, allocations: 46.99 MB / 1.156 GB, free: 14.4 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01272/2.143, allocations: 4.297 MB / 1.16 GB, free: 10.09 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009698/2.144, allocations: 38.72 kB / 1.16 GB, free: 10.05 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001599/2.144, allocations: 81.34 kB / 1.16 GB, free: 9.957 MB / 0.92 GB Notification: Performance of pre-optimization done (n=353): time 1.036e-05/2.144, allocations: 0 / 1.16 GB, free: 9.957 MB / 0.92 GB Notification: Performance of matching and sorting (n=578): time 2.272/4.416, allocations: 127.9 MB / 1.285 GB, free: 230.8 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/4.416, allocations: 111.8 kB / 1.285 GB, free: 230.8 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007289/4.424, allocations: 2.649 MB / 1.288 GB, free: 228.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.001847/4.426, allocations: 121.7 kB / 1.288 GB, free: 228.5 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003051/4.429, allocations: 2.681 MB / 1.291 GB, free: 225.8 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.004471/4.433, allocations: 1.954 MB / 1.292 GB, free: 223.9 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001264/4.435, allocations: 112 kB / 1.293 GB, free: 223.8 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0004545/4.435, allocations: 0.5256 MB / 1.293 GB, free: 223.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01156/4.447, allocations: 4.056 MB / 1.297 GB, free: 219.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01437/4.461, allocations: 4.976 MB / 1.302 GB, free: 213.9 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01442/4.476, allocations: 4.819 MB / 1.307 GB, free: 209.1 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.274e-05/4.476, allocations: 8 kB / 1.307 GB, free: 209 MB / 0.9981 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.07572/4.551, allocations: 16.91 MB / 1.323 GB, free: 192 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.948e-05/4.552, allocations: 16 kB / 1.323 GB, free: 192 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.868e-05/4.552, allocations: 24 kB / 1.323 GB, free: 192 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06209/4.614, allocations: 9.053 MB / 1.332 GB, free: 182.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005098/4.619, allocations: 0.5264 MB / 1.332 GB, free: 182.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.174/4.793, allocations: 73.68 MB / 1.404 GB, free: 107.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01071/4.804, allocations: 283.8 kB / 1.405 GB, free: 106.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002561/4.806, allocations: 188 kB / 1.405 GB, free: 106.8 MB / 0.9981 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 (274): * Single equations (assignments): 263 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(5,84.0%) 17,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(14,51.0%) 72,(14,51.0%) 72,(6,77.8%) 40,(7,71.4%) 71,(8,70.3%) 70,(6,77.8%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01203/4.819, allocations: 2.422 MB / 1.407 GB, free: 104.3 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002822/4.821, allocations: 474.5 kB / 1.408 GB, free: 103.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06314/4.885, allocations: 16.75 MB / 1.424 GB, free: 86.96 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001139/4.885, allocations: 56 kB / 1.424 GB, free: 86.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0004405/4.885, allocations: 68 kB / 1.424 GB, free: 86.84 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001892/4.885, allocations: 31.89 kB / 1.424 GB, free: 86.8 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0971/4.983, allocations: 25.62 MB / 1.449 GB, free: 60.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001301/4.983, allocations: 8 kB / 1.449 GB, free: 60.95 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003202/4.986, allocations: 323.5 kB / 1.45 GB, free: 60.63 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04554/5.032, allocations: 8.253 MB / 1.458 GB, free: 52.34 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002094/5.034, allocations: 112 kB / 1.458 GB, free: 52.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1644/5.198, allocations: 70.53 MB / 1.527 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-05/5.198, allocations: 11.94 kB / 1.527 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1/5.298, allocations: 22.18 MB / 1.548 GB, free: 5.512 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01224/5.311, allocations: 1.366 MB / 1.55 GB, free: 4.121 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007774/5.318, allocations: 109.3 kB / 1.55 GB, free: 4.016 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0147/5.333, allocations: 287.6 kB / 1.55 GB, free: 3.734 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005852/5.339, allocations: 0.5258 MB / 1.551 GB, free: 3.207 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006211/5.345, allocations: 140 kB / 1.551 GB, free: 3.07 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.01123/5.357, allocations: 1.753 MB / 1.552 GB, free: 1.328 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.483e-06/5.357, allocations: 0 / 1.552 GB, free: 1.328 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0291/5.386, allocations: 2.461 MB / 1.555 GB, free: 14.86 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[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 (142): * Single equations (assignments): 131 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(6,77.8%) 40,(8,70.3%) 70,(14,51.0%) 72,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(5,84.0%) 17,(6,83.3%) 40,(8,70.3%) 70,(14,51.0%) 72} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.09662/5.483, allocations: 24.6 MB / 1.579 GB, free: 5.781 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.06514/5.548, allocations: 14.48 MB / 1.593 GB, free: 7.113 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 4.672e-05/5.548, allocations: 8.312 kB / 1.593 GB, free: 7.105 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.03654/5.585, allocations: 9.381 MB / 1.602 GB, free: 13.58 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0126/5.597, allocations: 1.194 MB / 1.603 GB, free: 12.4 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2341/5.831, allocations: 70.8 MB / 1.672 GB, free: 3.367 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02064/5.852, allocations: 5.014 MB / 1.677 GB, free: 14.31 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.007733/5.86, allocations: 0.741 MB / 1.678 GB, free: 13.56 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008534/5.869, allocations: 2.604 MB / 1.681 GB, free: 10.96 MB / 1.186 GB Notification: Performance of SimCode: time 2.254e-06/5.869, allocations: 3.938 kB / 1.681 GB, free: 10.95 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.12/7.988, allocations: 185.8 MB / 1.862 GB, free: 261.5 MB / 1.186 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003776/7.989, allocations: 228.8 kB / 1.862 GB, free: 261.3 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/20.97, allocations: 4.016 kB / 1.862 GB, free: 261.3 MB / 1.186 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat does not exist to compare? outputFormat=mat