Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.2/2.2, allocations: 387.1 MB / 399.7 MB, free: 9.488 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 180.9 kB / 492.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.609/1.609, allocations: 221.3 MB / 0.7871 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009088/0.0009085, allocations: 91.89 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.727e-05/4.782e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2904, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9873/1.278, allocations: 204.3 MB / 1.412 GB, free: 11.84 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/1.278, allocations: 97.92 kB / 1.412 GB, free: 11.78 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.189/1.467, allocations: 77.01 MB / 1.487 GB, free: 10.16 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.413e-06/1.467, allocations: 0 / 1.487 GB, free: 10.16 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0001387/1.467, allocations: 36 kB / 1.487 GB, free: 10.12 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.004972/1.472, allocations: 1.691 MB / 1.489 GB, free: 8.48 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/1.472, allocations: 12.03 kB / 1.489 GB, free: 8.469 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009654/1.473, allocations: 261.7 kB / 1.489 GB, free: 8.305 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003753/1.477, allocations: 0.6609 MB / 1.49 GB, free: 7.645 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003101/1.48, allocations: 1.246 MB / 1.491 GB, free: 6.641 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/1.48, allocations: 114.1 kB / 1.491 GB, free: 6.574 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005816/1.481, allocations: 157.7 kB / 1.491 GB, free: 6.469 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005215/1.486, allocations: 2.613 MB / 1.494 GB, free: 4.637 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.77e-05/1.486, allocations: 0 / 1.494 GB, free: 4.637 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001752/1.487, allocations: 67.81 kB / 1.494 GB, free: 4.617 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.601e-05/1.487, allocations: 89.97 kB / 1.494 GB, free: 4.535 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003243/1.49, allocations: 2.156 MB / 1.496 GB, free: 3.121 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01244/1.502, allocations: 10.91 MB / 1.507 GB, free: 8.312 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/1.503, allocations: 0.738 MB / 1.508 GB, free: 7.566 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006822/1.504, allocations: 0.5181 MB / 1.508 GB, free: 7.047 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001257/1.504, allocations: 93.45 kB / 1.508 GB, free: 6.938 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/1.504, allocations: 42.94 kB / 1.508 GB, free: 6.887 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=46): time 2.083e-06/1.504, allocations: 0 / 1.508 GB, free: 6.887 MB / 0.9167 GB Notification: Performance of matching and sorting (n=72): time 0.02152/1.526, allocations: 7.171 MB / 1.515 GB, free: 15.7 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/1.526, allocations: 85.89 kB / 1.515 GB, free: 15.59 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/1.527, allocations: 0.8472 MB / 1.516 GB, free: 14.74 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.0001231/1.527, allocations: 37.7 kB / 1.516 GB, free: 14.7 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.000511/1.528, allocations: 0.7775 MB / 1.517 GB, free: 13.9 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002256/1.528, allocations: 248.4 kB / 1.517 GB, free: 13.66 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.807e-05/1.528, allocations: 20 kB / 1.517 GB, free: 13.64 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001812/1.528, allocations: 402.7 kB / 1.518 GB, free: 13.23 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/1.529, allocations: 0.76 MB / 1.518 GB, free: 12.47 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/1.531, allocations: 1.121 MB / 1.519 GB, free: 11.2 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/1.532, allocations: 0.9623 MB / 1.52 GB, free: 10.23 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/1.532, allocations: 4 kB / 1.52 GB, free: 10.23 MB / 0.9323 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.007637/1.54, allocations: 3.404 MB / 1.524 GB, free: 6.812 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.001387/1.541, allocations: 4.27 MB / 1.528 GB, free: 2.203 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.134e-05/1.541, allocations: 8 kB / 1.528 GB, free: 2.195 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006006/1.547, allocations: 1.756 MB / 1.53 GB, free: 444 kB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009333/1.548, allocations: 223.6 kB / 1.53 GB, free: 220 kB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0101/1.558, allocations: 7.282 MB / 1.537 GB, free: 8.773 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/1.56, allocations: 187.6 kB / 1.537 GB, free: 8.59 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/1.56, allocations: 47.98 kB / 1.537 GB, free: 8.543 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/1.56, allocations: 4 kB / 1.537 GB, free: 8.539 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005643/1.566, allocations: 2.732 MB / 1.54 GB, free: 5.801 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/1.566, allocations: 20.02 kB / 1.54 GB, free: 5.781 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003478/1.569, allocations: 1.036 MB / 1.541 GB, free: 4.742 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/1.57, allocations: 291.5 kB / 1.541 GB, free: 4.457 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008689/1.579, allocations: 6.069 MB / 1.547 GB, free: 14.26 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/1.58, allocations: 159.7 kB / 1.547 GB, free: 14.1 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/1.58, allocations: 48 kB / 1.547 GB, free: 14.05 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,100.0%) 14} * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003425/1.581, allocations: 164.6 kB / 1.547 GB, free: 13.89 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/1.581, allocations: 90.95 kB / 1.547 GB, free: 13.8 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007218/1.588, allocations: 2.996 MB / 1.55 GB, free: 10.78 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/1.588, allocations: 8 kB / 1.55 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/1.588, allocations: 4 kB / 1.55 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/1.588, allocations: 7.969 kB / 1.55 GB, free: 10.76 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01081/1.599, allocations: 5.589 MB / 1.556 GB, free: 5.051 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/1.599, allocations: 0 / 1.556 GB, free: 5.051 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004521/1.6, allocations: 107.8 kB / 1.556 GB, free: 4.945 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00555/1.605, allocations: 1.641 MB / 1.558 GB, free: 3.297 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/1.605, allocations: 12 kB / 1.558 GB, free: 3.285 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01331/1.619, allocations: 9.465 MB / 1.567 GB, free: 9.555 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/1.619, allocations: 11.98 kB / 1.567 GB, free: 9.543 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006529/1.625, allocations: 2.951 MB / 1.57 GB, free: 6.496 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008451/1.626, allocations: 335.9 kB / 1.57 GB, free: 6.148 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/1.626, allocations: 24 kB / 1.57 GB, free: 6.125 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008459/1.627, allocations: 135.8 kB / 1.57 GB, free: 5.992 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003285/1.627, allocations: 64.38 kB / 1.57 GB, free: 5.93 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.419e-05/1.628, allocations: 24.12 kB / 1.57 GB, free: 5.906 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.001052/1.629, allocations: 0.6709 MB / 1.571 GB, free: 5.238 MB / 0.9792 GB Notification: Performance of sort global known variables: time 3.71e-07/1.629, allocations: 0 / 1.571 GB, free: 5.238 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.00258/1.631, allocations: 0.7187 MB / 1.572 GB, free: 4.52 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 42 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 13} * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.007425/1.639, allocations: 4.154 MB / 1.576 GB, free: 284 kB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.00676/1.645, allocations: 3.61 MB / 1.579 GB, free: 12.64 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/1.645, allocations: 0 / 1.579 GB, free: 12.64 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.002469/1.648, allocations: 1.369 MB / 1.581 GB, free: 11.25 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/1.649, allocations: 241.7 kB / 1.581 GB, free: 11.02 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006271/1.655, allocations: 3.399 MB / 1.584 GB, free: 7.551 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001676/1.657, allocations: 1.755 MB / 1.586 GB, free: 5.762 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.001822/1.659, allocations: 0.6591 MB / 1.586 GB, free: 5.098 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007146/1.66, allocations: 0.5032 MB / 1.587 GB, free: 4.594 MB / 0.9948 GB Notification: Performance of SimCode: time 1.082e-06/1.66, allocations: 0 / 1.587 GB, free: 4.594 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06914/1.729, allocations: 41.41 MB / 1.627 GB, free: 11.54 MB / 1.042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001935/1.729, allocations: 207.3 kB / 1.628 GB, free: 11.32 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.734/4.463, allocations: 0 / 1.628 GB, free: 11.32 MB / 1.042 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_N_res.mat does not exist to compare? outputFormat=mat