Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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: translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_latest_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_latest_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.001297/0.001297, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001629/0.001629, allocations: 191.9 kB / 16.14 MB, free: 6.711 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.439/1.439, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.826/2.826, allocations: 461.8 MB / 0.7342 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002176/0.002176, allocations: 59.22 kB / 0.8984 GB, free: 37.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3564, allocations: 157.4 MB / 1.052 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.004849/0.3613, allocations: 3.262 MB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002435/0.3637, allocations: 1.371 MB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002036/0.364, allocations: 7.938 kB / 1.057 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.365, allocations: 327 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003562/0.3654, allocations: 135.4 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003614/0.3657, allocations: 135.7 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004119/0.3662, allocations: 462.7 kB / 1.058 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003172/0.3665, allocations: 163.8 kB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.3667, allocations: 119.5 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002868/0.367, allocations: 151.4 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.676e-05/0.367, allocations: 16 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003583/0.3674, allocations: 211.6 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.3675, allocations: 83.78 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.3676, allocations: 111.4 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004248/0.3681, allocations: 355.1 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3681, allocations: 0 / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.91e-07/0.3681, allocations: 4 kB / 1.059 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.3681, allocations: 0 / 1.059 GB, free: 1.953 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009307/0.3691, allocations: 0.538 MB / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.3691, allocations: 12.03 kB / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005819/0.3697, allocations: 84.56 kB / 1.059 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.37, allocations: 253.3 kB / 1.06 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.37, allocations: 16.75 kB / 1.06 GB, free: 0.9727 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.3701, allocations: 16.38 kB / 1.06 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004906/0.3706, allocations: 328.6 kB / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3706, allocations: 0 / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.3706, allocations: 8 kB / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.387e-05/0.3707, allocations: 16.44 kB / 1.06 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003623/0.371, allocations: 209.5 kB / 1.06 GB, free: 392 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.3726, allocations: 1.49 MB / 1.062 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004295/0.373, allocations: 211.6 kB / 1.062 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.327e-05/0.3731, allocations: 40.84 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.3731, allocations: 4 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.3732, allocations: 38.5 kB / 1.062 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.222e-06/0.3732, allocations: 0 / 1.062 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0005767/0.3738, allocations: 263.3 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.3738, allocations: 55.41 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.374, allocations: 207.7 kB / 1.062 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.374, allocations: 25.7 kB / 1.062 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.3741, allocations: 171.6 kB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.3742, allocations: 39.53 kB / 1.063 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.296e-05/0.3742, allocations: 37.72 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.3744, allocations: 326.8 kB / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.956e-05/0.3745, allocations: 43.97 kB / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.3746, allocations: 113.8 kB / 1.063 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.3748, allocations: 164.4 kB / 1.063 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.3749, allocations: 3.984 kB / 1.063 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003667/0.3752, allocations: 218.2 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3753, allocations: 4 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3753, allocations: 4 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001721/0.3754, allocations: 28.83 kB / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.3756, allocations: 43.86 kB / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009931/0.3766, allocations: 1.323 MB / 1.065 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.3768, allocations: 27.77 kB / 1.065 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.3768, allocations: 4 kB / 1.065 GB, free: 11.05 MB / 0.8262 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.0001384/0.3769, allocations: 146 kB / 1.065 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.075e-05/0.377, allocations: 19.75 kB / 1.065 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.147e-05/0.377, allocations: 21.39 kB / 1.065 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.377, allocations: 4 kB / 1.065 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.377, allocations: 0 / 1.065 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.377, allocations: 0 / 1.065 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005967/0.3776, allocations: 483.6 kB / 1.066 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3777, allocations: 8 kB / 1.066 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.821e-05/0.3777, allocations: 11.98 kB / 1.066 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.784e-05/0.3778, allocations: 28.78 kB / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.3778, allocations: 0 / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008929/0.3787, allocations: 1.315 MB / 1.067 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3788, allocations: 4.031 kB / 1.067 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.3791, allocations: 236.3 kB / 1.067 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.67e-05/0.3791, allocations: 120.7 kB / 1.067 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.3792, allocations: 0 / 1.067 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.3793, allocations: 7.984 kB / 1.067 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.699e-05/0.3794, allocations: 4 kB / 1.067 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.3794, allocations: 7.984 kB / 1.067 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001381/0.3795, allocations: 145.5 kB / 1.067 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3795, allocations: 0 / 1.067 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003435/0.3799, allocations: 55.84 kB / 1.067 GB, free: 8.227 MB / 0.8262 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.0001137/0.38, allocations: 110.3 kB / 1.068 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004279/0.3804, allocations: 222.6 kB / 1.068 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3804, allocations: 0 / 1.068 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.3807, allocations: 167.2 kB / 1.068 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.3811, allocations: 31.34 kB / 1.068 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006824/0.3818, allocations: 490.4 kB / 1.068 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.3821, allocations: 0.7557 MB / 1.069 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001083/0.3822, allocations: 29.53 kB / 1.069 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.656e-05/0.3822, allocations: 15.44 kB / 1.069 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.3822, allocations: 0 / 1.069 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of Templates: time 0.00531/0.3875, allocations: 1.838 MB / 1.071 GB, free: 4.527 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches