Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0008107/0.0008106, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 174.5 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.656/2.656, allocations: 437.8 MB / 0.7128 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003669/0.0003673, allocations: 8 kB / 0.8735 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7931/0.7935, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.00605/0.7996, allocations: 4.043 MB / 1.028 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005544/0.8052, allocations: 3.215 MB / 1.031 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004722/0.8057, allocations: 15.88 kB / 1.031 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0008213/0.8065, allocations: 163.1 kB / 1.031 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001342/0.8079, allocations: 362.4 kB / 1.031 GB, free: 8.062 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008308/0.8088, allocations: 239.2 kB / 1.032 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001207/0.81, allocations: 0.7906 MB / 1.032 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001727/0.8117, allocations: 0.827 MB / 1.033 GB, free: 6.176 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000608/0.8124, allocations: 219.1 kB / 1.033 GB, free: 5.961 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005907/0.813, allocations: 259 kB / 1.034 GB, free: 5.707 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.165e-05/0.8131, allocations: 12 kB / 1.034 GB, free: 5.695 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000819/0.8139, allocations: 331.4 kB / 1.034 GB, free: 5.371 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002372/0.8141, allocations: 131.6 kB / 1.034 GB, free: 5.242 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003462/0.8145, allocations: 224.6 kB / 1.034 GB, free: 5.016 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0009578/0.8154, allocations: 0.6214 MB / 1.035 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.269e-06/0.8155, allocations: 0 / 1.035 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.643e-06/0.8155, allocations: 0 / 1.035 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.113e-05/0.8155, allocations: 0 / 1.035 GB, free: 4.395 MB / 0.7794 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.001569/0.8171, allocations: 0.6936 MB / 1.036 GB, free: 3.652 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.8171, allocations: 12.03 kB / 1.036 GB, free: 3.641 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003201/0.8203, allocations: 0.6906 MB / 1.036 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008788/0.8212, allocations: 439.7 kB / 1.037 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.8213, allocations: 25.02 kB / 1.037 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.8214, allocations: 32.12 kB / 1.037 GB, free: 2.426 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00184/0.8232, allocations: 0.7981 MB / 1.037 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.8233, allocations: 0 / 1.037 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.886e-05/0.8234, allocations: 16 kB / 1.037 GB, free: 1.582 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001234/0.8235, allocations: 44.61 kB / 1.038 GB, free: 1.535 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002292/0.8258, allocations: 0.8843 MB / 1.038 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00442/0.8302, allocations: 2.831 MB / 1.041 GB, free: 13.61 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001798/0.832, allocations: 0.5293 MB / 1.042 GB, free: 13.07 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007794/0.8328, allocations: 268.6 kB / 1.042 GB, free: 12.8 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001195/0.833, allocations: 81.11 kB / 1.042 GB, free: 12.7 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.833, allocations: 42.5 kB / 1.042 GB, free: 12.65 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 2.174e-06/0.833, allocations: 0 / 1.042 GB, free: 12.65 MB / 0.795 GB Notification: Performance of matching and sorting (n=24): time 0.01331/0.8463, allocations: 3.202 MB / 1.045 GB, free: 9.418 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.8465, allocations: 55.41 kB / 1.045 GB, free: 9.352 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006184/0.8471, allocations: 409.5 kB / 1.046 GB, free: 8.945 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.972e-05/0.8472, allocations: 29.64 kB / 1.046 GB, free: 8.91 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000204/0.8474, allocations: 239.8 kB / 1.046 GB, free: 8.672 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.8475, allocations: 86.73 kB / 1.046 GB, free: 8.586 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.534e-05/0.8476, allocations: 29.72 kB / 1.046 GB, free: 8.551 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.8478, allocations: 342.8 kB / 1.046 GB, free: 8.207 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.8488, allocations: 367.7 kB / 1.047 GB, free: 7.848 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.8499, allocations: 453.5 kB / 1.047 GB, free: 7.371 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002114/0.8521, allocations: 0.7911 MB / 1.048 GB, free: 6.555 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.8521, allocations: 4 kB / 1.048 GB, free: 6.551 MB / 0.795 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005595/0.8577, allocations: 1.547 MB / 1.049 GB, free: 4.992 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001382/0.8578, allocations: 144.1 kB / 1.05 GB, free: 4.82 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.8579, allocations: 3.938 kB / 1.05 GB, free: 4.816 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004004/0.8619, allocations: 0.8208 MB / 1.05 GB, free: 3.988 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007271/0.8626, allocations: 139.8 kB / 1.05 GB, free: 3.852 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007096/0.8697, allocations: 4.545 MB / 1.055 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009118/0.8707, allocations: 115.8 kB / 1.055 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-05/0.8708, allocations: 16 kB / 1.055 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.8708, allocations: 7.938 kB / 1.055 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004779/0.8756, allocations: 1.265 MB / 1.056 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.8756, allocations: 4 kB / 1.056 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002646/0.8783, allocations: 0.5392 MB / 1.057 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007479/0.879, allocations: 147.8 kB / 1.057 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004839/0.8839, allocations: 2.689 MB / 1.06 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008514/0.8848, allocations: 111.9 kB / 1.06 GB, free: 10 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-05/0.8849, allocations: 19.98 kB / 1.06 GB, free: 9.984 MB / 0.8106 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0004911/0.8854, allocations: 313.5 kB / 1.06 GB, free: 9.668 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.8855, allocations: 39.56 kB / 1.06 GB, free: 9.629 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00496/0.8905, allocations: 1.42 MB / 1.061 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.8905, allocations: 4 kB / 1.061 GB, free: 8.191 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.8905, allocations: 4 kB / 1.061 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.8905, allocations: 7.922 kB / 1.061 GB, free: 8.18 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005634/0.8962, allocations: 2.032 MB / 1.063 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.8962, allocations: 4.094 kB / 1.063 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004039/0.8966, allocations: 87.83 kB / 1.063 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003452/0.9001, allocations: 0.7661 MB / 1.064 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.9001, allocations: 4 kB / 1.064 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005977/0.9061, allocations: 4.368 MB / 1.068 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.9061, allocations: 7.969 kB / 1.069 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00465/0.9108, allocations: 1.405 MB / 1.07 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.9112, allocations: 172.6 kB / 1.07 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.9113, allocations: 3.938 kB / 1.07 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000664/0.9119, allocations: 95.86 kB / 1.07 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.9121, allocations: 31.89 kB / 1.07 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.9121, allocations: 8 kB / 1.07 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004719/0.9126, allocations: 307.1 kB / 1.07 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9126, allocations: 0 / 1.07 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0009889/0.9136, allocations: 204 kB / 1.071 GB, free: 14.3 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002083/0.9138, allocations: 103.2 kB / 1.071 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.004778/0.9186, allocations: 1.772 MB / 1.072 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.9187, allocations: 0 / 1.072 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.92, allocations: 0.6263 MB / 1.073 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008285/0.9208, allocations: 120.1 kB / 1.073 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002262/0.9231, allocations: 1.262 MB / 1.074 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005851/0.9237, allocations: 0.9093 MB / 1.075 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001647/0.9238, allocations: 35.41 kB / 1.075 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of SimCode: time 8.62e-07/0.9239, allocations: 0 / 1.075 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of Templates: time 0.01926/0.9431, allocations: 12.5 MB / 1.088 GB, free: 12.87 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches