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: 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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.274/2.274, allocations: 393.5 MB / 408.4 MB, free: 11.07 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.001262/0.001262, allocations: 189.7 kB / 0.4902 GB, free: 2.242 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.576/1.576, allocations: 223.2 MB / 0.7992 GB, free: 14.71 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.0009157/0.0009158, allocations: 100.2 kB / 0.9396 GB, free: 1.922 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003905, allocations: 11.03 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2659, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2286/0.4945, allocations: 194.3 MB / 1.419 GB, free: 7.223 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.4949, allocations: 103.9 kB / 1.419 GB, free: 7.121 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.7235/1.218, allocations: 30.93 MB / 1.449 GB, free: 189 MB / 0.9167 GB Notification: Performance of FrontEnd: time 3.126e-06/1.218, allocations: 0 / 1.449 GB, free: 189 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 6.943e-05/1.219, allocations: 11.62 kB / 1.449 GB, free: 189 MB / 0.9167 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.002098/1.221, allocations: 0.7386 MB / 1.45 GB, free: 188.5 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/1.221, allocations: 9.938 kB / 1.45 GB, free: 188.5 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002895/1.224, allocations: 0.5774 MB / 1.451 GB, free: 188.3 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/1.225, allocations: 479.3 kB / 1.451 GB, free: 188 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.389e-05/1.225, allocations: 18.09 kB / 1.451 GB, free: 188 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001494/1.225, allocations: 31.25 kB / 1.451 GB, free: 188 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00197/1.227, allocations: 0.7579 MB / 1.452 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/1.227, allocations: 1.188 kB / 1.452 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.865e-05/1.227, allocations: 11.06 kB / 1.452 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.966e-05/1.227, allocations: 32.08 kB / 1.452 GB, free: 187.6 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002154/1.229, allocations: 0.8545 MB / 1.453 GB, free: 187.4 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004329/1.234, allocations: 2.859 MB / 1.455 GB, free: 185.3 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001543/1.235, allocations: 0.5266 MB / 1.456 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/1.235, allocations: 86.19 kB / 1.456 GB, free: 185.1 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/1.235, allocations: 35.78 kB / 1.456 GB, free: 185 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=16): time 2.926e-06/1.235, allocations: 0 / 1.456 GB, free: 185 MB / 0.9167 GB Notification: Performance of matching and sorting (n=24): time 0.01065/1.246, allocations: 2.955 MB / 1.459 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/1.246, allocations: 83.45 kB / 1.459 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006915/1.247, allocations: 380.5 kB / 1.459 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 5.586e-05/1.247, allocations: 34.77 kB / 1.459 GB, free: 183.6 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/1.247, allocations: 239.7 kB / 1.46 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 8.874e-05/1.247, allocations: 75.89 kB / 1.46 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/1.247, allocations: 4.969 kB / 1.46 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 9.624e-05/1.247, allocations: 345.4 kB / 1.46 GB, free: 183 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009212/1.248, allocations: 366.3 kB / 1.46 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008109/1.249, allocations: 444.8 kB / 1.461 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008566/1.25, allocations: 391.5 kB / 1.461 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/1.25, allocations: 0 / 1.461 GB, free: 182.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.003896/1.254, allocations: 1.411 MB / 1.463 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001825/1.254, allocations: 0.7814 MB / 1.463 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/1.254, allocations: 2.438 kB / 1.463 GB, free: 180.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002901/1.257, allocations: 0.7066 MB / 1.464 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005762/1.258, allocations: 133.6 kB / 1.464 GB, free: 180.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003491/1.261, allocations: 3.247 MB / 1.467 GB, free: 177.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008028/1.262, allocations: 114.3 kB / 1.468 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/1.262, allocations: 15.39 kB / 1.468 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/1.262, allocations: 6.125 kB / 1.468 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003164/1.265, allocations: 1.156 MB / 1.469 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/1.265, allocations: 3 kB / 1.469 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00188/1.267, allocations: 467.1 kB / 1.469 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005745/1.268, allocations: 143.8 kB / 1.469 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002867/1.271, allocations: 2.527 MB / 1.472 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007397/1.271, allocations: 118.7 kB / 1.472 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/1.271, allocations: 11.78 kB / 1.472 GB, free: 174.8 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 () * Number of clocked 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.0004576/1.272, allocations: 323.8 kB / 1.472 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/1.272, allocations: 39.22 kB / 1.472 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003707/1.276, allocations: 1.308 MB / 1.473 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/1.276, allocations: 0 / 1.473 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/1.276, allocations: 8 kB / 1.473 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/1.276, allocations: 3.938 kB / 1.473 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004592/1.28, allocations: 1.991 MB / 1.475 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/1.28, allocations: 0 / 1.475 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003649/1.281, allocations: 88 kB / 1.475 GB, free: 171.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00275/1.283, allocations: 0.6882 MB / 1.476 GB, free: 170.5 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/1.284, allocations: 3.984 kB / 1.476 GB, free: 170.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004708/1.288, allocations: 4.583 MB / 1.481 GB, free: 165.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/1.288, allocations: 0 / 1.481 GB, free: 165.6 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003426/1.292, allocations: 1.368 MB / 1.482 GB, free: 164.2 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003231/1.292, allocations: 164.7 kB / 1.482 GB, free: 164 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/1.292, allocations: 11.98 kB / 1.482 GB, free: 164 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005509/1.293, allocations: 91.86 kB / 1.482 GB, free: 163.9 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/1.293, allocations: 23.95 kB / 1.482 GB, free: 163.9 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.1e-05/1.293, allocations: 8 kB / 1.482 GB, free: 163.9 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003696/1.293, allocations: 315 kB / 1.483 GB, free: 163.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.2e-07/1.293, allocations: 0 / 1.483 GB, free: 163.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0009878/1.294, allocations: 219.9 kB / 1.483 GB, free: 163.4 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 () * Number of clocked 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.0002927/1.295, allocations: 162.9 kB / 1.483 GB, free: 163.2 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003119/1.298, allocations: 1.506 MB / 1.484 GB, free: 161.7 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/1.298, allocations: 0 / 1.484 GB, free: 161.7 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001103/1.299, allocations: 0.6768 MB / 1.485 GB, free: 161 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006871/1.3, allocations: 118.9 kB / 1.485 GB, free: 160.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/1.302, allocations: 1.204 MB / 1.486 GB, free: 159.6 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004371/1.302, allocations: 0.921 MB / 1.487 GB, free: 158.7 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0005363/1.303, allocations: 151.2 kB / 1.487 GB, free: 158.5 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/1.303, allocations: 35.42 kB / 1.487 GB, free: 158.5 MB / 0.9167 GB Notification: Performance of SimCode: time 2.2e-07/1.303, allocations: 0 / 1.487 GB, free: 158.5 MB / 0.9167 GB Notification: Performance of Templates: time 0.01674/1.319, allocations: 11.76 MB / 1.499 GB, free: 146.8 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (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 & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches