Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001182/0.001182, allocations: 196.8 kB / 16.14 MB, free: 6.734 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.366/1.366, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.779/2.779, allocations: 461.8 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 69.77 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3476, allocations: 157.4 MB / 1.052 GB, free: 8.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004936/0.3525, allocations: 3.13 MB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002867/0.3554, allocations: 1.928 MB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.3556, allocations: 4 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000883/0.3565, allocations: 271.1 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004236/0.3569, allocations: 179.2 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005774/0.3575, allocations: 203.6 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004313/0.358, allocations: 454.7 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003526/0.3583, allocations: 173.2 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.3585, allocations: 111.6 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002771/0.3588, allocations: 151.5 kB / 1.059 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.301e-05/0.3588, allocations: 12 kB / 1.059 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006402/0.3595, allocations: 479.1 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.672e-05/0.3596, allocations: 91.72 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.3597, allocations: 111.5 kB / 1.059 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005789/0.3603, allocations: 0.4908 MB / 1.06 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.924e-06/0.3603, allocations: 0 / 1.06 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.173e-06/0.3603, allocations: 3.938 kB / 1.06 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.3603, allocations: 0 / 1.06 GB, free: 1.082 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009333/0.3613, allocations: 0.5575 MB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.3613, allocations: 12.03 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007994/0.3621, allocations: 108.5 kB / 1.06 GB, free: 368 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003387/0.3625, allocations: 255.9 kB / 1.061 GB, free: 72 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.3625, allocations: 16.81 kB / 1.061 GB, free: 56 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.288e-05/0.3625, allocations: 20.38 kB / 1.061 GB, free: 36 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005437/0.3631, allocations: 357.2 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.3631, allocations: 4 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.3631, allocations: 8 kB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-05/0.3632, allocations: 28.36 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004319/0.3636, allocations: 289.5 kB / 1.061 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.3657, allocations: 1.741 MB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004579/0.3661, allocations: 321.2 kB / 1.063 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.3663, allocations: 109.6 kB / 1.063 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001213/0.3664, allocations: 97.02 kB / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.3665, allocations: 34.84 kB / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.3665, allocations: 0 / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.002433/0.3689, allocations: 0.9633 MB / 1.064 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.369, allocations: 88.98 kB / 1.065 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/0.3692, allocations: 215.6 kB / 1.065 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.3692, allocations: 29.7 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.3694, allocations: 172.1 kB / 1.065 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.816e-05/0.3694, allocations: 90.78 kB / 1.065 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.847e-05/0.3695, allocations: 57.7 kB / 1.065 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3697, allocations: 330.8 kB / 1.065 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.3699, allocations: 127.9 kB / 1.065 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000252/0.3701, allocations: 217.7 kB / 1.066 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004453/0.3706, allocations: 366.5 kB / 1.066 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3706, allocations: 4 kB / 1.066 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000825/0.3714, allocations: 0.508 MB / 1.067 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.3715, allocations: 4 kB / 1.067 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.3715, allocations: 4 kB / 1.067 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005215/0.372, allocations: 155.4 kB / 1.067 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.3723, allocations: 55.91 kB / 1.067 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002968/0.3752, allocations: 3.957 MB / 1.071 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001935/0.3754, allocations: 15.98 kB / 1.071 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.3755, allocations: 16.16 kB / 1.071 GB, free: 4.977 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001707/0.3757, allocations: 169.7 kB / 1.071 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.187e-05/0.3757, allocations: 23.72 kB / 1.071 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008377/0.3766, allocations: 478.4 kB / 1.071 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3766, allocations: 3.984 kB / 1.071 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3766, allocations: 4 kB / 1.071 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3766, allocations: 3.984 kB / 1.071 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001461/0.3781, allocations: 1.001 MB / 1.072 GB, free: 3.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.3781, allocations: 8.344 kB / 1.072 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001331/0.3782, allocations: 43.84 kB / 1.072 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00042/0.3787, allocations: 139.3 kB / 1.072 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.3787, allocations: 11.94 kB / 1.072 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002761/0.3815, allocations: 3.946 MB / 1.076 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.3815, allocations: 8.016 kB / 1.076 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008501/0.3823, allocations: 0.6301 MB / 1.077 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.3825, allocations: 128.7 kB / 1.077 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.3825, allocations: 11.98 kB / 1.077 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.3828, allocations: 19.98 kB / 1.077 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.629e-05/0.3828, allocations: 19.97 kB / 1.077 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.3829, allocations: 12 kB / 1.077 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001578/0.383, allocations: 153.5 kB / 1.077 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.833e-06/0.383, allocations: 0 / 1.077 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005459/0.3836, allocations: 99.86 kB / 1.077 GB, free: 13.57 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002306/0.3838, allocations: 131.2 kB / 1.077 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009495/0.3848, allocations: 0.5804 MB / 1.078 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3848, allocations: 0 / 1.078 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005212/0.3853, allocations: 399.3 kB / 1.078 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.3859, allocations: 53.03 kB / 1.078 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.387, allocations: 0.7277 MB / 1.079 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.3874, allocations: 0.7831 MB / 1.08 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001698/0.3876, allocations: 54.25 kB / 1.08 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.284e-05/0.3876, allocations: 19.44 kB / 1.08 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of SimCode: time 5.81e-07/0.3876, allocations: 4 kB / 1.08 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of Templates: time 0.008543/0.3962, allocations: 4.027 MB / 1.084 GB, free: 6.695 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches