Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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.ACLine_R_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_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.368/2.368, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001238/0.001238, allocations: 188.8 kB / 487.4 MB, free: 5.043 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.618/1.618, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 98.45 kB / 0.9219 GB, free: 2.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.189e-05/2.19e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2222, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8493/1.072, allocations: 182.4 MB / 1.384 GB, free: 16.85 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/1.072, allocations: 94.72 kB / 1.384 GB, free: 16.83 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.4968/1.569, allocations: 212.9 MB / 1.592 GB, free: 1.738 MB / 0.9948 GB Notification: Performance of FrontEnd: time 1.994e-06/1.569, allocations: 0 / 1.592 GB, free: 1.738 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.0003676/1.569, allocations: 144.2 kB / 1.592 GB, free: 1.598 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01461/1.584, allocations: 4.88 MB / 1.597 GB, free: 12.66 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/1.584, allocations: 8.562 kB / 1.597 GB, free: 12.65 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007512/1.591, allocations: 1.136 MB / 1.598 GB, free: 11.5 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008138/1.599, allocations: 3.689 MB / 1.602 GB, free: 7.762 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/1.6, allocations: 188 kB / 1.602 GB, free: 7.578 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001611/1.601, allocations: 332 kB / 1.602 GB, free: 7.254 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01116/1.612, allocations: 5.689 MB / 1.608 GB, free: 1.562 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01667/1.629, allocations: 7.864 MB / 1.616 GB, free: 9.25 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001769/1.629, allocations: 23.77 kB / 1.616 GB, free: 9.227 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008943/1.63, allocations: 16 kB / 1.616 GB, free: 9.211 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003067/1.631, allocations: 299 kB / 1.616 GB, free: 8.918 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0397/1.67, allocations: 40.26 MB / 1.655 GB, free: 12.95 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00405/1.674, allocations: 2.963 MB / 1.658 GB, free: 9.98 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002599/1.677, allocations: 2.064 MB / 1.66 GB, free: 7.91 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001213/1.677, allocations: 22 kB / 1.66 GB, free: 7.887 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.271e-05/1.677, allocations: 64.5 kB / 1.66 GB, free: 7.816 MB / 1.073 GB Notification: Performance of pre-optimization done (n=209): time 4.579e-06/1.677, allocations: 0 / 1.66 GB, free: 7.816 MB / 1.073 GB Notification: Performance of matching and sorting (n=212): time 0.01092/1.688, allocations: 6.305 MB / 1.666 GB, free: 1.484 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/1.688, allocations: 73.41 kB / 1.666 GB, free: 1.398 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002021/1.69, allocations: 1.317 MB / 1.668 GB, free: 56 kB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001927/1.691, allocations: 29.7 kB / 1.668 GB, free: 20 kB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 0.001565/1.692, allocations: 2.395 MB / 1.67 GB, free: 13.59 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006595/1.693, allocations: 0.7005 MB / 1.671 GB, free: 12.88 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/1.693, allocations: 0 / 1.671 GB, free: 12.88 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0001906/1.693, allocations: 415.1 kB / 1.671 GB, free: 12.47 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001639/1.695, allocations: 1.243 MB / 1.672 GB, free: 11.23 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002117/1.697, allocations: 2.012 MB / 1.674 GB, free: 8.867 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002056/1.699, allocations: 1.614 MB / 1.676 GB, free: 7.25 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/1.699, allocations: 8 kB / 1.676 GB, free: 7.242 MB / 1.089 GB Notification: Performance of matching and sorting (n=327) (initialization): time 0.007906/1.707, allocations: 4.594 MB / 1.68 GB, free: 2.625 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/1.707, allocations: 16 kB / 1.68 GB, free: 2.609 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-05/1.707, allocations: 24 kB / 1.68 GB, free: 2.586 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003262/1.71, allocations: 1.403 MB / 1.682 GB, free: 1.176 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/1.712, allocations: 443.2 kB / 1.682 GB, free: 0.7422 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02115/1.733, allocations: 16.44 MB / 1.698 GB, free: 15.82 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002745/1.736, allocations: 95.86 kB / 1.698 GB, free: 15.73 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005526/1.737, allocations: 108.1 kB / 1.698 GB, free: 15.62 MB / 1.12 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 215 * 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 {(6,66.7%) 32,(6,66.7%) 24,(4,100.0%) 18,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007357/1.737, allocations: 184.1 kB / 1.699 GB, free: 15.44 MB / 1.12 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01134/1.749, allocations: 3.979 MB / 1.703 GB, free: 11.44 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/1.75, allocations: 264.9 kB / 1.703 GB, free: 11.18 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01298/1.763, allocations: 4.174 MB / 1.707 GB, free: 6.973 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-05/1.763, allocations: 24.19 kB / 1.707 GB, free: 6.949 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.237e-05/1.763, allocations: 16 kB / 1.707 GB, free: 6.934 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.303e-05/1.763, allocations: 15.94 kB / 1.707 GB, free: 6.918 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02813/1.791, allocations: 8.541 MB / 1.715 GB, free: 14.25 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.008e-05/1.791, allocations: 7.938 kB / 1.715 GB, free: 14.25 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002258/1.794, allocations: 239.6 kB / 1.715 GB, free: 14.01 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006247/1.8, allocations: 1.374 MB / 1.717 GB, free: 12.63 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004248/1.801, allocations: 8 kB / 1.717 GB, free: 12.62 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03791/1.838, allocations: 16.4 MB / 1.733 GB, free: 11.75 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.337e-05/1.839, allocations: 7.938 kB / 1.733 GB, free: 11.74 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01176/1.85, allocations: 4.622 MB / 1.737 GB, free: 6.891 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002489/1.853, allocations: 0.6071 MB / 1.738 GB, free: 6.262 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008606/1.854, allocations: 7.984 kB / 1.738 GB, free: 6.254 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002468/1.856, allocations: 79.86 kB / 1.738 GB, free: 6.176 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007127/1.857, allocations: 185.4 kB / 1.738 GB, free: 5.996 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002759/1.857, allocations: 59.98 kB / 1.738 GB, free: 5.938 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002773/1.86, allocations: 0.9685 MB / 1.739 GB, free: 4.953 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.51e-07/1.86, allocations: 0 / 1.739 GB, free: 4.953 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004639/1.865, allocations: 1.047 MB / 1.74 GB, free: 3.906 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * 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 {(4,100.0%) 18,(6,66.7%) 24,(6,66.7%) 32,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.7384/2.603, allocations: 6.327 MB / 1.746 GB, free: 286.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01183/2.615, allocations: 4.326 MB / 1.751 GB, free: 286.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.037e-05/2.615, allocations: 2.219 kB / 1.751 GB, free: 286.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.007054/2.622, allocations: 2.747 MB / 1.753 GB, free: 285.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004897/2.627, allocations: 0.6866 MB / 1.754 GB, free: 285.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02421/2.651, allocations: 8.693 MB / 1.762 GB, free: 283.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01208/2.664, allocations: 3.786 MB / 1.766 GB, free: 283 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003785/2.667, allocations: 0.5215 MB / 1.767 GB, free: 283 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003894/2.671, allocations: 1.941 MB / 1.769 GB, free: 282.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.483e-06/2.671, allocations: 2.219 kB / 1.769 GB, free: 282.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1449/2.816, allocations: 76.31 MB / 1.843 GB, free: 280.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/2.816, allocations: 170.6 kB / 1.843 GB, free: 280.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.151/6.968, allocations: 3.5 kB / 1.843 GB, free: 280.3 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat does not exist to compare? outputFormat=mat