Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.451/2.451, allocations: 390.5 MB / 398 MB, free: 10.91 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.001322/0.001322, allocations: 184.8 kB / 491.2 MB, free: 1.555 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.545/1.545, allocations: 221.5 MB / 0.7868 GB, free: 13.31 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.0008806/0.0008806, allocations: 91.91 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.015e-05/2.016e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2911, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.047/1.338, allocations: 193.6 MB / 1.401 GB, free: 6.934 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/1.339, allocations: 94.56 kB / 1.402 GB, free: 6.883 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07674/1.415, allocations: 30.64 MB / 1.431 GB, free: 13.22 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.532e-06/1.415, allocations: 0 / 1.431 GB, free: 13.22 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.584e-05/1.415, allocations: 12 kB / 1.431 GB, free: 13.21 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.001447/1.417, allocations: 0.688 MB / 1.432 GB, free: 12.51 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/1.417, allocations: 8.031 kB / 1.432 GB, free: 12.5 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002767/1.42, allocations: 0.5754 MB / 1.433 GB, free: 11.93 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008948/1.421, allocations: 469.3 kB / 1.433 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/1.421, allocations: 12 kB / 1.433 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/1.421, allocations: 22.62 kB / 1.433 GB, free: 11.46 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007405/1.422, allocations: 465.2 kB / 1.434 GB, free: 11.16 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008394/1.422, allocations: 0.5384 MB / 1.434 GB, free: 10.73 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/1.422, allocations: 7.938 kB / 1.434 GB, free: 10.72 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.587e-05/1.422, allocations: 0 / 1.434 GB, free: 10.72 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.126e-05/1.423, allocations: 24.77 kB / 1.434 GB, free: 10.7 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00411/1.427, allocations: 2.784 MB / 1.437 GB, free: 8.082 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007891/1.427, allocations: 344.8 kB / 1.437 GB, free: 7.824 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/1.428, allocations: 159.2 kB / 1.437 GB, free: 7.719 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001223/1.428, allocations: 89.09 kB / 1.437 GB, free: 7.613 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/1.428, allocations: 34.56 kB / 1.438 GB, free: 7.57 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=16): time 2.394e-06/1.428, allocations: 0 / 1.438 GB, free: 7.57 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24): time 0.004408/1.432, allocations: 1.534 MB / 1.439 GB, free: 6.324 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.076e-05/1.432, allocations: 81.11 kB / 1.439 GB, free: 6.227 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004823/1.433, allocations: 327.9 kB / 1.439 GB, free: 5.973 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.066e-05/1.433, allocations: 29.7 kB / 1.439 GB, free: 5.938 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/1.433, allocations: 238.1 kB / 1.44 GB, free: 5.746 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 9.024e-05/1.433, allocations: 81.72 kB / 1.44 GB, free: 5.672 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/1.433, allocations: 0 / 1.44 GB, free: 5.672 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001554/1.433, allocations: 345.4 kB / 1.44 GB, free: 5.34 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003085/1.434, allocations: 241.6 kB / 1.44 GB, free: 5.191 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003546/1.434, allocations: 319.4 kB / 1.441 GB, free: 4.941 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005315/1.435, allocations: 296.4 kB / 1.441 GB, free: 4.746 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/1.435, allocations: 0 / 1.441 GB, free: 4.746 MB / 0.8542 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002803/1.437, allocations: 1.059 MB / 1.442 GB, free: 3.895 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.000365/1.438, allocations: 0.7876 MB / 1.443 GB, free: 3.059 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/1.438, allocations: 0 / 1.443 GB, free: 3.059 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002111/1.44, allocations: 484.3 kB / 1.443 GB, free: 2.633 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006157/1.441, allocations: 127.8 kB / 1.443 GB, free: 2.508 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003602/1.444, allocations: 3.011 MB / 1.446 GB, free: 15.78 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007375/1.445, allocations: 111.8 kB / 1.446 GB, free: 15.67 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.706e-05/1.445, allocations: 11.06 kB / 1.446 GB, free: 15.66 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.708e-06/1.445, allocations: 4 kB / 1.446 GB, free: 15.66 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008059/1.446, allocations: 472.2 kB / 1.447 GB, free: 15.33 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/1.446, allocations: 4 kB / 1.447 GB, free: 15.33 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.823e-06/1.446, allocations: 4 kB / 1.447 GB, free: 15.32 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006726/1.447, allocations: 147.8 kB / 1.447 GB, free: 15.18 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/1.447, allocations: 4.25 kB / 1.447 GB, free: 15.18 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006256/1.447, allocations: 91.86 kB / 1.447 GB, free: 15.09 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.15e-05/1.447, allocations: 19.73 kB / 1.447 GB, free: 15.07 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.0001733/1.447, allocations: 112.9 kB / 1.447 GB, free: 14.95 MB / 0.8698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00294/1.45, allocations: 1.051 MB / 1.448 GB, free: 14.09 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/1.451, allocations: 31.62 kB / 1.448 GB, free: 14.05 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003296/1.454, allocations: 1.101 MB / 1.449 GB, free: 13.16 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/1.454, allocations: 4 kB / 1.449 GB, free: 13.15 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/1.454, allocations: 0 / 1.449 GB, free: 13.15 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/1.454, allocations: 3.953 kB / 1.449 GB, free: 13.15 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004279/1.458, allocations: 1.713 MB / 1.451 GB, free: 11.73 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/1.458, allocations: 0 / 1.451 GB, free: 11.73 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004023/1.459, allocations: 95.86 kB / 1.451 GB, free: 11.64 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002323/1.461, allocations: 0.6149 MB / 1.452 GB, free: 11.07 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.459e-05/1.461, allocations: 4 kB / 1.452 GB, free: 11.06 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005058/1.466, allocations: 4.207 MB / 1.456 GB, free: 7.23 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.466, allocations: 0 / 1.456 GB, free: 7.23 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002839/1.469, allocations: 1.158 MB / 1.457 GB, free: 6.211 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002907/1.469, allocations: 172.9 kB / 1.457 GB, free: 6.047 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.989e-05/1.469, allocations: 4 kB / 1.457 GB, free: 6.043 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006798/1.47, allocations: 107.8 kB / 1.457 GB, free: 5.938 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/1.47, allocations: 23.47 kB / 1.457 GB, free: 5.918 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-05/1.47, allocations: 23.38 kB / 1.457 GB, free: 5.898 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003371/1.471, allocations: 259.2 kB / 1.457 GB, free: 5.703 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.7e-07/1.471, allocations: 4 kB / 1.457 GB, free: 5.699 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000861/1.472, allocations: 183.8 kB / 1.458 GB, free: 5.523 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.003403/1.475, allocations: 1.986 MB / 1.46 GB, free: 3.676 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001651/1.477, allocations: 0.9726 MB / 1.461 GB, free: 2.965 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.477, allocations: 0 / 1.461 GB, free: 2.965 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008481/1.477, allocations: 0.5654 MB / 1.461 GB, free: 2.48 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000555/1.478, allocations: 93.38 kB / 1.461 GB, free: 2.41 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/1.48, allocations: 0.8833 MB / 1.462 GB, free: 1.617 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006092/1.48, allocations: 0.9201 MB / 1.463 GB, free: 0.7031 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0007624/1.481, allocations: 231 kB / 1.463 GB, free: 492 kB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/1.481, allocations: 129.9 kB / 1.463 GB, free: 452 kB / 0.8698 GB Notification: Performance of SimCode: time 4.1e-07/1.481, allocations: 0 / 1.463 GB, free: 452 kB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03945/1.521, allocations: 13.58 MB / 1.477 GB, free: 2.941 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002546/1.521, allocations: 171.3 kB / 1.477 GB, free: 2.734 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.25/3.771, allocations: 0 / 1.477 GB, free: 2.734 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat does not exist to compare? outputFormat=mat