Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource") translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00586/0.00586, allocations: 96.3 kB / 15.73 MB, free: 6.062 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.001315/0.001315, allocations: 198.9 kB / 16.68 MB, free: 5.98 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.767/2.767, allocations: 469.8 MB / 0.7425 GB, free: 7.359 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 64.12 kB / 1.065 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3438, allocations: 159.1 MB / 1.221 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.004914/0.3487, allocations: 3.24 MB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002351/0.351, allocations: 1.371 MB / 1.225 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.3512, allocations: 11.94 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.3523, allocations: 330.4 kB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003538/0.3526, allocations: 147.2 kB / 1.226 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003824/0.353, allocations: 155.6 kB / 1.226 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003784/0.3534, allocations: 330.9 kB / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000405/0.3538, allocations: 195.8 kB / 1.226 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.354, allocations: 147.5 kB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002825/0.3543, allocations: 151.5 kB / 1.226 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.479e-05/0.3543, allocations: 20 kB / 1.227 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002932/0.3546, allocations: 167.6 kB / 1.227 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.88e-05/0.3547, allocations: 83.73 kB / 1.227 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.3548, allocations: 123.4 kB / 1.227 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004415/0.3552, allocations: 354.6 kB / 1.227 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.3552, allocations: 0 / 1.227 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.012e-06/0.3552, allocations: 0 / 1.227 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.3553, allocations: 4 kB / 1.227 GB, free: 7.059 MB / 0.9825 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.0008839/0.3561, allocations: 0.5468 MB / 1.228 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3562, allocations: 12.02 kB / 1.228 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005821/0.3568, allocations: 76.69 kB / 1.228 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003247/0.3571, allocations: 269.6 kB / 1.228 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.3571, allocations: 16.81 kB / 1.228 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.14e-05/0.3571, allocations: 16.38 kB / 1.228 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004788/0.3576, allocations: 312.6 kB / 1.228 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3576, allocations: 7.938 kB / 1.228 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.72e-05/0.3576, allocations: 8 kB / 1.228 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.417e-05/0.3577, allocations: 24.42 kB / 1.228 GB, free: 5.672 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003532/0.358, allocations: 209.6 kB / 1.229 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.3596, allocations: 1.49 MB / 1.23 GB, free: 3.812 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004103/0.36, allocations: 207.6 kB / 1.23 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.93e-05/0.3601, allocations: 44.83 kB / 1.23 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.3601, allocations: 0 / 1.23 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.3601, allocations: 30.56 kB / 1.23 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 9.31e-07/0.3601, allocations: 0 / 1.23 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0005579/0.3607, allocations: 263.4 kB / 1.231 GB, free: 3.211 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.3607, allocations: 55.41 kB / 1.231 GB, free: 3.145 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.3609, allocations: 199.8 kB / 1.231 GB, free: 2.938 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.3609, allocations: 29.7 kB / 1.231 GB, free: 2.902 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.361, allocations: 180 kB / 1.231 GB, free: 2.723 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.705e-05/0.3611, allocations: 35.72 kB / 1.231 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.095e-05/0.3611, allocations: 41.66 kB / 1.231 GB, free: 2.641 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.3612, allocations: 330.8 kB / 1.231 GB, free: 2.309 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.704e-05/0.3613, allocations: 43.97 kB / 1.231 GB, free: 2.266 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.3615, allocations: 104.6 kB / 1.232 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.3617, allocations: 176.3 kB / 1.232 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.3617, allocations: 4 kB / 1.232 GB, free: 1.926 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003537/0.3621, allocations: 210.1 kB / 1.232 GB, free: 1.711 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.3621, allocations: 8.281 kB / 1.232 GB, free: 1.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.3621, allocations: 4 kB / 1.232 GB, free: 1.699 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000177/0.3623, allocations: 28.84 kB / 1.232 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.3624, allocations: 31.92 kB / 1.232 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.3635, allocations: 1.429 MB / 1.233 GB, free: 72 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.3636, allocations: 27.94 kB / 1.233 GB, free: 44 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.3637, allocations: 4 kB / 1.233 GB, free: 40 kB / 0.9825 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.0001654/0.3638, allocations: 153.8 kB / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.175e-05/0.3639, allocations: 19.86 kB / 1.234 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.674e-05/0.3639, allocations: 21.39 kB / 1.234 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3639, allocations: 4 kB / 1.234 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3639, allocations: 0 / 1.234 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3639, allocations: 0 / 1.234 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006079/0.3645, allocations: 483.2 kB / 1.234 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3645, allocations: 4 kB / 1.234 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.829e-05/0.3646, allocations: 15.98 kB / 1.234 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.387e-05/0.3647, allocations: 24.78 kB / 1.234 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.3647, allocations: 4 kB / 1.234 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.3657, allocations: 1.421 MB / 1.236 GB, free: 13.69 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3657, allocations: 0 / 1.236 GB, free: 13.69 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002907/0.366, allocations: 240.3 kB / 1.236 GB, free: 13.44 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.91e-05/0.3661, allocations: 101 kB / 1.236 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.3661, allocations: 0 / 1.236 GB, free: 13.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.3663, allocations: 8.094 kB / 1.236 GB, free: 13.31 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.3663, allocations: 11.92 kB / 1.236 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.3663, allocations: 4 kB / 1.236 GB, free: 13.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001326/0.3664, allocations: 149.5 kB / 1.236 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.3664, allocations: 4 kB / 1.236 GB, free: 13.15 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003455/0.3668, allocations: 59.83 kB / 1.236 GB, free: 13.09 MB / 0.9981 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.0001106/0.3669, allocations: 104.3 kB / 1.236 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004591/0.3674, allocations: 223.1 kB / 1.236 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3674, allocations: 64 / 1.236 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.3676, allocations: 167.1 kB / 1.237 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003823/0.368, allocations: 46.11 kB / 1.237 GB, free: 12.53 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006926/0.3687, allocations: 405.6 kB / 1.237 GB, free: 12.11 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.369, allocations: 0.7554 MB / 1.238 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001085/0.3691, allocations: 29.52 kB / 1.238 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.973e-05/0.3691, allocations: 15.44 kB / 1.238 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of SimCode: time 2.8e-07/0.3691, allocations: 0 / 1.238 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of Templates: time 0.005794/0.3749, allocations: 1.965 MB / 1.24 GB, free: 9.336 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches