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.001426/0.001426, allocations: 110.7 kB / 16.37 MB, free: 6.004 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.001591/0.001591, allocations: 195.8 kB / 17.31 MB, free: 5.613 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.417/1.417, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.326/2.326, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 67.03 kB / 0.814 GB, free: 32.6 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3227, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005424/0.3281, allocations: 3.085 MB / 0.9541 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003094/0.3313, allocations: 1.913 MB / 0.956 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.3314, allocations: 4 kB / 0.956 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009851/0.3324, allocations: 286.9 kB / 0.9563 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004822/0.3329, allocations: 191.1 kB / 0.9565 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006739/0.3336, allocations: 239.3 kB / 0.9567 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003907/0.334, allocations: 326.9 kB / 0.957 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003677/0.3344, allocations: 187.1 kB / 0.9572 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.3346, allocations: 127.5 kB / 0.9573 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.3349, allocations: 155.4 kB / 0.9574 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.335, allocations: 20 kB / 0.9575 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006233/0.3356, allocations: 407.2 kB / 0.9579 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.694e-05/0.3357, allocations: 83.8 kB / 0.9579 GB, free: 1.051 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.3358, allocations: 119.4 kB / 0.958 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000619/0.3365, allocations: 486.7 kB / 0.9585 GB, free: 468 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3365, allocations: 0 / 0.9585 GB, free: 468 kB / 0.7325 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3365, allocations: 0 / 0.9585 GB, free: 468 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.234e-05/0.3365, allocations: 0 / 0.9585 GB, free: 468 kB / 0.7325 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.0009632/0.3375, allocations: 0.5653 MB / 0.9591 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.3375, allocations: 8.031 kB / 0.9591 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008031/0.3383, allocations: 108.5 kB / 0.9592 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003592/0.3387, allocations: 267.9 kB / 0.9594 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.3387, allocations: 12.81 kB / 0.9594 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.525e-05/0.3388, allocations: 24.36 kB / 0.9595 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005103/0.3393, allocations: 357.4 kB / 0.9598 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3393, allocations: 0 / 0.9598 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.3393, allocations: 7.984 kB / 0.9598 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.949e-05/0.3394, allocations: 28.42 kB / 0.9598 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/0.3398, allocations: 289.5 kB / 0.9601 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.3419, allocations: 1.733 MB / 0.9618 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004655/0.3424, allocations: 330.2 kB / 0.9621 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.3426, allocations: 105.6 kB / 0.9622 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000104/0.3427, allocations: 93.03 kB / 0.9623 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.3427, allocations: 34.84 kB / 0.9623 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.3427, allocations: 0 / 0.9623 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.002367/0.3451, allocations: 0.9609 MB / 0.9633 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.3452, allocations: 85.05 kB / 0.9634 GB, free: 11.08 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.3454, allocations: 215.7 kB / 0.9636 GB, free: 10.85 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.3454, allocations: 25.7 kB / 0.9636 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.3456, allocations: 168.2 kB / 0.9638 GB, free: 10.65 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 6.404e-05/0.3456, allocations: 94.8 kB / 0.9639 GB, free: 10.56 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.875e-05/0.3457, allocations: 61.61 kB / 0.9639 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3459, allocations: 334.8 kB / 0.9642 GB, free: 10.16 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.346, allocations: 127.9 kB / 0.9644 GB, free: 10.03 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002414/0.3463, allocations: 205.4 kB / 0.9645 GB, free: 9.797 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004533/0.3468, allocations: 380.1 kB / 0.9649 GB, free: 9.395 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3468, allocations: 0 / 0.9649 GB, free: 9.395 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008702/0.3476, allocations: 0.4967 MB / 0.9654 GB, free: 8.879 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.141e-05/0.3477, allocations: 7.984 kB / 0.9654 GB, free: 8.871 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3477, allocations: 4 kB / 0.9654 GB, free: 8.867 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000525/0.3482, allocations: 155.4 kB / 0.9656 GB, free: 8.703 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.3485, allocations: 55.91 kB / 0.9656 GB, free: 8.648 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003127/0.3516, allocations: 4.194 MB / 0.9697 GB, free: 4.121 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.3519, allocations: 19.97 kB / 0.9697 GB, free: 4.102 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.902e-05/0.3519, allocations: 16 kB / 0.9697 GB, free: 4.086 MB / 0.7481 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.0001802/0.3521, allocations: 161.7 kB / 0.9699 GB, free: 3.918 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.314e-05/0.3522, allocations: 23.72 kB / 0.9699 GB, free: 3.895 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008702/0.353, allocations: 487.3 kB / 0.9704 GB, free: 3.398 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3531, allocations: 4 kB / 0.9704 GB, free: 3.395 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3531, allocations: 4 kB / 0.9704 GB, free: 3.391 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3531, allocations: 7.984 kB / 0.9704 GB, free: 3.383 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.3546, allocations: 0.9999 MB / 0.9714 GB, free: 2.289 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3546, allocations: 0 / 0.9714 GB, free: 2.289 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/0.3548, allocations: 39.91 kB / 0.9714 GB, free: 2.25 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003787/0.3552, allocations: 135.3 kB / 0.9715 GB, free: 2.105 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.3552, allocations: 4.188 kB / 0.9715 GB, free: 2.102 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002863/0.3581, allocations: 4.182 MB / 0.9756 GB, free: 13.59 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3581, allocations: 4 kB / 0.9756 GB, free: 13.58 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000826/0.3589, allocations: 0.6279 MB / 0.9762 GB, free: 12.9 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.3591, allocations: 124.8 kB / 0.9764 GB, free: 12.76 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.456e-05/0.3591, allocations: 11.94 kB / 0.9764 GB, free: 12.75 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.3593, allocations: 15.98 kB / 0.9764 GB, free: 12.73 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.193e-05/0.3594, allocations: 31.91 kB / 0.9764 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.3594, allocations: 12 kB / 0.9764 GB, free: 12.69 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0001458/0.3596, allocations: 153.5 kB / 0.9766 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3596, allocations: 0 / 0.9766 GB, free: 12.54 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0005106/0.3601, allocations: 92 kB / 0.9767 GB, free: 12.45 MB / 0.7637 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.0002134/0.3603, allocations: 136.1 kB / 0.9768 GB, free: 12.31 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0009835/0.3613, allocations: 0.5868 MB / 0.9774 GB, free: 11.7 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3613, allocations: 0 / 0.9774 GB, free: 11.7 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0005656/0.3619, allocations: 404.3 kB / 0.9778 GB, free: 11.28 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005316/0.3624, allocations: 45.03 kB / 0.9778 GB, free: 11.24 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.3636, allocations: 0.6348 MB / 0.9784 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004353/0.3641, allocations: 0.7792 MB / 0.9792 GB, free: 9.754 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001626/0.3642, allocations: 62.23 kB / 0.9792 GB, free: 9.695 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.246e-05/0.3643, allocations: 23.38 kB / 0.9793 GB, free: 9.672 MB / 0.7637 GB Notification: Performance of SimCode: time 2.6e-07/0.3643, allocations: 4 kB / 0.9793 GB, free: 9.668 MB / 0.7637 GB Notification: Performance of Templates: time 0.008015/0.3723, allocations: 4.157 MB / 0.9833 GB, free: 5.539 MB / 0.7637 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 -s cvode -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