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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00089/0.00089, allocations: 97.8 kB / 15.36 MB, free: 0.7344 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.005371/0.005371, allocations: 170.2 kB / 16.27 MB, free: 6.652 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.269/1.269, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.395/2.395, allocations: 437.8 MB / 0.7121 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000315/0.000315, allocations: 8 kB / 0.8729 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6168/0.6171, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.003567/0.6207, allocations: 2.762 MB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002786/0.6235, allocations: 1.89 MB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.6237, allocations: 4 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.6238, allocations: 35.72 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000455/0.6243, allocations: 183.3 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004816/0.6248, allocations: 207.5 kB / 1.028 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004226/0.6252, allocations: 458.7 kB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005925/0.6258, allocations: 336.2 kB / 1.029 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.626, allocations: 107.5 kB / 1.029 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002613/0.6262, allocations: 139.5 kB / 1.029 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.335e-05/0.6263, allocations: 8 kB / 1.029 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006119/0.6269, allocations: 483 kB / 1.03 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.233e-05/0.627, allocations: 79.72 kB / 1.03 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.6271, allocations: 129.2 kB / 1.03 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005214/0.6276, allocations: 0.4945 MB / 1.03 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.6276, allocations: 0 / 1.03 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.737e-06/0.6277, allocations: 3.984 kB / 1.03 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.6277, allocations: 0 / 1.03 GB, free: 8.543 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.0007584/0.6284, allocations: 0.4991 MB / 1.031 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.6285, allocations: 16.03 kB / 1.031 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.846e-05/0.6285, allocations: 58.72 kB / 1.031 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007892/0.6293, allocations: 112.5 kB / 1.031 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.6296, allocations: 266.1 kB / 1.031 GB, free: 7.508 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.6297, allocations: 12.81 kB / 1.031 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.6297, allocations: 28.11 kB / 1.031 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005038/0.6302, allocations: 353.1 kB / 1.032 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.6302, allocations: 0 / 1.032 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.6303, allocations: 11.98 kB / 1.032 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.253e-05/0.6303, allocations: 24.42 kB / 1.032 GB, free: 7.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004354/0.6308, allocations: 293.5 kB / 1.032 GB, free: 6.781 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.6327, allocations: 1.745 MB / 1.034 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004363/0.6331, allocations: 322.1 kB / 1.034 GB, free: 4.516 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.6333, allocations: 105.6 kB / 1.034 GB, free: 4.406 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.69e-05/0.6334, allocations: 93.09 kB / 1.034 GB, free: 4.297 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.6334, allocations: 34.56 kB / 1.034 GB, free: 4.254 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.293e-06/0.6334, allocations: 4 kB / 1.034 GB, free: 4.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.002318/0.6358, allocations: 0.98 MB / 1.035 GB, free: 3.234 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.6358, allocations: 81.11 kB / 1.035 GB, free: 3.137 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.636, allocations: 215.6 kB / 1.035 GB, free: 2.914 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.636, allocations: 29.7 kB / 1.035 GB, free: 2.879 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.056e-05/0.6361, allocations: 168.2 kB / 1.036 GB, free: 2.711 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.6362, allocations: 82.83 kB / 1.036 GB, free: 2.629 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.597e-05/0.6362, allocations: 33.7 kB / 1.036 GB, free: 2.59 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.6364, allocations: 326.8 kB / 1.036 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.6365, allocations: 131.9 kB / 1.036 GB, free: 2.133 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002193/0.6368, allocations: 210.2 kB / 1.036 GB, free: 1.895 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004365/0.6372, allocations: 368.4 kB / 1.037 GB, free: 1.504 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.6372, allocations: 4 kB / 1.037 GB, free: 1.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007813/0.638, allocations: 0.5005 MB / 1.037 GB, free: 0.9805 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.638, allocations: 8.062 kB / 1.037 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.638, allocations: 4.094 kB / 1.037 GB, free: 0.9688 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004762/0.6385, allocations: 155.2 kB / 1.037 GB, free: 0.8047 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.6388, allocations: 55.91 kB / 1.037 GB, free: 0.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002598/0.6414, allocations: 3.977 MB / 1.041 GB, free: 12.45 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.6416, allocations: 15.98 kB / 1.041 GB, free: 12.44 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.6416, allocations: 12 kB / 1.041 GB, free: 12.43 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.0001612/0.6418, allocations: 173.4 kB / 1.041 GB, free: 12.25 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.221e-05/0.6418, allocations: 23.66 kB / 1.041 GB, free: 12.23 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007894/0.6426, allocations: 481.4 kB / 1.042 GB, free: 11.74 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.6426, allocations: 4 kB / 1.042 GB, free: 11.74 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.6426, allocations: 4 kB / 1.042 GB, free: 11.73 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.6427, allocations: 3.938 kB / 1.042 GB, free: 11.73 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/0.644, allocations: 1.002 MB / 1.043 GB, free: 10.64 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.644, allocations: 0 / 1.043 GB, free: 10.64 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.6442, allocations: 39.92 kB / 1.043 GB, free: 10.6 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003991/0.6446, allocations: 151.5 kB / 1.043 GB, free: 10.44 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.6446, allocations: 8 kB / 1.043 GB, free: 10.43 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002411/0.647, allocations: 3.946 MB / 1.047 GB, free: 6.164 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.647, allocations: 8.016 kB / 1.047 GB, free: 6.156 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007068/0.6478, allocations: 0.6334 MB / 1.048 GB, free: 5.469 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.6479, allocations: 124.9 kB / 1.048 GB, free: 5.328 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.6479, allocations: 8 kB / 1.048 GB, free: 5.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.6481, allocations: 19.98 kB / 1.048 GB, free: 5.301 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.6482, allocations: 19.97 kB / 1.048 GB, free: 5.281 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.6482, allocations: 15.94 kB / 1.048 GB, free: 5.266 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001271/0.6484, allocations: 160.1 kB / 1.048 GB, free: 5.109 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6484, allocations: 4 kB / 1.048 GB, free: 5.105 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004677/0.6488, allocations: 84 kB / 1.048 GB, free: 5.023 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.001038/0.6499, allocations: 1.197 MB / 1.049 GB, free: 3.766 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008351/0.6507, allocations: 0.5885 MB / 1.05 GB, free: 3.152 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.6507, allocations: 4 kB / 1.05 GB, free: 3.148 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004622/0.6512, allocations: 395.2 kB / 1.05 GB, free: 2.738 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005222/0.6517, allocations: 43.91 kB / 1.05 GB, free: 2.695 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0037/0.6554, allocations: 3.433 MB / 1.053 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.6558, allocations: 0.7907 MB / 1.054 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001642/0.6559, allocations: 54.25 kB / 1.054 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.6561, allocations: 79.34 kB / 1.054 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of SimCode: time 2.1e-07/0.6561, allocations: 0 / 1.054 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01758/0.6737, allocations: 6.228 MB / 1.06 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.6739, allocations: 230.3 kB / 1.061 GB, free: 7.816 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.766/2.44, allocations: 0 / 1.061 GB, free: 7.816 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