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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009604/0.0009604, allocations: 100.5 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009493/0.0009496, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.455/2.455, allocations: 390.3 MB / 0.6653 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00043/0.0004303, allocations: 8 kB / 0.8145 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8758/0.8762, allocations: 142.3 MB / 0.9535 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.004123/0.8804, allocations: 3.702 MB / 0.9571 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003668/0.8841, allocations: 2.923 MB / 0.96 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002419/0.8844, allocations: 8.656 kB / 0.96 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005152/0.8849, allocations: 160.7 kB / 0.9602 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007371/0.8857, allocations: 292.4 kB / 0.9604 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005226/0.8862, allocations: 178.3 kB / 0.9606 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005173/0.8867, allocations: 341.6 kB / 0.9609 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.8879, allocations: 0.7275 MB / 0.9616 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002695/0.8881, allocations: 165.2 kB / 0.9618 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003083/0.8885, allocations: 177.6 kB / 0.962 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.946e-05/0.8885, allocations: 17.16 kB / 0.962 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005772/0.8891, allocations: 235.8 kB / 0.9622 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.8893, allocations: 127 kB / 0.9623 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.276e-05/0.8894, allocations: 106.2 kB / 0.9624 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006929/0.8901, allocations: 0.6579 MB / 0.9631 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.8901, allocations: 0 / 0.9631 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.522e-06/0.8901, allocations: 0 / 0.9631 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.844e-06/0.8901, allocations: 0 / 0.9631 GB, free: 0.9805 MB / 0.7169 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.001208/0.8913, allocations: 0.7254 MB / 0.9638 GB, free: 364 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.8914, allocations: 8.906 kB / 0.9638 GB, free: 364 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002779/0.8941, allocations: 0.7027 MB / 0.9645 GB, free: 20 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009129/0.8951, allocations: 469.9 kB / 0.9649 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.586e-05/0.8951, allocations: 32.92 kB / 0.965 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.955e-05/0.8952, allocations: 32.14 kB / 0.965 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.8969, allocations: 0.7832 MB / 0.9658 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.897, allocations: 8.906 kB / 0.9658 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.588e-05/0.897, allocations: 15.16 kB / 0.9658 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001531/0.8972, allocations: 53.72 kB / 0.9658 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002127/0.8993, allocations: 0.8795 MB / 0.9667 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004302/0.9036, allocations: 2.849 MB / 0.9695 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.9052, allocations: 0.5218 MB / 0.97 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001064/0.9054, allocations: 86.69 kB / 0.9701 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.9054, allocations: 36.59 kB / 0.9701 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 1.944e-06/0.9054, allocations: 4 kB / 0.9701 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24): time 0.01137/0.9168, allocations: 3.216 MB / 0.9732 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.9169, allocations: 82.62 kB / 0.9733 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005776/0.9175, allocations: 422.5 kB / 0.9737 GB, free: 9.809 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.838e-05/0.9175, allocations: 30.73 kB / 0.9738 GB, free: 9.773 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.9177, allocations: 236 kB / 0.974 GB, free: 9.562 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.24e-05/0.9178, allocations: 86.36 kB / 0.9741 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/0.9179, allocations: 5.375 kB / 0.9741 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.918, allocations: 344.7 kB / 0.9744 GB, free: 9.148 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009029/0.9189, allocations: 362.2 kB / 0.9747 GB, free: 8.973 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009212/0.9199, allocations: 449.5 kB / 0.9752 GB, free: 8.688 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009261/0.9208, allocations: 388.7 kB / 0.9755 GB, free: 8.5 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.9208, allocations: 0 / 0.9755 GB, free: 8.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004821/0.9256, allocations: 1.539 MB / 0.977 GB, free: 7.531 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003584/0.926, allocations: 0.7903 MB / 0.9778 GB, free: 6.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.926, allocations: 7.984 kB / 0.9778 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003748/0.9298, allocations: 0.8519 MB / 0.9787 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000606/0.9304, allocations: 127.8 kB / 0.9788 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006631/0.937, allocations: 4.791 MB / 0.9835 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008079/0.9379, allocations: 115.8 kB / 0.9836 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.9379, allocations: 19.98 kB / 0.9836 GB, free: 0.4922 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.9379, allocations: 5.406 kB / 0.9836 GB, free: 500 kB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004024/0.942, allocations: 1.265 MB / 0.9848 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.942, allocations: 0 / 0.9848 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00242/0.9444, allocations: 0.5549 MB / 0.9854 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006069/0.945, allocations: 143.8 kB / 0.9855 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003579/0.9486, allocations: 2.565 MB / 0.988 GB, free: 11.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007355/0.9494, allocations: 119.9 kB / 0.9881 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.802e-05/0.9494, allocations: 12 kB / 0.9881 GB, free: 11.7 MB / 0.7481 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.0004476/0.9499, allocations: 320.9 kB / 0.9884 GB, free: 11.37 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.329e-05/0.95, allocations: 39.53 kB / 0.9885 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004326/0.9543, allocations: 1.425 MB / 0.9899 GB, free: 9.887 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.9543, allocations: 0 / 0.9899 GB, free: 9.887 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.9543, allocations: 7.938 kB / 0.9899 GB, free: 9.879 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.9544, allocations: 0 / 0.9899 GB, free: 9.879 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005123/0.9595, allocations: 2.086 MB / 0.9919 GB, free: 7.727 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.9595, allocations: 0 / 0.9919 GB, free: 7.727 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003724/0.9599, allocations: 91.83 kB / 0.992 GB, free: 7.637 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003227/0.9631, allocations: 0.7858 MB / 0.9928 GB, free: 6.844 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.394e-05/0.9632, allocations: 7.984 kB / 0.9928 GB, free: 6.836 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005864/0.9691, allocations: 4.61 MB / 0.9973 GB, free: 1.957 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.9691, allocations: 0 / 0.9973 GB, free: 1.957 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004322/0.9734, allocations: 1.476 MB / 0.9987 GB, free: 440 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003802/0.9738, allocations: 172.7 kB / 0.9989 GB, free: 248 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.835e-05/0.9739, allocations: 8 kB / 0.9989 GB, free: 240 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005737/0.9745, allocations: 95.84 kB / 0.999 GB, free: 144 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.9746, allocations: 19.92 kB / 0.999 GB, free: 124 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-05/0.9747, allocations: 15.98 kB / 0.999 GB, free: 108 kB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004404/0.9751, allocations: 307.1 kB / 0.9993 GB, free: 15.81 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.91e-07/0.9751, allocations: 4 kB / 0.9993 GB, free: 15.8 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.000945/0.9761, allocations: 212 kB / 0.9995 GB, free: 15.6 MB / 0.7637 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.0002361/0.9763, allocations: 111.2 kB / 0.9996 GB, free: 15.48 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0035/0.9798, allocations: 1.625 MB / 1.001 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.9798, allocations: 4 kB / 1.001 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.981, allocations: 0.664 MB / 1.002 GB, free: 13.12 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005554/0.9816, allocations: 114.7 kB / 1.002 GB, free: 13.01 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002083/0.9837, allocations: 1.214 MB / 1.003 GB, free: 11.77 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000517/0.9842, allocations: 0.9287 MB / 1.004 GB, free: 10.81 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005087/0.9847, allocations: 155.2 kB / 1.004 GB, free: 10.66 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.9849, allocations: 39.41 kB / 1.004 GB, free: 10.62 MB / 0.7637 GB Notification: Performance of SimCode: time 7.41e-07/0.9849, allocations: 0 / 1.004 GB, free: 10.62 MB / 0.7637 GB Notification: Performance of Templates: time 0.0175/1.002, allocations: 11.91 MB / 1.016 GB, free: 14.78 MB / 0.7794 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