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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.009551/0.009551, allocations: 97.59 kB / 15.73 MB, free: 6.059 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.001684/0.001684, allocations: 192 kB / 16.67 MB, free: 5.969 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 59.91 kB / 0.9508 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.194/1.195, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004429/1.2, allocations: 3.08 MB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003213/1.203, allocations: 1.906 MB / 1.093 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/1.203, allocations: 8 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001032/1.204, allocations: 280.1 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005162/1.205, allocations: 197.5 kB / 1.093 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007749/1.206, allocations: 245.7 kB / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004831/1.206, allocations: 325.3 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004029/1.206, allocations: 188.7 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002459/1.207, allocations: 132.5 kB / 1.094 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003602/1.207, allocations: 147.8 kB / 1.094 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.051e-05/1.207, allocations: 19.97 kB / 1.094 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009136/1.208, allocations: 403.4 kB / 1.095 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001372/1.208, allocations: 92.41 kB / 1.095 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001669/1.208, allocations: 115.1 kB / 1.095 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009191/1.209, allocations: 497.2 kB / 1.095 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/1.209, allocations: 0 / 1.095 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.825e-06/1.209, allocations: 0 / 1.095 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.019e-05/1.209, allocations: 1.312 kB / 1.095 GB, free: 0.9805 MB / 0.8575 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.0009943/1.21, allocations: 0.5502 MB / 1.096 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/1.21, allocations: 9.312 kB / 1.096 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009319/1.211, allocations: 113.6 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/1.212, allocations: 267.2 kB / 1.096 GB, free: 236 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/1.212, allocations: 16.55 kB / 1.096 GB, free: 228 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/1.212, allocations: 20.12 kB / 1.096 GB, free: 220 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006609/1.212, allocations: 356.6 kB / 1.097 GB, free: 32 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/1.212, allocations: 7.875 kB / 1.097 GB, free: 24 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/1.213, allocations: 6.875 kB / 1.097 GB, free: 20 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.488e-05/1.213, allocations: 26.19 kB / 1.097 GB, free: 16 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006922/1.213, allocations: 291.2 kB / 1.097 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002758/1.216, allocations: 1.737 MB / 1.099 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007408/1.217, allocations: 319.2 kB / 1.099 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002258/1.217, allocations: 105.1 kB / 1.099 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/1.217, allocations: 94.39 kB / 1.099 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.58e-05/1.217, allocations: 40.88 kB / 1.099 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=16): time 1.924e-06/1.217, allocations: 0.5 kB / 1.099 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.003066/1.22, allocations: 0.966 MB / 1.1 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.523e-05/1.22, allocations: 88.75 kB / 1.1 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002966/1.221, allocations: 211.7 kB / 1.1 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.656e-05/1.221, allocations: 30.8 kB / 1.1 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/1.221, allocations: 175.2 kB / 1.101 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 9.175e-05/1.221, allocations: 80.23 kB / 1.101 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/1.221, allocations: 56.67 kB / 1.101 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001568/1.221, allocations: 329.9 kB / 1.101 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/1.222, allocations: 134.8 kB / 1.101 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003028/1.222, allocations: 207.7 kB / 1.101 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005593/1.222, allocations: 371.8 kB / 1.102 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.222, allocations: 1.156 kB / 1.102 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001012/1.223, allocations: 0.5073 MB / 1.102 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.887e-05/1.224, allocations: 10.03 kB / 1.102 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/1.224, allocations: 2.875 kB / 1.102 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006124/1.224, allocations: 154.2 kB / 1.102 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/1.224, allocations: 53.36 kB / 1.102 GB, free: 12.04 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003937/1.228, allocations: 4.184 MB / 1.106 GB, free: 8.027 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/1.229, allocations: 23.2 kB / 1.106 GB, free: 8.02 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.049e-05/1.229, allocations: 9.812 kB / 1.107 GB, free: 8.02 MB / 0.8731 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.0002647/1.229, allocations: 174.3 kB / 1.107 GB, free: 7.867 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.253e-05/1.229, allocations: 21.78 kB / 1.107 GB, free: 7.855 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/1.23, allocations: 475.3 kB / 1.107 GB, free: 7.633 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/1.23, allocations: 2.828 kB / 1.107 GB, free: 7.633 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/1.23, allocations: 1.312 kB / 1.107 GB, free: 7.633 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/1.23, allocations: 2.656 kB / 1.107 GB, free: 7.633 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001831/1.232, allocations: 1.001 MB / 1.108 GB, free: 6.992 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/1.232, allocations: 2.719 kB / 1.108 GB, free: 6.992 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/1.232, allocations: 37.59 kB / 1.108 GB, free: 6.984 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004555/1.233, allocations: 143.1 kB / 1.108 GB, free: 6.922 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.714e-05/1.233, allocations: 13.45 kB / 1.108 GB, free: 6.914 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003463/1.236, allocations: 4.158 MB / 1.112 GB, free: 2.906 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.236, allocations: 2.688 kB / 1.112 GB, free: 2.906 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009691/1.237, allocations: 0.6266 MB / 1.113 GB, free: 2.461 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/1.237, allocations: 120.9 kB / 1.113 GB, free: 2.348 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/1.237, allocations: 18.22 kB / 1.113 GB, free: 2.336 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/1.238, allocations: 18.47 kB / 1.113 GB, free: 2.332 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.004e-05/1.238, allocations: 17.27 kB / 1.113 GB, free: 2.332 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/1.238, allocations: 16.97 kB / 1.113 GB, free: 2.324 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001813/1.238, allocations: 159.8 kB / 1.113 GB, free: 2.223 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.4e-07/1.238, allocations: 0 / 1.113 GB, free: 2.223 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006177/1.239, allocations: 88.11 kB / 1.113 GB, free: 2.211 MB / 0.8731 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.0002777/1.239, allocations: 134.4 kB / 1.114 GB, free: 2.105 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001095/1.24, allocations: 0.5927 MB / 1.114 GB, free: 1.75 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/1.24, allocations: 3.938 kB / 1.114 GB, free: 1.746 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006582/1.241, allocations: 397.5 kB / 1.115 GB, free: 1.469 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005598/1.241, allocations: 44.47 kB / 1.115 GB, free: 1.453 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/1.243, allocations: 0.6158 MB / 1.115 GB, free: 1.055 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004946/1.243, allocations: 0.7841 MB / 1.116 GB, free: 352 kB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000219/1.243, allocations: 55.94 kB / 1.116 GB, free: 348 kB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.275e-05/1.244, allocations: 20.41 kB / 1.116 GB, free: 340 kB / 0.8731 GB Notification: Performance of SimCode: time 7.11e-07/1.244, allocations: 1.469 kB / 1.116 GB, free: 340 kB / 0.8731 GB Notification: Performance of Templates: time 0.01163/1.255, allocations: 4.215 MB / 1.12 GB, free: 0 / 0.8731 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/jenkins/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