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.001124/0.001124, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007757/0.007757, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.446/1.446, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.709/2.709, allocations: 462.7 MB / 0.7364 GB, free: 292 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003854, allocations: 10.41 kB / 0.9028 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3659, allocations: 159.6 MB / 1.059 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.003929/0.3698, allocations: 2.904 MB / 1.061 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002122/0.372, allocations: 1.344 MB / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001253/0.3721, allocations: 0 / 1.063 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.3723, allocations: 43.64 kB / 1.063 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003979/0.3727, allocations: 143.3 kB / 1.063 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003397/0.3731, allocations: 138.6 kB / 1.063 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004723/0.3736, allocations: 458.7 kB / 1.064 GB, free: 472 kB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003744/0.3739, allocations: 244.9 kB / 1.064 GB, free: 204 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.3741, allocations: 111.5 kB / 1.064 GB, free: 92 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003254/0.3745, allocations: 139.4 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.3745, allocations: 15.94 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003368/0.3748, allocations: 211.5 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.561e-05/0.3749, allocations: 75.8 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.3751, allocations: 133.1 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.3755, allocations: 355.1 kB / 1.065 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3755, allocations: 0 / 1.065 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.405e-06/0.3755, allocations: 0 / 1.065 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.74e-06/0.3755, allocations: 0 / 1.065 GB, free: 15.17 MB / 0.8262 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.0008625/0.3764, allocations: 0.5068 MB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.3764, allocations: 12.03 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005819/0.377, allocations: 76.58 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/0.3773, allocations: 251.8 kB / 1.066 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.3773, allocations: 16.81 kB / 1.066 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.669e-05/0.3774, allocations: 20.36 kB / 1.066 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.3779, allocations: 312.7 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.3779, allocations: 3.938 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.088e-05/0.3779, allocations: 12 kB / 1.066 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.92e-05/0.378, allocations: 16.42 kB / 1.066 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003881/0.3784, allocations: 217.6 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.3799, allocations: 1.502 MB / 1.068 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004211/0.3803, allocations: 203.7 kB / 1.068 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.3805, allocations: 52.77 kB / 1.068 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.3805, allocations: 4 kB / 1.068 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.3805, allocations: 30.56 kB / 1.068 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.3805, allocations: 0 / 1.068 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0005996/0.3811, allocations: 267.4 kB / 1.068 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.3812, allocations: 55.34 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002079/0.3814, allocations: 207.7 kB / 1.068 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.3814, allocations: 29.7 kB / 1.068 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.3815, allocations: 175.6 kB / 1.069 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.3816, allocations: 31.55 kB / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.3816, allocations: 17.72 kB / 1.069 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.3817, allocations: 338.8 kB / 1.069 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.619e-05/0.3818, allocations: 43.98 kB / 1.069 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.382, allocations: 113.9 kB / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002529/0.3822, allocations: 180.3 kB / 1.069 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3822, allocations: 0 / 1.069 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003631/0.3826, allocations: 214.3 kB / 1.07 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3826, allocations: 8 kB / 1.07 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.3826, allocations: 4 kB / 1.07 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001652/0.3828, allocations: 28.78 kB / 1.07 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.383, allocations: 31.92 kB / 1.07 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009989/0.384, allocations: 1.331 MB / 1.071 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.3841, allocations: 23.78 kB / 1.071 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.3841, allocations: 8.156 kB / 1.071 GB, free: 8.297 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.0001328/0.3843, allocations: 151.1 kB / 1.071 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.928e-05/0.3843, allocations: 19.75 kB / 1.071 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.518e-05/0.3843, allocations: 21.39 kB / 1.071 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3844, allocations: 0 / 1.071 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3844, allocations: 0 / 1.071 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3844, allocations: 0 / 1.071 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005767/0.3849, allocations: 499.1 kB / 1.072 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.385, allocations: 0 / 1.072 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.226e-05/0.385, allocations: 11.98 kB / 1.072 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.77e-05/0.3851, allocations: 24.84 kB / 1.072 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.006e-06/0.3851, allocations: 0 / 1.072 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008548/0.386, allocations: 1.323 MB / 1.073 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.386, allocations: 3.984 kB / 1.073 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002826/0.3863, allocations: 240.8 kB / 1.073 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.138e-05/0.3864, allocations: 104.8 kB / 1.073 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.3864, allocations: 7.984 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.3865, allocations: 4 kB / 1.073 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.3866, allocations: 19.98 kB / 1.073 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.3866, allocations: 0 / 1.073 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001129/0.3867, allocations: 145.5 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3867, allocations: 0 / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003114/0.387, allocations: 55.84 kB / 1.073 GB, free: 5.457 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.0001157/0.3872, allocations: 95.34 kB / 1.074 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004139/0.3876, allocations: 246.4 kB / 1.074 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3876, allocations: 0 / 1.074 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.3878, allocations: 174.6 kB / 1.074 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003715/0.3882, allocations: 32.55 kB / 1.074 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006451/0.3888, allocations: 0.4914 MB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.3891, allocations: 0.7557 MB / 1.075 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001253/0.3893, allocations: 25.53 kB / 1.075 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.686e-05/0.3893, allocations: 15.44 kB / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of SimCode: time 1.784e-06/0.3893, allocations: 0 / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of Templates: time 0.004678/0.394, allocations: 1.829 MB / 1.077 GB, free: 1.738 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