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.001492/0.001492, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0022/0.0022, allocations: 172.7 kB / 15.95 MB, free: 208 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.463/1.463, allocations: 223.3 MB / 240 MB, free: 5.395 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.767/2.767, allocations: 437.7 MB / 0.7117 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003814, allocations: 12 kB / 0.8722 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8307/0.8311, allocations: 153.8 MB / 1.022 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.00658/0.8378, allocations: 3.87 MB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005236/0.843, allocations: 2.998 MB / 1.029 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004396/0.8435, allocations: 7.938 kB / 1.029 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007398/0.8443, allocations: 155.1 kB / 1.029 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001267/0.8456, allocations: 316.5 kB / 1.03 GB, free: 8.859 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008208/0.8464, allocations: 171.6 kB / 1.03 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00127/0.8477, allocations: 0.6617 MB / 1.03 GB, free: 8.031 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001709/0.8494, allocations: 0.7446 MB / 1.031 GB, free: 7.25 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005578/0.85, allocations: 183.2 kB / 1.031 GB, free: 7.07 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006361/0.8506, allocations: 235.1 kB / 1.031 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.176e-05/0.8507, allocations: 16 kB / 1.032 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000867/0.8516, allocations: 235.7 kB / 1.032 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.8518, allocations: 139.6 kB / 1.032 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.852, allocations: 109.5 kB / 1.032 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.853, allocations: 0.6683 MB / 1.033 GB, free: 5.676 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.8531, allocations: 0 / 1.033 GB, free: 5.676 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.537e-06/0.8531, allocations: 0 / 1.033 GB, free: 5.676 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.852e-05/0.8531, allocations: 0 / 1.033 GB, free: 5.676 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.002/0.8551, allocations: 0.7206 MB / 1.033 GB, free: 4.906 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.8552, allocations: 8.562 kB / 1.033 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002889/0.8581, allocations: 0.6936 MB / 1.034 GB, free: 4.203 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009397/0.859, allocations: 470.6 kB / 1.034 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.8591, allocations: 24.64 kB / 1.034 GB, free: 3.684 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.402e-05/0.8592, allocations: 28 kB / 1.035 GB, free: 3.656 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.8609, allocations: 0.7903 MB / 1.035 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.8609, allocations: 0 / 1.035 GB, free: 2.832 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.877e-05/0.8609, allocations: 12 kB / 1.035 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001323/0.8611, allocations: 52.59 kB / 1.035 GB, free: 2.766 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.863, allocations: 0.8843 MB / 1.036 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00405/0.8671, allocations: 2.862 MB / 1.039 GB, free: 14.8 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.8686, allocations: 0.5175 MB / 1.04 GB, free: 14.27 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006259/0.8692, allocations: 270.6 kB / 1.04 GB, free: 14.01 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001149/0.8693, allocations: 89.09 kB / 1.04 GB, free: 13.9 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.8694, allocations: 30.56 kB / 1.04 GB, free: 13.86 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 1.223e-06/0.8694, allocations: 0 / 1.04 GB, free: 13.86 MB / 0.795 GB Notification: Performance of matching and sorting (n=24): time 0.01053/0.8799, allocations: 3.214 MB / 1.043 GB, free: 10.62 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.88, allocations: 77.11 kB / 1.043 GB, free: 10.52 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005257/0.8805, allocations: 421.6 kB / 1.043 GB, free: 10.11 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 6.247e-05/0.8806, allocations: 33.64 kB / 1.044 GB, free: 10.07 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.8808, allocations: 239.8 kB / 1.044 GB, free: 9.824 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 8.663e-05/0.8809, allocations: 86.83 kB / 1.044 GB, free: 9.738 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/0.8809, allocations: 11.94 kB / 1.044 GB, free: 9.727 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.8811, allocations: 338.8 kB / 1.044 GB, free: 9.387 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008176/0.8819, allocations: 367.7 kB / 1.045 GB, free: 9.027 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008507/0.8828, allocations: 446 kB / 1.045 GB, free: 8.555 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000848/0.8836, allocations: 390.1 kB / 1.045 GB, free: 8.176 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.8836, allocations: 0 / 1.045 GB, free: 8.176 MB / 0.795 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004507/0.8881, allocations: 1.548 MB / 1.047 GB, free: 6.617 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001235/0.8883, allocations: 144 kB / 1.047 GB, free: 6.445 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.8883, allocations: 4 kB / 1.047 GB, free: 6.441 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003469/0.8918, allocations: 0.8559 MB / 1.048 GB, free: 5.578 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005646/0.8924, allocations: 131.8 kB / 1.048 GB, free: 5.449 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006551/0.8989, allocations: 4.661 MB / 1.052 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007456/0.8997, allocations: 119.9 kB / 1.053 GB, free: 416 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.604e-05/0.8998, allocations: 19.98 kB / 1.053 GB, free: 396 kB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 9.568e-06/0.8998, allocations: 4 kB / 1.053 GB, free: 392 kB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003841/0.9036, allocations: 1.266 MB / 1.054 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.9036, allocations: 0 / 1.054 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002265/0.9059, allocations: 0.5509 MB / 1.054 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006025/0.9065, allocations: 147.8 kB / 1.055 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003555/0.9101, allocations: 2.494 MB / 1.057 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007268/0.9108, allocations: 115.8 kB / 1.057 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.865e-05/0.9109, allocations: 15.98 kB / 1.057 GB, free: 11.65 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 (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.0005563/0.9115, allocations: 325 kB / 1.057 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.9116, allocations: 35.53 kB / 1.057 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004759/0.9164, allocations: 1.424 MB / 1.059 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.9164, allocations: 4 kB / 1.059 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.9165, allocations: 0 / 1.059 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.9165, allocations: 4 kB / 1.059 GB, free: 9.836 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007473/0.924, allocations: 2.091 MB / 1.061 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.924, allocations: 0 / 1.061 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000594/0.9246, allocations: 91.88 kB / 1.061 GB, free: 7.59 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005295/0.9299, allocations: 0.7896 MB / 1.062 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.554e-05/0.93, allocations: 11.98 kB / 1.062 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009297/0.9393, allocations: 4.489 MB / 1.066 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.9394, allocations: 0 / 1.066 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006716/0.9461, allocations: 1.442 MB / 1.068 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002873/0.9464, allocations: 172.6 kB / 1.068 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.398e-05/0.9465, allocations: 8 kB / 1.068 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005465/0.947, allocations: 95.84 kB / 1.068 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.9472, allocations: 27.97 kB / 1.068 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/0.9472, allocations: 7.984 kB / 1.068 GB, free: 236 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004088/0.9476, allocations: 307.1 kB / 1.068 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.7e-07/0.9476, allocations: 0 / 1.068 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0008427/0.9485, allocations: 204 kB / 1.068 GB, free: 15.73 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 (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.0001842/0.9487, allocations: 119.2 kB / 1.068 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003329/0.952, allocations: 1.632 MB / 1.07 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.952, allocations: 0 / 1.07 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.9532, allocations: 0.6613 MB / 1.071 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006636/0.9539, allocations: 125.2 kB / 1.071 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.956, allocations: 1.214 MB / 1.072 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005165/0.9565, allocations: 0.921 MB / 1.073 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0005353/0.957, allocations: 151.2 kB / 1.073 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.9572, allocations: 35.42 kB / 1.073 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of SimCode: time 5.82e-07/0.9572, allocations: 3.938 kB / 1.073 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of Templates: time 0.02197/0.9792, allocations: 11.92 MB / 1.085 GB, free: 14.9 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/jenkins/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