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.241/2.241, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.001132/0.001132, allocations: 180 kB / 492.3 MB, free: 0.6172 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.646/1.646, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.0009199/0.0009197, allocations: 103.5 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.845e-05/2.848e-05, allocations: 8 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2772, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9448/1.222, allocations: 193.4 MB / 1.401 GB, free: 6.789 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/1.222, allocations: 96.56 kB / 1.401 GB, free: 6.738 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07344/1.296, allocations: 30.81 MB / 1.431 GB, free: 12.56 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.242e-06/1.296, allocations: 0 / 1.431 GB, free: 12.56 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.837e-05/1.296, allocations: 16 kB / 1.431 GB, free: 12.54 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.001183/1.297, allocations: 0.6763 MB / 1.432 GB, free: 11.84 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/1.297, allocations: 8.031 kB / 1.432 GB, free: 11.84 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002613/1.3, allocations: 0.5754 MB / 1.433 GB, free: 11.27 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008321/1.301, allocations: 471.7 kB / 1.433 GB, free: 10.84 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/1.301, allocations: 23.97 kB / 1.433 GB, free: 10.82 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.606e-05/1.301, allocations: 38.73 kB / 1.433 GB, free: 10.79 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009052/1.302, allocations: 0.5804 MB / 1.434 GB, free: 10.34 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/1.302, allocations: 4 kB / 1.434 GB, free: 10.34 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.08e-05/1.302, allocations: 14.17 kB / 1.434 GB, free: 10.33 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.374e-05/1.302, allocations: 27.89 kB / 1.434 GB, free: 10.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007592/1.302, allocations: 0.504 MB / 1.434 GB, free: 9.965 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004095/1.307, allocations: 2.868 MB / 1.437 GB, free: 7.27 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007797/1.307, allocations: 350.7 kB / 1.437 GB, free: 7.008 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002111/1.308, allocations: 166 kB / 1.438 GB, free: 6.898 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/1.308, allocations: 85.11 kB / 1.438 GB, free: 6.797 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/1.308, allocations: 42.48 kB / 1.438 GB, free: 6.746 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=16): time 2.094e-06/1.308, allocations: 0 / 1.438 GB, free: 6.746 MB / 0.8542 GB Notification: Performance of matching and sorting (n=24): time 0.006161/1.314, allocations: 2.025 MB / 1.44 GB, free: 5.02 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/1.314, allocations: 85.09 kB / 1.44 GB, free: 4.918 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000409/1.314, allocations: 369 kB / 1.44 GB, free: 4.629 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.993e-05/1.314, allocations: 25.7 kB / 1.44 GB, free: 4.598 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.000141/1.315, allocations: 251.2 kB / 1.44 GB, free: 4.398 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 7.074e-05/1.315, allocations: 76.33 kB / 1.441 GB, free: 4.332 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/1.315, allocations: 10.5 kB / 1.441 GB, free: 4.328 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001144/1.315, allocations: 338 kB / 1.441 GB, free: 4 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003261/1.315, allocations: 255.7 kB / 1.441 GB, free: 3.84 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003757/1.316, allocations: 322 kB / 1.441 GB, free: 3.586 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/1.316, allocations: 266.3 kB / 1.442 GB, free: 3.418 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/1.316, allocations: 4.031 kB / 1.442 GB, free: 3.414 MB / 0.8542 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002843/1.319, allocations: 1.15 MB / 1.443 GB, free: 2.48 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.000325/1.319, allocations: 0.7831 MB / 1.444 GB, free: 1.648 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/1.319, allocations: 7.938 kB / 1.444 GB, free: 1.641 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002497/1.322, allocations: 0.6333 MB / 1.444 GB, free: 1.055 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006289/1.322, allocations: 127.8 kB / 1.444 GB, free: 0.9297 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003826/1.326, allocations: 3.13 MB / 1.447 GB, free: 14.09 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007564/1.327, allocations: 107.7 kB / 1.447 GB, free: 13.98 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.129e-05/1.327, allocations: 23.8 kB / 1.447 GB, free: 13.96 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/1.327, allocations: 13.09 kB / 1.447 GB, free: 13.95 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002255/1.329, allocations: 0.8791 MB / 1.448 GB, free: 13.28 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/1.329, allocations: 4 kB / 1.448 GB, free: 13.27 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001526/1.331, allocations: 398.6 kB / 1.449 GB, free: 12.91 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006621/1.332, allocations: 138.1 kB / 1.449 GB, free: 12.78 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003047/1.335, allocations: 2.402 MB / 1.451 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007382/1.335, allocations: 105.3 kB / 1.451 GB, free: 10.54 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/1.335, allocations: 15.98 kB / 1.451 GB, free: 10.52 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.0001791/1.336, allocations: 119.5 kB / 1.451 GB, free: 10.41 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.139e-05/1.336, allocations: 43.58 kB / 1.451 GB, free: 10.37 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00302/1.339, allocations: 1.11 MB / 1.453 GB, free: 9.48 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/1.339, allocations: 8 kB / 1.453 GB, free: 9.473 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/1.339, allocations: 0 / 1.453 GB, free: 9.473 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/1.339, allocations: 3.984 kB / 1.453 GB, free: 9.469 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00391/1.343, allocations: 1.789 MB / 1.454 GB, free: 7.98 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/1.343, allocations: 0 / 1.454 GB, free: 7.98 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/1.343, allocations: 91.7 kB / 1.454 GB, free: 7.895 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002401/1.345, allocations: 0.6197 MB / 1.455 GB, free: 7.316 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.635e-05/1.346, allocations: 3.688 kB / 1.455 GB, free: 7.316 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005295/1.351, allocations: 4.383 MB / 1.459 GB, free: 3.297 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/1.351, allocations: 3.953 kB / 1.459 GB, free: 3.293 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0028/1.354, allocations: 1.17 MB / 1.46 GB, free: 2.27 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003027/1.354, allocations: 169.7 kB / 1.461 GB, free: 2.109 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.504e-05/1.354, allocations: 3.938 kB / 1.461 GB, free: 2.109 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005489/1.355, allocations: 95.8 kB / 1.461 GB, free: 2.02 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/1.355, allocations: 23.41 kB / 1.461 GB, free: 2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/1.355, allocations: 11.94 kB / 1.461 GB, free: 1.988 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003528/1.355, allocations: 308.3 kB / 1.461 GB, free: 1.758 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/1.355, allocations: 0 / 1.461 GB, free: 1.758 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0008466/1.356, allocations: 211.4 kB / 1.461 GB, free: 1.566 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.0002945/1.356, allocations: 172.9 kB / 1.461 GB, free: 1.398 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001936/1.358, allocations: 1.207 MB / 1.463 GB, free: 484 kB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/1.358, allocations: 0 / 1.463 GB, free: 484 kB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008382/1.359, allocations: 0.5767 MB / 1.463 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005268/1.36, allocations: 110.9 kB / 1.463 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/1.361, allocations: 0.7557 MB / 1.464 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004917/1.361, allocations: 0.9276 MB / 1.465 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0006759/1.362, allocations: 215 kB / 1.465 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/1.362, allocations: 34.67 kB / 1.465 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of SimCode: time 6.92e-07/1.362, allocations: 0 / 1.465 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of Templates: time 0.01787/1.38, allocations: 12.2 MB / 1.477 GB, free: 1.945 MB / 0.8855 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