Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource",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.001407/0.001407, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001394/0.001394, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.372/1.372, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.345/2.345, allocations: 390.2 MB / 0.6643 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001438, allocations: 59.91 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6219/0.6233, allocations: 140.4 MB / 0.949 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.00455/0.6279, allocations: 3.254 MB / 0.9522 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001703/0.6296, allocations: 1.36 MB / 0.9536 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.6298, allocations: 8.219 kB / 0.9536 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007913/0.6306, allocations: 317.5 kB / 0.9539 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002415/0.6308, allocations: 145.9 kB / 0.954 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002513/0.6311, allocations: 127.9 kB / 0.9541 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003382/0.6314, allocations: 467.1 kB / 0.9546 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/0.6317, allocations: 174.2 kB / 0.9547 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001534/0.6319, allocations: 120.2 kB / 0.9549 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.6321, allocations: 158.7 kB / 0.955 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.6322, allocations: 14.5 kB / 0.955 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002786/0.6325, allocations: 209.8 kB / 0.9552 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.323e-05/0.6325, allocations: 81.16 kB / 0.9553 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.6327, allocations: 113.2 kB / 0.9554 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003051/0.633, allocations: 365 kB / 0.9557 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.633, allocations: 0 / 0.9557 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.81e-07/0.633, allocations: 0 / 0.9557 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.633, allocations: 0 / 0.9557 GB, free: 4.266 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006591/0.6337, allocations: 0.529 MB / 0.9563 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.6337, allocations: 14.09 kB / 0.9563 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.009e-05/0.6337, allocations: 61.66 kB / 0.9563 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005424/0.6343, allocations: 81.11 kB / 0.9564 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002192/0.6345, allocations: 248.5 kB / 0.9567 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.6345, allocations: 12.81 kB / 0.9567 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.304e-05/0.6346, allocations: 25.45 kB / 0.9567 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.635, allocations: 314.1 kB / 0.957 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.635, allocations: 9.219 kB / 0.957 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.517e-05/0.6351, allocations: 10.41 kB / 0.957 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.214e-05/0.6351, allocations: 17.45 kB / 0.957 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003253/0.6354, allocations: 211.1 kB / 0.9572 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.6366, allocations: 1.505 MB / 0.9587 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.637, allocations: 202.8 kB / 0.9589 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.465e-05/0.6371, allocations: 45.47 kB / 0.9589 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/0.6371, allocations: 1.375 kB / 0.9589 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.6371, allocations: 35.94 kB / 0.959 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.6371, allocations: 0 / 0.959 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004881/0.6376, allocations: 264 kB / 0.9592 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.078e-05/0.6376, allocations: 56.7 kB / 0.9593 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.6378, allocations: 208.8 kB / 0.9595 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.6378, allocations: 26.86 kB / 0.9595 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.735e-05/0.6379, allocations: 184.7 kB / 0.9597 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.6379, allocations: 24 kB / 0.9597 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.214e-05/0.638, allocations: 37.95 kB / 0.9597 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.066e-05/0.638, allocations: 327.4 kB / 0.96 GB, free: 352 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.147e-05/0.6381, allocations: 43.31 kB / 0.9601 GB, free: 332 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.6382, allocations: 116.1 kB / 0.9602 GB, free: 216 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001944/0.6384, allocations: 165 kB / 0.9604 GB, free: 76 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.6384, allocations: 1.094 kB / 0.9604 GB, free: 76 kB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003652/0.6388, allocations: 215.4 kB / 0.9606 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.6388, allocations: 6.156 kB / 0.9606 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.6388, allocations: 2.812 kB / 0.9606 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001524/0.639, allocations: 29.91 kB / 0.9606 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.6391, allocations: 37.39 kB / 0.9606 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009237/0.6401, allocations: 1.324 MB / 0.9619 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.6402, allocations: 21.94 kB / 0.9619 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.6402, allocations: 10.27 kB / 0.962 GB, free: 14.54 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (18): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001232/0.6404, allocations: 154.7 kB / 0.9621 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.6404, allocations: 20.03 kB / 0.9621 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.622e-05/0.6405, allocations: 21.98 kB / 0.9621 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.6405, allocations: 5.062 kB / 0.9622 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.6405, allocations: 1.062 kB / 0.9622 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.6405, allocations: 0 / 0.9622 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005684/0.6411, allocations: 484.9 kB / 0.9626 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.6411, allocations: 1.125 kB / 0.9626 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.584e-05/0.6411, allocations: 17.11 kB / 0.9626 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.033e-05/0.6412, allocations: 23.19 kB / 0.9627 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.6412, allocations: 1.219 kB / 0.9627 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008614/0.6421, allocations: 1.321 MB / 0.9639 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.6421, allocations: 1.125 kB / 0.9639 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.6424, allocations: 228.8 kB / 0.9642 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-05/0.6425, allocations: 104.1 kB / 0.9643 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.6425, allocations: 1.094 kB / 0.9643 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.6427, allocations: 16.58 kB / 0.9643 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.566e-05/0.6427, allocations: 3.438 kB / 0.9643 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.6427, allocations: 2.25 kB / 0.9643 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001238/0.6429, allocations: 149.6 kB / 0.9644 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6429, allocations: 0 / 0.9644 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003148/0.6432, allocations: 63.22 kB / 0.9645 GB, free: 12.1 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005265/0.6437, allocations: 0.7705 MB / 0.9652 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003817/0.6441, allocations: 235.2 kB / 0.9655 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.6441, allocations: 1.469 kB / 0.9655 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001981/0.6443, allocations: 156.1 kB / 0.9656 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.6447, allocations: 40.84 kB / 0.9657 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.647, allocations: 2.229 MB / 0.9678 GB, free: 9.156 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.6473, allocations: 0.7564 MB / 0.9686 GB, free: 8.422 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001084/0.6474, allocations: 30.8 kB / 0.9686 GB, free: 8.406 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.393e-05/0.6475, allocations: 59.62 kB / 0.9687 GB, free: 8.355 MB / 0.7325 GB Notification: Performance of SimCode: time 1.493e-06/0.6475, allocations: 0 / 0.9687 GB, free: 8.355 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3325/0.98, allocations: 3.741 MB / 0.9723 GB, free: 6.551 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/0.9802, allocations: 221.3 kB / 0.9725 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.977/2.958, allocations: 1.125 kB / 0.9725 GB, free: 6.301 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sources_Examples_VoltageSource.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches