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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001549/0.001549, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001791/0.001791, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.472/1.472, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.499/2.499, allocations: 437 MB / 0.711 GB, free: 4.492 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 60.28 kB / 0.8699 GB, free: 2.234 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3773/0.3789, allocations: 151.6 MB / 1.018 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.01088/0.3898, allocations: 4.397 MB / 1.022 GB, free: 6.246 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007095/0.397, allocations: 3.264 MB / 1.025 GB, free: 2.969 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000507/0.3975, allocations: 11.94 kB / 1.025 GB, free: 2.957 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001935/0.3996, allocations: 0.5061 MB / 1.026 GB, free: 2.449 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001404/0.401, allocations: 394.7 kB / 1.026 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009168/0.4019, allocations: 259.4 kB / 1.027 GB, free: 1.809 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001174/0.4031, allocations: 0.5917 MB / 1.027 GB, free: 1.215 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009634/0.4041, allocations: 0.5251 MB / 1.028 GB, free: 0.6914 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006753/0.4048, allocations: 275.1 kB / 1.028 GB, free: 432 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000639/0.4054, allocations: 275 kB / 1.028 GB, free: 156 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001325/0.4056, allocations: 40 kB / 1.028 GB, free: 116 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008181/0.4064, allocations: 299.5 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003387/0.4067, allocations: 171.5 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0005563/0.4073, allocations: 230.9 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00164/0.409, allocations: 0.7712 MB / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.904e-06/0.409, allocations: 0 / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.555e-06/0.409, allocations: 0 / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.98e-05/0.409, allocations: 0 / 1.03 GB, free: 14.65 MB / 0.8106 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.002448/0.4115, allocations: 0.7753 MB / 1.03 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/0.4116, allocations: 8.031 kB / 1.03 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003333/0.4149, allocations: 0.6828 MB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009908/0.4159, allocations: 443.8 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.416, allocations: 21.03 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.4161, allocations: 36.06 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001825/0.4179, allocations: 0.7826 MB / 1.032 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.568e-05/0.4179, allocations: 3.938 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.04e-05/0.418, allocations: 16 kB / 1.032 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001309/0.4181, allocations: 40.61 kB / 1.032 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002243/0.4204, allocations: 0.8687 MB / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004555/0.425, allocations: 2.819 MB / 1.036 GB, free: 7.82 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00182/0.4268, allocations: 0.5097 MB / 1.036 GB, free: 7.301 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007938/0.4276, allocations: 264.5 kB / 1.037 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.4277, allocations: 85.09 kB / 1.037 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.4278, allocations: 30.56 kB / 1.037 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 2.324e-06/0.4278, allocations: 8 kB / 1.037 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of matching and sorting (n=24): time 0.01304/0.4408, allocations: 3.055 MB / 1.04 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.4409, allocations: 59.39 kB / 1.04 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006293/0.4416, allocations: 401.6 kB / 1.04 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.931e-05/0.4417, allocations: 29.7 kB / 1.04 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002087/0.4419, allocations: 239.7 kB / 1.041 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.442, allocations: 82.84 kB / 1.041 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.4422, allocations: 69.58 kB / 1.041 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.4424, allocations: 350.8 kB / 1.041 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.4435, allocations: 368.3 kB / 1.041 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/0.4445, allocations: 426.2 kB / 1.042 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002053/0.4466, allocations: 0.7628 MB / 1.043 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.4466, allocations: 4 kB / 1.043 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005382/0.452, allocations: 1.488 MB / 1.044 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.4521, allocations: 4 kB / 1.044 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.4521, allocations: 4 kB / 1.044 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003757/0.4558, allocations: 0.7702 MB / 1.045 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008018/0.4567, allocations: 131.8 kB / 1.045 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008393/0.4651, allocations: 4.854 MB / 1.05 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.4662, allocations: 119.9 kB / 1.05 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.4663, allocations: 15.98 kB / 1.05 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001439/0.4677, allocations: 0.5271 MB / 1.05 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001079/0.4688, allocations: 420 kB / 1.051 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002018/0.4709, allocations: 0.7337 MB / 1.051 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.308e-06/0.4709, allocations: 0 / 1.051 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.00465/0.4756, allocations: 1.27 MB / 1.053 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.4756, allocations: 8 kB / 1.053 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.4756, allocations: 0 / 1.053 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00229/0.4779, allocations: 0.5002 MB / 1.053 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007083/0.4787, allocations: 131.8 kB / 1.053 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003758/0.4824, allocations: 2.608 MB / 1.056 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008522/0.4833, allocations: 107.9 kB / 1.056 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.393e-05/0.4834, allocations: 15.98 kB / 1.056 GB, free: 2.738 MB / 0.8262 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.0002248/0.4836, allocations: 200.1 kB / 1.056 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.4837, allocations: 39.66 kB / 1.056 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004702/0.4885, allocations: 1.355 MB / 1.057 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.4885, allocations: 4 kB / 1.057 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.4885, allocations: 0 / 1.057 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.4885, allocations: 0 / 1.057 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005542/0.4941, allocations: 1.991 MB / 1.059 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-06/0.4941, allocations: 4 kB / 1.059 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003995/0.4945, allocations: 79.83 kB / 1.059 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003147/0.4977, allocations: 0.7117 MB / 1.06 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/0.4977, allocations: 15.94 kB / 1.06 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006235/0.504, allocations: 4.663 MB / 1.065 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.504, allocations: 4.031 kB / 1.065 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004431/0.5084, allocations: 1.357 MB / 1.066 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002785/0.5087, allocations: 160.7 kB / 1.066 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.5089, allocations: 11.94 kB / 1.066 GB, free: 7.715 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006544/0.5095, allocations: 87.86 kB / 1.066 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.5097, allocations: 23.95 kB / 1.066 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.388e-05/0.5097, allocations: 12 kB / 1.066 GB, free: 7.594 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004727/0.5102, allocations: 307.1 kB / 1.067 GB, free: 7.301 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5102, allocations: 0 / 1.067 GB, free: 7.301 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0009819/0.5112, allocations: 200 kB / 1.067 GB, free: 7.105 MB / 0.8419 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.0002301/0.5115, allocations: 107.3 kB / 1.067 GB, free: 6.992 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004024/0.5155, allocations: 1.598 MB / 1.068 GB, free: 5.355 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.5155, allocations: 0 / 1.068 GB, free: 5.355 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001293/0.5168, allocations: 0.6287 MB / 1.069 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007655/0.5176, allocations: 133.6 kB / 1.069 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.5198, allocations: 1.084 MB / 1.07 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006023/0.5205, allocations: 0.9054 MB / 1.071 GB, free: 2.516 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.5206, allocations: 35.42 kB / 1.071 GB, free: 2.48 MB / 0.8419 GB Notification: Performance of SimCode: time 9.32e-07/0.5206, allocations: 0 / 1.071 GB, free: 2.48 MB / 0.8419 GB Notification: Performance of Templates: time 0.4975/1.018, allocations: 12.5 MB / 1.083 GB, free: 59.65 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