Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",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.378/2.378, allocations: 387.1 MB / 399.7 MB, free: 9.445 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.0009943/0.0009944, allocations: 172.9 kB / 492.3 MB, free: 0.6289 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.586/1.586, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.001057/0.001056, allocations: 93.77 kB / 0.9267 GB, free: 13.99 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.241e-05/3.251e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2727, allocations: 142.4 MB / 1.212 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.052/1.325, allocations: 193.4 MB / 1.401 GB, free: 6.797 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003698/1.325, allocations: 96.94 kB / 1.401 GB, free: 6.746 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07693/1.402, allocations: 30.8 MB / 1.432 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.633e-06/1.402, allocations: 0 / 1.432 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 7.085e-05/1.402, allocations: 16 kB / 1.432 GB, free: 12.57 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001683/1.404, allocations: 0.6841 MB / 1.432 GB, free: 11.86 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/1.404, allocations: 8.031 kB / 1.432 GB, free: 11.86 MB / 0.8542 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002024/1.404, allocations: 78.14 kB / 1.432 GB, free: 11.79 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002855/1.407, allocations: 0.5831 MB / 1.433 GB, free: 11.21 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/1.408, allocations: 465.5 kB / 1.433 GB, free: 10.79 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/1.408, allocations: 27.16 kB / 1.433 GB, free: 10.77 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.828e-05/1.408, allocations: 31.11 kB / 1.433 GB, free: 10.75 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/1.41, allocations: 0.5851 MB / 1.434 GB, free: 10.29 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/1.41, allocations: 0 / 1.434 GB, free: 10.29 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.255e-05/1.41, allocations: 21.73 kB / 1.434 GB, free: 10.28 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.532e-05/1.41, allocations: 20.77 kB / 1.434 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008338/1.411, allocations: 0.5058 MB / 1.435 GB, free: 9.918 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004235/1.415, allocations: 2.867 MB / 1.437 GB, free: 7.223 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007676/1.416, allocations: 350.6 kB / 1.438 GB, free: 6.961 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/1.416, allocations: 162.7 kB / 1.438 GB, free: 6.852 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/1.416, allocations: 96.11 kB / 1.438 GB, free: 6.742 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/1.416, allocations: 30.56 kB / 1.438 GB, free: 6.703 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=16): time 2.104e-06/1.416, allocations: 0 / 1.438 GB, free: 6.703 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24): time 0.006681/1.423, allocations: 2.034 MB / 1.44 GB, free: 4.969 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/1.423, allocations: 81.11 kB / 1.44 GB, free: 4.871 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005196/1.423, allocations: 369.4 kB / 1.44 GB, free: 4.578 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.069e-05/1.423, allocations: 37.08 kB / 1.44 GB, free: 4.539 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.00017/1.424, allocations: 244.7 kB / 1.441 GB, free: 4.344 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 8.316e-05/1.424, allocations: 77.34 kB / 1.441 GB, free: 4.277 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/1.424, allocations: 3.938 kB / 1.441 GB, free: 4.277 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001601/1.424, allocations: 345 kB / 1.441 GB, free: 3.945 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003632/1.424, allocations: 250.9 kB / 1.441 GB, free: 3.789 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004316/1.425, allocations: 324 kB / 1.442 GB, free: 3.535 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003891/1.425, allocations: 271.4 kB / 1.442 GB, free: 3.359 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/1.425, allocations: 0 / 1.442 GB, free: 3.359 MB / 0.8542 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002929/1.428, allocations: 1.152 MB / 1.443 GB, free: 2.426 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003993/1.428, allocations: 0.7802 MB / 1.444 GB, free: 1.598 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/1.428, allocations: 4 kB / 1.444 GB, free: 1.594 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00256/1.431, allocations: 0.6403 MB / 1.444 GB, free: 1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006378/1.432, allocations: 127.8 kB / 1.444 GB, free: 0.875 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003942/1.436, allocations: 3.121 MB / 1.448 GB, free: 14.04 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007743/1.436, allocations: 107.8 kB / 1.448 GB, free: 13.94 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.923e-05/1.436, allocations: 31.8 kB / 1.448 GB, free: 13.91 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/1.436, allocations: 5.094 kB / 1.448 GB, free: 13.91 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002285/1.439, allocations: 0.8816 MB / 1.449 GB, free: 13.23 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/1.439, allocations: 3.938 kB / 1.449 GB, free: 13.22 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001513/1.44, allocations: 397.1 kB / 1.449 GB, free: 12.87 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006661/1.441, allocations: 142.9 kB / 1.449 GB, free: 12.73 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003086/1.444, allocations: 2.4 MB / 1.451 GB, free: 10.59 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007374/1.445, allocations: 101.5 kB / 1.451 GB, free: 10.49 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-05/1.445, allocations: 15.98 kB / 1.451 GB, free: 10.48 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (29): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001719/1.445, allocations: 127.2 kB / 1.452 GB, free: 10.36 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/1.445, allocations: 35.58 kB / 1.452 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002962/1.448, allocations: 1.115 MB / 1.453 GB, free: 9.43 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/1.448, allocations: 4 kB / 1.453 GB, free: 9.426 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/1.448, allocations: 0 / 1.453 GB, free: 9.426 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/1.448, allocations: 3.984 kB / 1.453 GB, free: 9.422 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003945/1.452, allocations: 1.789 MB / 1.454 GB, free: 7.934 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/1.452, allocations: 3.938 kB / 1.454 GB, free: 7.93 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004299/1.453, allocations: 91.92 kB / 1.455 GB, free: 7.84 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002507/1.455, allocations: 0.6186 MB / 1.455 GB, free: 7.266 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.863e-05/1.455, allocations: 3.5 kB / 1.455 GB, free: 7.266 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006043/1.461, allocations: 4.386 MB / 1.459 GB, free: 3.246 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/1.461, allocations: 7.984 kB / 1.459 GB, free: 3.238 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002831/1.464, allocations: 1.17 MB / 1.461 GB, free: 2.211 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004463/1.465, allocations: 167.9 kB / 1.461 GB, free: 2.055 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.458e-05/1.465, allocations: 7.609 kB / 1.461 GB, free: 2.051 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005737/1.465, allocations: 95.67 kB / 1.461 GB, free: 1.961 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/1.465, allocations: 19.16 kB / 1.461 GB, free: 1.945 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.551e-05/1.465, allocations: 11.94 kB / 1.461 GB, free: 1.934 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.000505/1.466, allocations: 303.4 kB / 1.461 GB, free: 1.707 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2e-07/1.466, allocations: 0 / 1.461 GB, free: 1.707 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001118/1.467, allocations: 223.2 kB / 1.461 GB, free: 1.508 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * 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 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003691/1.471, allocations: 1.996 MB / 1.463 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002267/1.473, allocations: 1.192 MB / 1.465 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.473, allocations: 0 / 1.465 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000873/1.474, allocations: 0.5819 MB / 1.465 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005699/1.475, allocations: 107.5 kB / 1.465 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/1.476, allocations: 0.9068 MB / 1.466 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005585/1.477, allocations: 0.9214 MB / 1.467 GB, free: 12.45 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0006663/1.478, allocations: 223 kB / 1.467 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/1.478, allocations: 129.9 kB / 1.467 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of SimCode: time 5.11e-07/1.478, allocations: 3.938 kB / 1.467 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03453/1.512, allocations: 16.19 MB / 1.483 GB, free: 12.25 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/1.513, allocations: 198.5 kB / 1.483 GB, free: 12.02 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.324/3.836, allocations: 0 / 1.483 GB, free: 12.02 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat does not exist to compare? outputFormat=mat