Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00152/0.00152, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001517/0.001517, allocations: 192.4 kB / 16.14 MB, free: 6.711 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.554/1.554, 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 10.1.1-maint.10.0.x/package.mo): time 2.902/2.902, allocations: 437 MB / 0.7099 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 59.91 kB / 0.8686 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9154/0.9174, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.006622/0.9241, allocations: 3.135 MB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004708/0.9289, allocations: 1.925 MB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.9292, allocations: 7.938 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.9304, allocations: 263.1 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005868/0.931, allocations: 183.3 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008528/0.9318, allocations: 207.5 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005731/0.9324, allocations: 450.8 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004651/0.9329, allocations: 175 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001921/0.9331, allocations: 111.5 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003583/0.9334, allocations: 151.5 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.9335, allocations: 12 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009422/0.9344, allocations: 479.1 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.9346, allocations: 75.78 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.9347, allocations: 119.3 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007249/0.9355, allocations: 498.6 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.9355, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.063e-06/0.9355, allocations: 4 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.9355, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 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.001138/0.9367, allocations: 0.5652 MB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.9367, allocations: 8.031 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008749/0.9376, allocations: 108.5 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.938, allocations: 269.5 kB / 1.025 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.938, allocations: 16.81 kB / 1.025 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.237e-05/0.9381, allocations: 20.38 kB / 1.025 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005986/0.9387, allocations: 353.2 kB / 1.025 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.9387, allocations: 0 / 1.025 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.9388, allocations: 8 kB / 1.025 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.021e-05/0.9388, allocations: 24.42 kB / 1.026 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004888/0.9393, allocations: 293.5 kB / 1.026 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002428/0.9417, allocations: 1.745 MB / 1.027 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005689/0.9423, allocations: 322.1 kB / 1.028 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001732/0.9425, allocations: 109.6 kB / 1.028 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001225/0.9426, allocations: 85.09 kB / 1.028 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.9427, allocations: 42.56 kB / 1.028 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.9427, allocations: 0 / 1.028 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.00265/0.9454, allocations: 0.9597 MB / 1.029 GB, free: 5.723 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.9454, allocations: 81.05 kB / 1.029 GB, free: 5.625 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00024/0.9457, allocations: 216.7 kB / 1.029 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.9457, allocations: 33.7 kB / 1.029 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.9459, allocations: 164.2 kB / 1.029 GB, free: 5.203 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.969e-05/0.946, allocations: 82.75 kB / 1.03 GB, free: 5.121 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.9461, allocations: 65.64 kB / 1.03 GB, free: 5.051 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001848/0.9463, allocations: 330.8 kB / 1.03 GB, free: 4.719 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000222/0.9465, allocations: 131.9 kB / 1.03 GB, free: 4.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002743/0.9468, allocations: 210.5 kB / 1.03 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005023/0.9473, allocations: 371 kB / 1.031 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.9473, allocations: 0 / 1.031 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009358/0.9483, allocations: 0.5083 MB / 1.031 GB, free: 3.434 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.9483, allocations: 15.97 kB / 1.031 GB, free: 3.418 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.9483, allocations: 0 / 1.031 GB, free: 3.418 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005487/0.9489, allocations: 147.3 kB / 1.031 GB, free: 3.262 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002525/0.9491, allocations: 55.91 kB / 1.031 GB, free: 3.207 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00356/0.9527, allocations: 3.973 MB / 1.035 GB, free: 14.91 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.9529, allocations: 15.98 kB / 1.035 GB, free: 14.9 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.953, allocations: 15.94 kB / 1.035 GB, free: 14.88 MB / 0.795 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.000251/0.9532, allocations: 169.8 kB / 1.035 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.733e-05/0.9533, allocations: 19.72 kB / 1.035 GB, free: 14.69 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009924/0.9543, allocations: 482.5 kB / 1.036 GB, free: 14.2 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.9544, allocations: 4 kB / 1.036 GB, free: 14.2 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.9544, allocations: 0 / 1.036 GB, free: 14.2 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.9544, allocations: 3.984 kB / 1.036 GB, free: 14.19 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00173/0.9561, allocations: 1.006 MB / 1.037 GB, free: 13.09 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.9561, allocations: 0 / 1.037 GB, free: 13.09 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.9563, allocations: 43.91 kB / 1.037 GB, free: 13.05 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004837/0.9568, allocations: 147.5 kB / 1.037 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.92e-05/0.9568, allocations: 11.94 kB / 1.037 GB, free: 12.88 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003348/0.9602, allocations: 3.938 MB / 1.041 GB, free: 8.625 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.9602, allocations: 0 / 1.041 GB, free: 8.625 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009678/0.9612, allocations: 0.6334 MB / 1.041 GB, free: 7.938 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001959/0.9614, allocations: 128.7 kB / 1.042 GB, free: 7.793 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.606e-05/0.9614, allocations: 11.98 kB / 1.042 GB, free: 7.781 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002473/0.9617, allocations: 15.98 kB / 1.042 GB, free: 7.766 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.658e-05/0.9618, allocations: 31.91 kB / 1.042 GB, free: 7.734 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.259e-05/0.9618, allocations: 12 kB / 1.042 GB, free: 7.723 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002029/0.962, allocations: 156.5 kB / 1.042 GB, free: 7.57 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.962, allocations: 0 / 1.042 GB, free: 7.57 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006129/0.9626, allocations: 91.92 kB / 1.042 GB, free: 7.48 MB / 0.795 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.00028/0.9629, allocations: 139.7 kB / 1.042 GB, free: 7.336 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001089/0.964, allocations: 0.5766 MB / 1.043 GB, free: 6.734 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.964, allocations: 0.625 kB / 1.043 GB, free: 6.734 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005696/0.9646, allocations: 401.2 kB / 1.043 GB, free: 6.316 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005501/0.9652, allocations: 43.86 kB / 1.043 GB, free: 6.273 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.9666, allocations: 0.7363 MB / 1.044 GB, free: 5.496 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004839/0.9671, allocations: 0.7831 MB / 1.045 GB, free: 4.688 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001987/0.9673, allocations: 54.25 kB / 1.045 GB, free: 4.633 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.506e-05/0.9674, allocations: 23.42 kB / 1.045 GB, free: 4.613 MB / 0.795 GB Notification: Performance of SimCode: time 7.22e-07/0.9674, allocations: 0 / 1.045 GB, free: 4.613 MB / 0.795 GB Notification: Performance of Templates: time 0.009799/0.9772, allocations: 4.024 MB / 1.049 GB, free: 0.6172 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches