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: translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001217/0.001217, allocations: 172.8 kB / 487.4 MB, free: 5.059 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.674/1.674, allocations: 221.5 MB / 0.7824 GB, free: 1.016 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.000891/0.000891, allocations: 103.8 kB / 0.9219 GB, free: 2.242 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.862e-05/1.865e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2795, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9571/1.237, allocations: 192.8 MB / 1.394 GB, free: 13.17 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/1.237, allocations: 95.12 kB / 1.394 GB, free: 13.15 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0686/1.306, allocations: 30.62 MB / 1.424 GB, free: 5.754 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.212e-06/1.306, allocations: 3.938 kB / 1.424 GB, free: 5.75 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.877e-05/1.306, allocations: 12 kB / 1.424 GB, free: 5.738 MB / 0.8386 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.001178/1.307, allocations: 0.6828 MB / 1.425 GB, free: 5.039 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/1.307, allocations: 8.031 kB / 1.425 GB, free: 5.031 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002582/1.309, allocations: 0.5759 MB / 1.425 GB, free: 4.461 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007874/1.31, allocations: 474.5 kB / 1.426 GB, free: 4.023 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/1.31, allocations: 16 kB / 1.426 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.772e-05/1.31, allocations: 16 kB / 1.426 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007057/1.311, allocations: 479 kB / 1.426 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000771/1.312, allocations: 0.5371 MB / 1.427 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/1.312, allocations: 3.938 kB / 1.427 GB, free: 3.242 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.345e-05/1.312, allocations: 0 / 1.427 GB, free: 3.242 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.759e-05/1.312, allocations: 31.95 kB / 1.427 GB, free: 3.215 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003819/1.316, allocations: 2.779 MB / 1.43 GB, free: 0.5977 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000742/1.317, allocations: 342.5 kB / 1.43 GB, free: 348 kB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/1.317, allocations: 162.4 kB / 1.43 GB, free: 240 kB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000114/1.317, allocations: 89.09 kB / 1.43 GB, free: 132 kB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/1.317, allocations: 34.56 kB / 1.43 GB, free: 88 kB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 2.294e-06/1.317, allocations: 0 / 1.43 GB, free: 88 kB / 0.8386 GB Notification: Performance of matching and sorting (n=24): time 0.004244/1.321, allocations: 1.535 MB / 1.432 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/1.321, allocations: 81.11 kB / 1.432 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004572/1.322, allocations: 326.2 kB / 1.432 GB, free: 14.49 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.073e-05/1.322, allocations: 29.7 kB / 1.432 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/1.322, allocations: 240.5 kB / 1.432 GB, free: 14.26 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 8.566e-05/1.322, allocations: 81.09 kB / 1.432 GB, free: 14.19 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/1.322, allocations: 0 / 1.432 GB, free: 14.19 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001559/1.322, allocations: 341.6 kB / 1.433 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003263/1.323, allocations: 245.2 kB / 1.433 GB, free: 13.71 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004086/1.323, allocations: 316.9 kB / 1.433 GB, free: 13.46 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005793/1.324, allocations: 294 kB / 1.434 GB, free: 13.27 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/1.324, allocations: 4.031 kB / 1.434 GB, free: 13.26 MB / 0.8542 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002702/1.326, allocations: 1.051 MB / 1.435 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004633/1.327, allocations: 0.7918 MB / 1.435 GB, free: 11.58 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/1.327, allocations: 0 / 1.435 GB, free: 11.58 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002075/1.329, allocations: 483.2 kB / 1.436 GB, free: 11.15 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006021/1.33, allocations: 131.8 kB / 1.436 GB, free: 11.02 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/1.333, allocations: 3.014 MB / 1.439 GB, free: 8.297 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007738/1.334, allocations: 103.8 kB / 1.439 GB, free: 8.195 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.626e-05/1.334, allocations: 15.98 kB / 1.439 GB, free: 8.18 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/1.334, allocations: 7.938 kB / 1.439 GB, free: 8.172 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009132/1.335, allocations: 459.6 kB / 1.44 GB, free: 7.855 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/1.335, allocations: 8 kB / 1.44 GB, free: 7.848 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.583e-06/1.335, allocations: 4 kB / 1.44 GB, free: 7.844 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006896/1.336, allocations: 151.2 kB / 1.44 GB, free: 7.699 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/1.336, allocations: 11.92 kB / 1.44 GB, free: 7.688 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006158/1.336, allocations: 96.08 kB / 1.44 GB, free: 7.594 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/1.336, allocations: 15.42 kB / 1.44 GB, free: 7.582 MB / 0.8542 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.0001697/1.337, allocations: 112.9 kB / 1.44 GB, free: 7.465 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.78e-05/1.337, allocations: 31.62 kB / 1.44 GB, free: 7.434 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002972/1.34, allocations: 1.098 MB / 1.441 GB, free: 6.543 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/1.34, allocations: 4 kB / 1.441 GB, free: 6.539 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/1.34, allocations: 0 / 1.441 GB, free: 6.539 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/1.34, allocations: 0 / 1.441 GB, free: 6.539 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003771/1.344, allocations: 1.726 MB / 1.443 GB, free: 5.105 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/1.344, allocations: 0 / 1.443 GB, free: 5.105 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004015/1.344, allocations: 88 kB / 1.443 GB, free: 5.02 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002356/1.346, allocations: 0.6173 MB / 1.443 GB, free: 4.445 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/1.346, allocations: 3.938 kB / 1.443 GB, free: 4.441 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/1.351, allocations: 4.208 MB / 1.448 GB, free: 0.6094 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.351, allocations: 4.031 kB / 1.448 GB, free: 0.6055 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002824/1.354, allocations: 1.157 MB / 1.449 GB, free: 15.59 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002857/1.355, allocations: 165.5 kB / 1.449 GB, free: 15.43 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.88e-05/1.355, allocations: 7.984 kB / 1.449 GB, free: 15.43 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007105/1.355, allocations: 115.8 kB / 1.449 GB, free: 15.31 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/1.356, allocations: 20.84 kB / 1.449 GB, free: 15.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/1.356, allocations: 8 kB / 1.449 GB, free: 15.29 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003375/1.356, allocations: 271.4 kB / 1.449 GB, free: 15.09 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.4e-07/1.356, allocations: 0 / 1.449 GB, free: 15.09 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0008867/1.357, allocations: 187.5 kB / 1.449 GB, free: 14.91 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.0003339/1.357, allocations: 156.7 kB / 1.45 GB, free: 14.75 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002057/1.359, allocations: 0.967 MB / 1.45 GB, free: 14.04 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.359, allocations: 0 / 1.45 GB, free: 14.04 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001334/1.361, allocations: 0.5699 MB / 1.451 GB, free: 13.55 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007925/1.361, allocations: 104 kB / 1.451 GB, free: 13.47 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/1.363, allocations: 0.7338 MB / 1.452 GB, free: 12.82 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007848/1.364, allocations: 0.9174 MB / 1.453 GB, free: 11.91 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.00087/1.365, allocations: 227 kB / 1.453 GB, free: 11.69 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/1.365, allocations: 31.41 kB / 1.453 GB, free: 11.66 MB / 0.8698 GB Notification: Performance of SimCode: time 3.8e-07/1.365, allocations: 0 / 1.453 GB, free: 11.66 MB / 0.8698 GB Notification: Performance of Templates: time 0.01721/1.383, allocations: 10.17 MB / 1.463 GB, free: 1.562 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (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 & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches