Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_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.001798/0.001803, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002227/0.002227, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.815/1.815, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.654/3.654, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002296/0.002296, allocations: 62.3 kB / 0.8987 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3382, allocations: 157.4 MB / 1.052 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.005154/0.3434, allocations: 3.126 MB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003393/0.3468, allocations: 1.893 MB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.3471, allocations: 11.94 kB / 1.057 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.3482, allocations: 275 kB / 1.058 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000604/0.3488, allocations: 171.3 kB / 1.058 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007163/0.3495, allocations: 227.5 kB / 1.058 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004742/0.35, allocations: 326.9 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005096/0.3505, allocations: 201.2 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002337/0.3508, allocations: 139.5 kB / 1.059 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003433/0.3511, allocations: 151.5 kB / 1.059 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.264e-05/0.3512, allocations: 20 kB / 1.059 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006627/0.3519, allocations: 399.2 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.352, allocations: 91.72 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.3521, allocations: 119.4 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007648/0.3529, allocations: 0.4986 MB / 1.06 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3529, allocations: 0 / 1.06 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3529, allocations: 0 / 1.06 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.096e-05/0.3529, allocations: 4 kB / 1.06 GB, free: 1.023 MB / 0.8106 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.001097/0.354, allocations: 0.5575 MB / 1.06 GB, free: 428 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.544e-05/0.3541, allocations: 12.62 kB / 1.06 GB, free: 416 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.807e-05/0.3542, allocations: 62.72 kB / 1.06 GB, free: 344 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008673/0.3551, allocations: 108.5 kB / 1.061 GB, free: 236 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003908/0.3555, allocations: 256 kB / 1.061 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.3555, allocations: 12.81 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.208e-05/0.3556, allocations: 20.38 kB / 1.061 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005868/0.3562, allocations: 361.2 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3562, allocations: 3.984 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/0.3562, allocations: 4 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.423e-05/0.3563, allocations: 28.42 kB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004806/0.3568, allocations: 293.5 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.3591, allocations: 1.741 MB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005229/0.3597, allocations: 318.1 kB / 1.063 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.3598, allocations: 109.9 kB / 1.064 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001248/0.36, allocations: 89.19 kB / 1.064 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.36, allocations: 42.44 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 2.374e-06/0.36, allocations: 3.938 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.002681/0.3627, allocations: 0.9596 MB / 1.065 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.3628, allocations: 85.05 kB / 1.065 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/0.363, allocations: 215.7 kB / 1.065 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.363, allocations: 29.7 kB / 1.065 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.3632, allocations: 172.1 kB / 1.065 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.198e-05/0.3632, allocations: 78.84 kB / 1.065 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.3634, allocations: 61.64 kB / 1.065 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3635, allocations: 334.8 kB / 1.066 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.3637, allocations: 135.9 kB / 1.066 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003423/0.3641, allocations: 217.7 kB / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006385/0.3647, allocations: 362.3 kB / 1.066 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.3648, allocations: 4 kB / 1.066 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001068/0.3658, allocations: 0.5096 MB / 1.067 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3659, allocations: 8 kB / 1.067 GB, free: 9.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.3659, allocations: 4 kB / 1.067 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005699/0.3665, allocations: 143.3 kB / 1.067 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.3667, allocations: 63.91 kB / 1.067 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003372/0.3701, allocations: 4.186 MB / 1.071 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.3704, allocations: 19.98 kB / 1.071 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.3704, allocations: 12 kB / 1.071 GB, free: 4.605 MB / 0.8262 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.0001995/0.3706, allocations: 169.7 kB / 1.071 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.958e-05/0.3707, allocations: 23.78 kB / 1.071 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009202/0.3716, allocations: 476.6 kB / 1.072 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3717, allocations: 4 kB / 1.072 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.3717, allocations: 4 kB / 1.072 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3717, allocations: 3.984 kB / 1.072 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001627/0.3733, allocations: 1.008 MB / 1.073 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3733, allocations: 0 / 1.073 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.3735, allocations: 43.89 kB / 1.073 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004443/0.374, allocations: 139.6 kB / 1.073 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.374, allocations: 11.98 kB / 1.073 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00307/0.3771, allocations: 4.166 MB / 1.077 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3771, allocations: 0 / 1.077 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008625/0.378, allocations: 0.6395 MB / 1.078 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/0.3781, allocations: 124.9 kB / 1.078 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.408e-05/0.3782, allocations: 15.98 kB / 1.078 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000257/0.3785, allocations: 23.91 kB / 1.078 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.441e-05/0.3785, allocations: 19.98 kB / 1.078 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.162e-05/0.3786, allocations: 12 kB / 1.078 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000177/0.3788, allocations: 161.5 kB / 1.078 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3788, allocations: 0 / 1.078 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005888/0.3794, allocations: 84 kB / 1.078 GB, free: 12.97 MB / 0.8419 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.001354/0.3807, allocations: 1.207 MB / 1.079 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001106/0.3818, allocations: 0.5988 MB / 1.08 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.3819, allocations: 0 / 1.08 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006027/0.3825, allocations: 405.1 kB / 1.08 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005716/0.3831, allocations: 40.41 kB / 1.08 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004702/0.3878, allocations: 3.427 MB / 1.084 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.3882, allocations: 0.7792 MB / 1.084 GB, free: 6.16 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000206/0.3884, allocations: 62.23 kB / 1.084 GB, free: 6.102 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.3885, allocations: 71.41 kB / 1.084 GB, free: 6.031 MB / 0.8419 GB Notification: Performance of SimCode: time 7.91e-07/0.3886, allocations: 0 / 1.084 GB, free: 6.031 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4308/0.8194, allocations: 6.549 MB / 1.091 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003122/0.8197, allocations: 246.7 kB / 1.091 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.823/3.643, allocations: 2.5 kB / 1.091 GB, free: 15.41 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches