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.008062/0.008063, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.001677/0.001677, allocations: 190.2 kB / 16.67 MB, free: 5.871 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 / 240.4 MB, free: 15.04 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.323/2.323, allocations: 390.2 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 63.91 kB / 0.9508 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.17/1.172, allocations: 140.4 MB / 1.088 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005057/1.177, allocations: 3.076 MB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003344/1.18, allocations: 1.901 MB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/1.18, allocations: 8.25 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001137/1.182, allocations: 282.6 kB / 1.093 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005776/1.182, allocations: 198.1 kB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007667/1.183, allocations: 245.6 kB / 1.093 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006936/1.184, allocations: 329.8 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005864/1.184, allocations: 180.3 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003477/1.185, allocations: 136.7 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003983/1.185, allocations: 147.9 kB / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.657e-05/1.185, allocations: 20.62 kB / 1.094 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008584/1.186, allocations: 402.6 kB / 1.095 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001441/1.186, allocations: 91.59 kB / 1.095 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001741/1.186, allocations: 120.1 kB / 1.095 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008969/1.187, allocations: 499.2 kB / 1.095 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/1.187, allocations: 0 / 1.095 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.734e-06/1.187, allocations: 0.75 kB / 1.095 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.616e-06/1.187, allocations: 3.938 kB / 1.095 GB, free: 0.9492 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.0009629/1.188, allocations: 0.562 MB / 1.096 GB, free: 464 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/1.188, allocations: 12.97 kB / 1.096 GB, free: 460 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009023/1.189, allocations: 109.8 kB / 1.096 GB, free: 440 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003674/1.19, allocations: 265.1 kB / 1.096 GB, free: 192 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/1.19, allocations: 13.12 kB / 1.096 GB, free: 188 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.625e-05/1.19, allocations: 20.5 kB / 1.096 GB, free: 180 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006595/1.19, allocations: 359.6 kB / 1.097 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/1.19, allocations: 4.656 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.959e-05/1.19, allocations: 11.45 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.802e-05/1.19, allocations: 25.64 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005754/1.191, allocations: 295 kB / 1.097 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002526/1.194, allocations: 1.735 MB / 1.099 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005561/1.194, allocations: 320.9 kB / 1.099 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/1.194, allocations: 106.4 kB / 1.099 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001157/1.194, allocations: 93.88 kB / 1.099 GB, free: 14.05 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.262e-05/1.194, allocations: 37.89 kB / 1.099 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/1.195, allocations: 0 / 1.099 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.002764/1.197, allocations: 0.9674 MB / 1.1 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/1.197, allocations: 84.98 kB / 1.1 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002771/1.198, allocations: 215.3 kB / 1.1 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/1.198, allocations: 30.77 kB / 1.1 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/1.198, allocations: 172.6 kB / 1.101 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 8.737e-05/1.198, allocations: 79.94 kB / 1.101 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/1.198, allocations: 68.28 kB / 1.101 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001396/1.198, allocations: 329.7 kB / 1.101 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002404/1.198, allocations: 135.5 kB / 1.101 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00031/1.199, allocations: 207.6 kB / 1.101 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005716/1.199, allocations: 367.9 kB / 1.102 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/1.199, allocations: 0.5938 kB / 1.102 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001023/1.2, allocations: 0.5106 MB / 1.102 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/1.2, allocations: 6.812 kB / 1.102 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/1.2, allocations: 7.578 kB / 1.102 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006035/1.201, allocations: 149.7 kB / 1.102 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003143/1.201, allocations: 61.53 kB / 1.102 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003638/1.205, allocations: 4.188 MB / 1.107 GB, free: 7.969 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/1.205, allocations: 27.05 kB / 1.107 GB, free: 7.957 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.862e-05/1.205, allocations: 10.89 kB / 1.107 GB, free: 7.957 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.0002214/1.206, allocations: 166.8 kB / 1.107 GB, free: 7.812 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.773e-05/1.206, allocations: 22.73 kB / 1.107 GB, free: 7.801 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000948/1.207, allocations: 470.8 kB / 1.107 GB, free: 7.582 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/1.207, allocations: 3.281 kB / 1.107 GB, free: 7.582 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/1.207, allocations: 1.609 kB / 1.107 GB, free: 7.582 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/1.207, allocations: 6.781 kB / 1.107 GB, free: 7.578 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/1.208, allocations: 1.008 MB / 1.108 GB, free: 6.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.742e-06/1.208, allocations: 6.953 kB / 1.108 GB, free: 6.926 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/1.209, allocations: 33.64 kB / 1.108 GB, free: 6.922 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004167/1.209, allocations: 142.9 kB / 1.108 GB, free: 6.859 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/1.209, allocations: 9.672 kB / 1.108 GB, free: 6.855 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003142/1.212, allocations: 4.162 MB / 1.112 GB, free: 2.844 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.212, allocations: 2.781 kB / 1.112 GB, free: 2.844 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008798/1.213, allocations: 0.6199 MB / 1.113 GB, free: 2.402 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/1.213, allocations: 126.4 kB / 1.113 GB, free: 2.285 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/1.213, allocations: 13.45 kB / 1.113 GB, free: 2.277 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/1.214, allocations: 17.92 kB / 1.113 GB, free: 2.273 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.456e-05/1.214, allocations: 17.69 kB / 1.113 GB, free: 2.273 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/1.214, allocations: 16.25 kB / 1.113 GB, free: 2.266 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001767/1.214, allocations: 155.9 kB / 1.113 GB, free: 2.168 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.1e-07/1.214, allocations: 1.25 kB / 1.113 GB, free: 2.168 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000598/1.214, allocations: 87.81 kB / 1.113 GB, free: 2.156 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.0002386/1.215, allocations: 137.2 kB / 1.114 GB, free: 2.047 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001063/1.216, allocations: 0.5841 MB / 1.114 GB, free: 1.699 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/1.216, allocations: 5.281 kB / 1.114 GB, free: 1.695 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0005662/1.216, allocations: 403.5 kB / 1.115 GB, free: 1.414 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005387/1.217, allocations: 40.34 kB / 1.115 GB, free: 1.402 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/1.218, allocations: 0.6332 MB / 1.115 GB, free: 0.9883 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/1.219, allocations: 0.7841 MB / 1.116 GB, free: 284 kB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001866/1.219, allocations: 63.41 kB / 1.116 GB, free: 272 kB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.375e-05/1.219, allocations: 21.8 kB / 1.116 GB, free: 264 kB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/1.219, allocations: 0 / 1.116 GB, free: 264 kB / 0.8731 GB Notification: Performance of Templates: time 0.01103/1.23, allocations: 4.215 MB / 1.12 GB, free: 15.93 MB / 0.8887 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