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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001164/0.001164, allocations: 189.4 kB / 16.25 MB, free: 6.637 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.258/1.258, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.46/2.46, allocations: 437 MB / 0.7101 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 59.91 kB / 0.8689 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5084/0.5097, allocations: 151.6 MB / 1.017 GB, free: 2.742 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004211/0.514, allocations: 3.128 MB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002503/0.5165, allocations: 1.898 MB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.5167, allocations: 7.938 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0007988/0.5175, allocations: 260.4 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000428/0.5179, allocations: 187.3 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005537/0.5185, allocations: 215.5 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.5188, allocations: 330.9 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003505/0.5192, allocations: 199.2 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.5194, allocations: 135.5 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.5196, allocations: 151.5 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.458e-05/0.5197, allocations: 24 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005309/0.5202, allocations: 403.2 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.396e-05/0.5203, allocations: 83.8 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.5204, allocations: 127.3 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00059/0.521, allocations: 0.4947 MB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.521, allocations: 0 / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.002e-06/0.5211, allocations: 0 / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.286e-06/0.5211, allocations: 0 / 1.024 GB, free: 11.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.000797/0.5219, allocations: 0.5614 MB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.5219, allocations: 12.02 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.877e-05/0.522, allocations: 62.72 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007944/0.5228, allocations: 112.5 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.5231, allocations: 263.7 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.5231, allocations: 16.8 kB / 1.025 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.5231, allocations: 16.38 kB / 1.025 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004887/0.5236, allocations: 361.2 kB / 1.026 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.5236, allocations: 0 / 1.026 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.594e-05/0.5237, allocations: 4 kB / 1.026 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.156e-05/0.5237, allocations: 28.42 kB / 1.026 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004095/0.5241, allocations: 297.4 kB / 1.026 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.526, allocations: 1.737 MB / 1.028 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004312/0.5264, allocations: 326.1 kB / 1.028 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.5266, allocations: 105.6 kB / 1.028 GB, free: 6.914 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001021/0.5267, allocations: 93.08 kB / 1.028 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.5267, allocations: 34.56 kB / 1.028 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.323e-06/0.5267, allocations: 0 / 1.028 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.002219/0.5289, allocations: 0.9564 MB / 1.029 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.529, allocations: 85.05 kB / 1.029 GB, free: 5.668 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.5292, allocations: 220.7 kB / 1.029 GB, free: 5.445 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.5292, allocations: 25.7 kB / 1.029 GB, free: 5.414 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.487e-05/0.5293, allocations: 168.2 kB / 1.03 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.081e-05/0.5294, allocations: 86.83 kB / 1.03 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.276e-05/0.5295, allocations: 61.61 kB / 1.03 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.94e-05/0.5296, allocations: 330.8 kB / 1.03 GB, free: 4.762 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.5297, allocations: 135.9 kB / 1.03 GB, free: 4.629 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.53, allocations: 214.5 kB / 1.03 GB, free: 4.387 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004106/0.5304, allocations: 363.4 kB / 1.031 GB, free: 4 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.5304, allocations: 4 kB / 1.031 GB, free: 3.996 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007638/0.5312, allocations: 0.5114 MB / 1.031 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.5312, allocations: 5.875 kB / 1.031 GB, free: 3.465 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.5312, allocations: 4 kB / 1.031 GB, free: 3.461 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004639/0.5317, allocations: 147.5 kB / 1.031 GB, free: 3.305 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002271/0.5319, allocations: 59.91 kB / 1.031 GB, free: 3.246 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002551/0.5345, allocations: 4.197 MB / 1.036 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000183/0.5347, allocations: 24.02 kB / 1.036 GB, free: 14.69 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.5347, allocations: 12 kB / 1.036 GB, free: 14.68 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.0001461/0.5348, allocations: 173 kB / 1.036 GB, free: 14.5 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.29e-05/0.5349, allocations: 19.72 kB / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007444/0.5357, allocations: 478.5 kB / 1.036 GB, free: 14 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.5357, allocations: 4 kB / 1.036 GB, free: 14 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.5357, allocations: 3.984 kB / 1.036 GB, free: 13.99 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.5357, allocations: 0 / 1.036 GB, free: 13.99 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.537, allocations: 1.004 MB / 1.037 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.5371, allocations: 4.25 kB / 1.037 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.5372, allocations: 36.06 kB / 1.037 GB, free: 12.86 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000352/0.5375, allocations: 155.2 kB / 1.037 GB, free: 12.69 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.5376, allocations: 7.984 kB / 1.037 GB, free: 12.68 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/0.5399, allocations: 4.171 MB / 1.042 GB, free: 8.18 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.54, allocations: 8.094 kB / 1.042 GB, free: 8.172 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007033/0.5407, allocations: 0.6232 MB / 1.042 GB, free: 7.496 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.5408, allocations: 124.8 kB / 1.042 GB, free: 7.355 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.39e-05/0.5408, allocations: 4 kB / 1.042 GB, free: 7.352 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/0.5411, allocations: 23.97 kB / 1.042 GB, free: 7.328 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.5411, allocations: 27.92 kB / 1.042 GB, free: 7.301 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.5412, allocations: 16 kB / 1.042 GB, free: 7.285 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001281/0.5413, allocations: 156.5 kB / 1.042 GB, free: 7.133 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5413, allocations: 0 / 1.042 GB, free: 7.133 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004784/0.5418, allocations: 88 kB / 1.043 GB, free: 7.047 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.001054/0.5428, allocations: 1.201 MB / 1.044 GB, free: 5.781 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009001/0.5437, allocations: 0.5983 MB / 1.044 GB, free: 5.16 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.5438, allocations: 0 / 1.044 GB, free: 5.16 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004886/0.5443, allocations: 402.3 kB / 1.045 GB, free: 4.742 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005216/0.5448, allocations: 43.41 kB / 1.045 GB, free: 4.703 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004049/0.5489, allocations: 3.419 MB / 1.048 GB, free: 1.07 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.5492, allocations: 0.7908 MB / 1.049 GB, free: 260 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001719/0.5494, allocations: 54.25 kB / 1.049 GB, free: 204 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.5495, allocations: 71.41 kB / 1.049 GB, free: 136 kB / 0.795 GB Notification: Performance of SimCode: time 4.1e-07/0.5495, allocations: 0 / 1.049 GB, free: 136 kB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02159/0.5711, allocations: 6.558 MB / 1.055 GB, free: 9.762 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002148/0.5714, allocations: 238.7 kB / 1.056 GB, free: 9.504 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/2.315, allocations: 2.25 kB / 1.056 GB, free: 9.504 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > 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/jenkins1/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