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.01219/0.01219, allocations: 99.31 kB / 15.73 MB, free: 6.051 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.002485/0.002485, allocations: 188.9 kB / 16.67 MB, free: 5.977 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.886/2.886, allocations: 461.9 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 67.91 kB / 1.054 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3685, allocations: 157.4 MB / 1.208 GB, free: 9.707 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.004689/0.3732, allocations: 3.223 MB / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002207/0.3755, allocations: 1.367 MB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.3756, allocations: 7.938 kB / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0009942/0.3766, allocations: 341.3 kB / 1.213 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0003159/0.3769, allocations: 151.2 kB / 1.213 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.3773, allocations: 143.6 kB / 1.213 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003511/0.3776, allocations: 326.9 kB / 1.213 GB, free: 4.141 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004204/0.3781, allocations: 247.7 kB / 1.213 GB, free: 3.895 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.3782, allocations: 143.5 kB / 1.213 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002715/0.3785, allocations: 147.5 kB / 1.214 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.158e-05/0.3786, allocations: 20 kB / 1.214 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002801/0.3789, allocations: 167.6 kB / 1.214 GB, free: 3.426 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.379, allocations: 87.72 kB / 1.214 GB, free: 3.34 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001505/0.3791, allocations: 123.5 kB / 1.214 GB, free: 3.219 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004036/0.3795, allocations: 362.7 kB / 1.214 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3795, allocations: 0 / 1.214 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3796, allocations: 0 / 1.214 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.447e-06/0.3796, allocations: 0 / 1.214 GB, free: 2.863 MB / 0.9669 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.0008883/0.3805, allocations: 0.539 MB / 1.215 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3805, allocations: 12.62 kB / 1.215 GB, free: 2.266 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005967/0.3811, allocations: 80.58 kB / 1.215 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/0.3815, allocations: 251.9 kB / 1.215 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.3815, allocations: 16.81 kB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.655e-05/0.3816, allocations: 20.36 kB / 1.215 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005163/0.3821, allocations: 316.7 kB / 1.216 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.3821, allocations: 3.938 kB / 1.216 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.659e-05/0.3821, allocations: 8 kB / 1.216 GB, free: 1.523 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-05/0.3822, allocations: 24.42 kB / 1.216 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003823/0.3826, allocations: 209.5 kB / 1.216 GB, free: 1.293 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.3843, allocations: 1.501 MB / 1.217 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004289/0.3847, allocations: 203.6 kB / 1.217 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.712e-05/0.3848, allocations: 48.83 kB / 1.217 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.3848, allocations: 3.938 kB / 1.217 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.3849, allocations: 30.56 kB / 1.218 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.233e-06/0.3849, allocations: 0 / 1.218 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0005808/0.3855, allocations: 271.3 kB / 1.218 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.3855, allocations: 51.41 kB / 1.218 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001963/0.3857, allocations: 203.8 kB / 1.218 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.3858, allocations: 25.7 kB / 1.218 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.3859, allocations: 179.6 kB / 1.218 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.3859, allocations: 23.66 kB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.474e-05/0.386, allocations: 41.61 kB / 1.218 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.3861, allocations: 334.8 kB / 1.219 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.756e-05/0.3862, allocations: 43.97 kB / 1.219 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.3864, allocations: 101.9 kB / 1.219 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.3866, allocations: 172.4 kB / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.3866, allocations: 4 kB / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000361/0.387, allocations: 202.1 kB / 1.219 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.387, allocations: 8.281 kB / 1.219 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.3871, allocations: 7.984 kB / 1.219 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001847/0.3872, allocations: 28.84 kB / 1.219 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.3874, allocations: 35.92 kB / 1.219 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.3885, allocations: 1.437 MB / 1.221 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.3886, allocations: 15.94 kB / 1.221 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.3887, allocations: 11.94 kB / 1.221 GB, free: 11.85 MB / 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.0001321/0.3888, allocations: 145.9 kB / 1.221 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.09e-05/0.3889, allocations: 15.81 kB / 1.221 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.226e-05/0.3889, allocations: 21.39 kB / 1.221 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.3889, allocations: 4 kB / 1.221 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.235e-06/0.3889, allocations: 0 / 1.221 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3889, allocations: 0 / 1.221 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005992/0.3895, allocations: 491.1 kB / 1.221 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3895, allocations: 7.984 kB / 1.221 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.098e-05/0.3896, allocations: 8 kB / 1.221 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.179e-05/0.3897, allocations: 28.78 kB / 1.221 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.3897, allocations: 4 kB / 1.221 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009656/0.3907, allocations: 1.418 MB / 1.223 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.3907, allocations: 0 / 1.223 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.391, allocations: 248.6 kB / 1.223 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.994e-05/0.3911, allocations: 100.9 kB / 1.223 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.3911, allocations: 0 / 1.223 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.3912, allocations: 15.98 kB / 1.223 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.345e-05/0.3913, allocations: 4 kB / 1.223 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.3913, allocations: 0 / 1.223 GB, free: 9.117 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001171/0.3914, allocations: 145.5 kB / 1.223 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3914, allocations: 0 / 1.223 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003229/0.3918, allocations: 63.78 kB / 1.223 GB, free: 8.914 MB / 0.9825 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.0001145/0.3919, allocations: 108.2 kB / 1.223 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004347/0.3923, allocations: 230.5 kB / 1.224 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3923, allocations: 0.5625 kB / 1.224 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001981/0.3925, allocations: 162.6 kB / 1.224 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003653/0.3929, allocations: 37.53 kB / 1.224 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006368/0.3936, allocations: 392 kB / 1.224 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.3939, allocations: 0.7554 MB / 1.225 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.794e-05/0.394, allocations: 33.47 kB / 1.225 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.765e-05/0.3941, allocations: 19.44 kB / 1.225 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.3941, allocations: 0 / 1.225 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of Templates: time 0.005274/0.3993, allocations: 1.978 MB / 1.227 GB, free: 5.156 MB / 0.9825 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