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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_9_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.001572/0.001572, 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.001655/0.001655, allocations: 192.8 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.37/1.37, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.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.571/2.571, allocations: 390.3 MB / 0.6644 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 67.89 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7406/0.7422, allocations: 140.4 MB / 0.9492 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004262/0.7465, allocations: 3.115 MB / 0.9523 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002471/0.749, allocations: 1.901 MB / 0.9541 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.7492, allocations: 2.625 kB / 0.9541 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0008707/0.7501, allocations: 262.4 kB / 0.9544 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004087/0.7505, allocations: 181.3 kB / 0.9546 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005776/0.7511, allocations: 220.8 kB / 0.9548 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003192/0.7514, allocations: 325.7 kB / 0.9551 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003535/0.7518, allocations: 205.6 kB / 0.9553 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.7519, allocations: 132.8 kB / 0.9554 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.7522, allocations: 158.8 kB / 0.9556 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.7522, allocations: 20.62 kB / 0.9556 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005304/0.7528, allocations: 397.9 kB / 0.956 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.094e-05/0.7529, allocations: 88.47 kB / 0.956 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001041/0.753, allocations: 119.5 kB / 0.9561 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005596/0.7535, allocations: 0.5043 MB / 0.9566 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.7536, allocations: 5.188 kB / 0.9566 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.312e-06/0.7536, allocations: 0 / 0.9566 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.7536, allocations: 0 / 0.9566 GB, free: 3.598 MB / 0.7169 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.0007867/0.7544, allocations: 0.5614 MB / 0.9572 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.7544, allocations: 8.469 kB / 0.9572 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.201e-05/0.7545, allocations: 55.64 kB / 0.9573 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007774/0.7553, allocations: 112.4 kB / 0.9574 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.7555, allocations: 269.1 kB / 0.9576 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.7556, allocations: 18.31 kB / 0.9576 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.724e-05/0.7556, allocations: 19.42 kB / 0.9577 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004874/0.7561, allocations: 351.5 kB / 0.958 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.7561, allocations: 0 / 0.958 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.7562, allocations: 14.73 kB / 0.958 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.141e-05/0.7562, allocations: 26.3 kB / 0.958 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004102/0.7566, allocations: 289.3 kB / 0.9583 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.7584, allocations: 1.742 MB / 0.96 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.7589, allocations: 319.1 kB / 0.9603 GB, free: 432 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001378/0.759, allocations: 104.4 kB / 0.9604 GB, free: 368 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.277e-05/0.7591, allocations: 96.19 kB / 0.9605 GB, free: 260 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.069e-05/0.7592, allocations: 35.81 kB / 0.9605 GB, free: 216 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.402e-06/0.7592, allocations: 0 / 0.9605 GB, free: 216 kB / 0.7169 GB Notification: Performance of matching and sorting (n=23): time 0.002659/0.7618, allocations: 0.9559 MB / 0.9615 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/0.7619, allocations: 91.22 kB / 0.9616 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.7622, allocations: 219.1 kB / 0.9618 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.837e-05/0.7622, allocations: 27.08 kB / 0.9618 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.7624, allocations: 164.8 kB / 0.9619 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.645e-05/0.7624, allocations: 85.58 kB / 0.962 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.7626, allocations: 66.2 kB / 0.9621 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.7627, allocations: 331.8 kB / 0.9624 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000213/0.7629, allocations: 131.2 kB / 0.9625 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.7632, allocations: 204.6 kB / 0.9627 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005108/0.7638, allocations: 376.3 kB / 0.9631 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.7638, allocations: 1.625 kB / 0.9631 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009542/0.7647, allocations: 0.5145 MB / 0.9636 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.7648, allocations: 6.344 kB / 0.9636 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.7648, allocations: 2.188 kB / 0.9636 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005976/0.7654, allocations: 154 kB / 0.9637 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002691/0.7657, allocations: 57.06 kB / 0.9638 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003347/0.769, allocations: 4.188 MB / 0.9679 GB, free: 9.668 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.7694, allocations: 17.27 kB / 0.9679 GB, free: 9.66 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.7694, allocations: 13.88 kB / 0.9679 GB, free: 9.656 MB / 0.7325 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.000212/0.7696, allocations: 167.7 kB / 0.9681 GB, free: 9.504 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.716e-05/0.7697, allocations: 26.72 kB / 0.9681 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009479/0.7707, allocations: 477 kB / 0.9686 GB, free: 9.191 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.7707, allocations: 3.188 kB / 0.9686 GB, free: 9.191 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.7707, allocations: 4.953 kB / 0.9686 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.7707, allocations: 1.062 kB / 0.9686 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/0.7725, allocations: 1.007 MB / 0.9696 GB, free: 8.402 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.7725, allocations: 2.25 kB / 0.9696 GB, free: 8.402 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.7727, allocations: 37.56 kB / 0.9696 GB, free: 8.391 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004685/0.7732, allocations: 141.5 kB / 0.9697 GB, free: 8.305 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.7732, allocations: 11.97 kB / 0.9697 GB, free: 8.297 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00341/0.7766, allocations: 4.173 MB / 0.9738 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.7767, allocations: 2.625 kB / 0.9738 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009709/0.7777, allocations: 0.6281 MB / 0.9744 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000189/0.7779, allocations: 126.8 kB / 0.9746 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.201e-05/0.7779, allocations: 8.344 kB / 0.9746 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.7782, allocations: 21.25 kB / 0.9746 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.495e-05/0.7783, allocations: 27.08 kB / 0.9746 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.172e-05/0.7783, allocations: 7.969 kB / 0.9746 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001871/0.7785, allocations: 158 kB / 0.9748 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.1e-07/0.7785, allocations: 0 / 0.9748 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006448/0.7791, allocations: 91.47 kB / 0.9749 GB, free: 3.348 MB / 0.7325 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.001313/0.7805, allocations: 1.21 MB / 0.976 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00108/0.7816, allocations: 0.5956 MB / 0.9766 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.7816, allocations: 0 / 0.9766 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005596/0.7821, allocations: 404 kB / 0.977 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000551/0.7827, allocations: 39.92 kB / 0.977 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00542/0.7881, allocations: 3.43 MB / 0.9804 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004275/0.7886, allocations: 0.7869 MB / 0.9812 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002051/0.7888, allocations: 54.78 kB / 0.9812 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.789, allocations: 70.91 kB / 0.9813 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of SimCode: time 7.62e-07/0.789, allocations: 0 / 0.9813 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02621/0.8152, allocations: 6.551 MB / 0.9877 GB, free: 9.094 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002094/0.8154, allocations: 236.7 kB / 0.9879 GB, free: 8.836 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.781, allocations: 3.938 kB / 0.9879 GB, free: 8.832 MB / 0.7481 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > 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/jenkins1/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