Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001198/0.001198, allocations: 99.19 kB / 16.02 MB, free: 76 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.001757/0.001757, allocations: 186.2 kB / 16.92 MB, free: 6.75 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.444/1.444, allocations: 223.3 MB / 241 MB, free: 5.266 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.462/2.462, allocations: 390.9 MB / 0.667 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003546, allocations: 8 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6945/0.6949, allocations: 142.4 MB / 0.9557 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003115/0.698, allocations: 2.761 MB / 0.9584 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002533/0.7006, allocations: 1.892 MB / 0.9602 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.7008, allocations: 8.594 kB / 0.9603 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.7009, allocations: 31.22 kB / 0.9603 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000439/0.7014, allocations: 186.9 kB / 0.9605 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005242/0.7019, allocations: 206.6 kB / 0.9607 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004074/0.7023, allocations: 455.7 kB / 0.9611 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005538/0.7029, allocations: 325.7 kB / 0.9614 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.7031, allocations: 114.8 kB / 0.9615 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002619/0.7033, allocations: 145 kB / 0.9617 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/0.7034, allocations: 10.53 kB / 0.9617 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006484/0.704, allocations: 473.2 kB / 0.9621 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.014e-05/0.7041, allocations: 76.52 kB / 0.9622 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.7042, allocations: 131.5 kB / 0.9623 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003966/0.7046, allocations: 374.8 kB / 0.9627 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.7046, allocations: 0 / 0.9627 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.062e-06/0.7047, allocations: 0 / 0.9627 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.7047, allocations: 0 / 0.9627 GB, free: 2.508 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006779/0.7053, allocations: 0.5173 MB / 0.9632 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.7054, allocations: 9.844 kB / 0.9632 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007787/0.7062, allocations: 111.4 kB / 0.9633 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.7065, allocations: 263.3 kB / 0.9635 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.7065, allocations: 16.52 kB / 0.9636 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.7065, allocations: 16.91 kB / 0.9636 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004891/0.707, allocations: 358.9 kB / 0.9639 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.707, allocations: 3.938 kB / 0.9639 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.7071, allocations: 15.34 kB / 0.9639 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.274e-05/0.7071, allocations: 21.17 kB / 0.964 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004352/0.7076, allocations: 298 kB / 0.9642 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.7093, allocations: 1.743 MB / 0.9659 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004692/0.7098, allocations: 315.3 kB / 0.9662 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.71, allocations: 104.4 kB / 0.9663 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001094/0.7101, allocations: 91.86 kB / 0.9664 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.7101, allocations: 44.31 kB / 0.9665 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 1.573e-06/0.7101, allocations: 0 / 0.9665 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.002637/0.7128, allocations: 0.9704 MB / 0.9674 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.7128, allocations: 91.8 kB / 0.9675 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002457/0.7131, allocations: 215.8 kB / 0.9677 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.953e-05/0.7131, allocations: 31.05 kB / 0.9677 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.7132, allocations: 163.9 kB / 0.9679 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.989e-05/0.7133, allocations: 81.59 kB / 0.968 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/0.7134, allocations: 33.95 kB / 0.968 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.7135, allocations: 331.8 kB / 0.9683 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.7138, allocations: 132 kB / 0.9685 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.714, allocations: 204.3 kB / 0.9686 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005211/0.7146, allocations: 369.1 kB / 0.969 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.7146, allocations: 5.094 kB / 0.969 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009784/0.7156, allocations: 0.514 MB / 0.9695 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.7156, allocations: 6.375 kB / 0.9695 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.7156, allocations: 3 kB / 0.9695 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005408/0.7162, allocations: 157.9 kB / 0.9697 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002637/0.7164, allocations: 55.94 kB / 0.9697 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003085/0.7195, allocations: 3.961 MB / 0.9736 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/0.7198, allocations: 21.31 kB / 0.9736 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.883e-05/0.7198, allocations: 14.31 kB / 0.9736 GB, free: 8.879 MB / 0.7325 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.0001983/0.72, allocations: 167.6 kB / 0.9738 GB, free: 8.727 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.822e-05/0.7201, allocations: 21.5 kB / 0.9738 GB, free: 8.715 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009015/0.721, allocations: 473.5 kB / 0.9743 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.721, allocations: 4.031 kB / 0.9743 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.7211, allocations: 1.406 kB / 0.9743 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.7211, allocations: 3.984 kB / 0.9743 GB, free: 8.418 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.7227, allocations: 1.007 MB / 0.9752 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.7227, allocations: 2.344 kB / 0.9752 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.7229, allocations: 37.73 kB / 0.9753 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004533/0.7233, allocations: 155.7 kB / 0.9754 GB, free: 7.523 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.7234, allocations: 16.67 kB / 0.9754 GB, free: 7.512 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002845/0.7262, allocations: 3.947 MB / 0.9793 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.7262, allocations: 2.125 kB / 0.9793 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008816/0.7271, allocations: 0.6255 MB / 0.9799 GB, free: 3.07 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001593/0.7273, allocations: 127.1 kB / 0.98 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.709e-05/0.7274, allocations: 12.14 kB / 0.98 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.7276, allocations: 18.45 kB / 0.9801 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.751e-05/0.7277, allocations: 22.97 kB / 0.9801 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.232e-05/0.7277, allocations: 11.41 kB / 0.9801 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001612/0.7279, allocations: 154.8 kB / 0.9802 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7279, allocations: 0 / 0.9802 GB, free: 2.805 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000585/0.7285, allocations: 94.14 kB / 0.9803 GB, free: 2.785 MB / 0.7325 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.000236/0.7287, allocations: 134.4 kB / 0.9805 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001051/0.7298, allocations: 0.5871 MB / 0.981 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.7298, allocations: 0 / 0.981 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005305/0.7303, allocations: 398.4 kB / 0.9814 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005664/0.7309, allocations: 44.88 kB / 0.9815 GB, free: 1.934 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.7322, allocations: 0.7948 MB / 0.9822 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.7326, allocations: 0.783 MB / 0.983 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.448e-05/0.7327, allocations: 22.28 kB / 0.983 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of SimCode: time 5.01e-07/0.7327, allocations: 0 / 0.983 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of Templates: time 0.01139/0.7441, allocations: 7.585 MB / 0.9904 GB, free: 10.29 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches