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.313/2.313, allocations: 390.3 MB / 402.8 MB, free: 6.719 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.001234/0.001234, allocations: 180.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.633/1.633, allocations: 221.3 MB / 0.7915 GB, free: 5.449 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.0009188/0.0009188, allocations: 91.94 kB / 0.9317 GB, free: 5.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.048e-05/3.067e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3047, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.057/1.362, allocations: 194.3 MB / 1.409 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003245/1.363, allocations: 94.47 kB / 1.409 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.08125/1.444, allocations: 30.81 MB / 1.439 GB, free: 15.84 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.835e-06/1.444, allocations: 0 / 1.439 GB, free: 15.84 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 7.99e-05/1.444, allocations: 11.94 kB / 1.439 GB, free: 15.83 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001884/1.446, allocations: 0.6852 MB / 1.439 GB, free: 15.12 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/1.446, allocations: 8.031 kB / 1.439 GB, free: 15.12 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002085/1.446, allocations: 71.66 kB / 1.439 GB, free: 15.06 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00293/1.449, allocations: 0.5795 MB / 1.44 GB, free: 14.48 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/1.45, allocations: 463.6 kB / 1.44 GB, free: 14.05 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.385e-05/1.45, allocations: 31.34 kB / 1.441 GB, free: 14.03 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/1.451, allocations: 27.17 kB / 1.441 GB, free: 14.01 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/1.452, allocations: 0.5834 MB / 1.441 GB, free: 13.56 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.088e-05/1.452, allocations: 7.922 kB / 1.441 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.039e-05/1.452, allocations: 17.67 kB / 1.441 GB, free: 13.54 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.852e-05/1.452, allocations: 19.59 kB / 1.441 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009448/1.453, allocations: 0.5104 MB / 1.442 GB, free: 13.17 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004766/1.458, allocations: 2.868 MB / 1.444 GB, free: 10.49 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000773/1.458, allocations: 351 kB / 1.445 GB, free: 10.22 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002364/1.459, allocations: 166.2 kB / 1.445 GB, free: 10.11 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/1.459, allocations: 89.09 kB / 1.445 GB, free: 10.01 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/1.459, allocations: 30.56 kB / 1.445 GB, free: 9.969 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=16): time 2.073e-06/1.459, allocations: 3.938 kB / 1.445 GB, free: 9.965 MB / 0.9011 GB Notification: Performance of matching and sorting (n=24): time 0.006441/1.465, allocations: 2.043 MB / 1.447 GB, free: 8.223 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/1.465, allocations: 81.11 kB / 1.447 GB, free: 8.125 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005635/1.466, allocations: 367 kB / 1.447 GB, free: 7.836 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 6.103e-05/1.466, allocations: 33.52 kB / 1.448 GB, free: 7.801 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/1.466, allocations: 240 kB / 1.448 GB, free: 7.578 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 9.608e-05/1.466, allocations: 78.91 kB / 1.448 GB, free: 7.5 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/1.466, allocations: 4 kB / 1.448 GB, free: 7.496 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001506/1.467, allocations: 342.8 kB / 1.448 GB, free: 7.152 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/1.467, allocations: 247.9 kB / 1.448 GB, free: 6.91 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/1.467, allocations: 329.3 kB / 1.449 GB, free: 6.555 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004059/1.468, allocations: 269.7 kB / 1.449 GB, free: 6.293 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/1.468, allocations: 4 kB / 1.449 GB, free: 6.289 MB / 0.9011 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002987/1.471, allocations: 1.152 MB / 1.45 GB, free: 5.125 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003693/1.471, allocations: 0.7902 MB / 1.451 GB, free: 4.273 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/1.471, allocations: 0 / 1.451 GB, free: 4.273 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002588/1.474, allocations: 0.6297 MB / 1.451 GB, free: 3.637 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000654/1.474, allocations: 135.8 kB / 1.452 GB, free: 3.504 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003872/1.478, allocations: 3.113 MB / 1.455 GB, free: 236 kB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008331/1.479, allocations: 119.9 kB / 1.455 GB, free: 116 kB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.408e-05/1.479, allocations: 12 kB / 1.455 GB, free: 104 kB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/1.479, allocations: 4 kB / 1.455 GB, free: 100 kB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002369/1.482, allocations: 0.8866 MB / 1.456 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/1.482, allocations: 7.969 kB / 1.456 GB, free: 15.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001587/1.483, allocations: 392.3 kB / 1.456 GB, free: 14.81 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006699/1.484, allocations: 143.8 kB / 1.456 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003175/1.487, allocations: 2.397 MB / 1.459 GB, free: 12.14 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008192/1.488, allocations: 115.8 kB / 1.459 GB, free: 12.02 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.33e-05/1.488, allocations: 16 kB / 1.459 GB, free: 12.01 MB / 0.9167 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.0002325/1.488, allocations: 126.1 kB / 1.459 GB, free: 11.88 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/1.489, allocations: 31.62 kB / 1.459 GB, free: 11.85 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003156/1.492, allocations: 1.117 MB / 1.46 GB, free: 10.72 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/1.492, allocations: 4 kB / 1.46 GB, free: 10.72 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/1.492, allocations: 0 / 1.46 GB, free: 10.72 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/1.492, allocations: 0 / 1.46 GB, free: 10.72 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004062/1.496, allocations: 1.792 MB / 1.462 GB, free: 8.859 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/1.496, allocations: 0 / 1.462 GB, free: 8.859 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004059/1.496, allocations: 91.94 kB / 1.462 GB, free: 8.77 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002391/1.499, allocations: 0.6258 MB / 1.462 GB, free: 8.137 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.303e-05/1.499, allocations: 4 kB / 1.462 GB, free: 8.133 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005399/1.504, allocations: 4.392 MB / 1.467 GB, free: 3.465 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.504, allocations: 0 / 1.467 GB, free: 3.465 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002921/1.507, allocations: 1.163 MB / 1.468 GB, free: 2.25 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/1.507, allocations: 168.9 kB / 1.468 GB, free: 2.066 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.246e-05/1.508, allocations: 12 kB / 1.468 GB, free: 2.055 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005868/1.508, allocations: 87.86 kB / 1.468 GB, free: 1.969 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/1.508, allocations: 27.89 kB / 1.468 GB, free: 1.941 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.579e-05/1.508, allocations: 11.98 kB / 1.468 GB, free: 1.93 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0004149/1.509, allocations: 306.1 kB / 1.468 GB, free: 1.637 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2e-07/1.509, allocations: 0 / 1.468 GB, free: 1.637 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0009704/1.51, allocations: 219.9 kB / 1.469 GB, free: 1.422 MB / 0.9167 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.003406/1.513, allocations: 1.982 MB / 1.47 GB, free: 15.39 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.00217/1.515, allocations: 1.199 MB / 1.472 GB, free: 14.16 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 6.341e-06/1.515, allocations: 4.625 kB / 1.472 GB, free: 14.16 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0008609/1.516, allocations: 0.5836 MB / 1.472 GB, free: 13.55 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005859/1.517, allocations: 113.2 kB / 1.472 GB, free: 13.43 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/1.519, allocations: 0.9134 MB / 1.473 GB, free: 12.48 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/1.519, allocations: 0.9174 MB / 1.474 GB, free: 11.53 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 0.0006934/1.52, allocations: 215.1 kB / 1.474 GB, free: 11.32 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/1.52, allocations: 135.4 kB / 1.474 GB, free: 11.19 MB / 0.9323 GB Notification: Performance of SimCode: time 7.12e-07/1.52, allocations: 0 / 1.474 GB, free: 11.19 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03564/1.556, allocations: 16.19 MB / 1.49 GB, free: 11.26 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002369/1.556, allocations: 197.7 kB / 1.49 GB, free: 11.04 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.433/3.989, allocations: 0 / 1.49 GB, free: 11.04 MB / 0.948 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