Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001443/0.001443, allocations: 102.5 kB / 16.35 MB, free: 5.824 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.001586/0.001586, allocations: 193.9 kB / 17.29 MB, free: 5.48 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.433/2.433, allocations: 437.1 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 64.53 kB / 0.8707 GB, free: 1.406 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3594, allocations: 151.6 MB / 1.019 GB, free: 9.824 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.005264/0.3648, allocations: 3.22 MB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002609/0.3674, allocations: 1.383 MB / 1.023 GB, free: 5.195 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001939/0.3676, allocations: 7.938 kB / 1.023 GB, free: 5.188 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001466/0.3691, allocations: 330.7 kB / 1.024 GB, free: 4.863 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0004853/0.3696, allocations: 147.2 kB / 1.024 GB, free: 4.719 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005368/0.3702, allocations: 156 kB / 1.024 GB, free: 4.566 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004114/0.3706, allocations: 334.9 kB / 1.024 GB, free: 4.238 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004443/0.371, allocations: 243.7 kB / 1.024 GB, free: 3.996 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.3712, allocations: 135.5 kB / 1.025 GB, free: 3.863 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.3715, allocations: 151.5 kB / 1.025 GB, free: 3.715 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.3716, allocations: 24 kB / 1.025 GB, free: 3.691 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002832/0.3719, allocations: 163.7 kB / 1.025 GB, free: 3.531 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 9.09e-05/0.372, allocations: 87.72 kB / 1.025 GB, free: 3.445 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001367/0.3721, allocations: 119.4 kB / 1.025 GB, free: 3.328 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004178/0.3725, allocations: 370.7 kB / 1.025 GB, free: 2.965 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3725, allocations: 4 kB / 1.025 GB, free: 2.961 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3725, allocations: 0 / 1.025 GB, free: 2.961 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.3726, allocations: 0 / 1.025 GB, free: 2.961 MB / 0.795 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.0008496/0.3734, allocations: 0.5341 MB / 1.026 GB, free: 2.379 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3735, allocations: 8.922 kB / 1.026 GB, free: 2.371 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005761/0.374, allocations: 84.58 kB / 1.026 GB, free: 2.289 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.3744, allocations: 255.8 kB / 1.026 GB, free: 2 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.3744, allocations: 12.81 kB / 1.026 GB, free: 1.988 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.662e-05/0.3744, allocations: 28.36 kB / 1.026 GB, free: 1.961 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004977/0.3749, allocations: 312.6 kB / 1.027 GB, free: 1.633 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.375, allocations: 0 / 1.027 GB, free: 1.633 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.435e-05/0.375, allocations: 4 kB / 1.027 GB, free: 1.629 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.718e-05/0.375, allocations: 24.42 kB / 1.027 GB, free: 1.605 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003438/0.3754, allocations: 213.6 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.3769, allocations: 1.486 MB / 1.028 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004143/0.3774, allocations: 207.6 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.041e-05/0.3775, allocations: 48.83 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.3775, allocations: 4 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.3775, allocations: 34.56 kB / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 3.176e-06/0.3776, allocations: 7.922 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005525/0.3781, allocations: 263.3 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.3782, allocations: 59.41 kB / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.3784, allocations: 203.8 kB / 1.029 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.3784, allocations: 25.7 kB / 1.029 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.3785, allocations: 175.6 kB / 1.029 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.631e-05/0.3785, allocations: 31.55 kB / 1.029 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-05/0.3786, allocations: 29.72 kB / 1.029 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3787, allocations: 334.8 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.311e-05/0.3788, allocations: 43.98 kB / 1.03 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.3789, allocations: 111 kB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.3792, allocations: 176.3 kB / 1.03 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3792, allocations: 0 / 1.03 GB, free: 13.85 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003483/0.3795, allocations: 214.1 kB / 1.03 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3796, allocations: 4 kB / 1.03 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.3796, allocations: 8 kB / 1.03 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001607/0.3798, allocations: 29.12 kB / 1.03 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.3799, allocations: 35.86 kB / 1.03 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001063/0.381, allocations: 1.433 MB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.3811, allocations: 19.83 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.3811, allocations: 8 kB / 1.032 GB, free: 11.95 MB / 0.8106 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.0001347/0.3813, allocations: 146.5 kB / 1.032 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/0.3813, allocations: 19.81 kB / 1.032 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.169e-05/0.3814, allocations: 21.39 kB / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.3814, allocations: 0 / 1.032 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3814, allocations: 4 kB / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.3814, allocations: 0 / 1.032 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005885/0.382, allocations: 483.2 kB / 1.032 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.382, allocations: 0 / 1.032 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.519e-05/0.3821, allocations: 15.98 kB / 1.032 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.707e-05/0.3821, allocations: 28.78 kB / 1.032 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.3822, allocations: 0 / 1.032 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009666/0.3831, allocations: 1.433 MB / 1.034 GB, free: 9.613 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3831, allocations: 0 / 1.034 GB, free: 9.613 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002758/0.3834, allocations: 236.2 kB / 1.034 GB, free: 9.363 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.956e-05/0.3835, allocations: 100.9 kB / 1.034 GB, free: 9.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.165e-05/0.3835, allocations: 7.938 kB / 1.034 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.3837, allocations: 8 kB / 1.034 GB, free: 9.23 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.3837, allocations: 3.984 kB / 1.034 GB, free: 9.227 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.3837, allocations: 4 kB / 1.034 GB, free: 9.223 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001151/0.3839, allocations: 144.2 kB / 1.034 GB, free: 9.082 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3839, allocations: 0 / 1.034 GB, free: 9.082 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003473/0.3842, allocations: 59.78 kB / 1.034 GB, free: 9.023 MB / 0.8106 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.0001248/0.3844, allocations: 109.5 kB / 1.034 GB, free: 8.91 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004295/0.3848, allocations: 230.6 kB / 1.035 GB, free: 8.672 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3848, allocations: 7.938 kB / 1.035 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001993/0.385, allocations: 163.2 kB / 1.035 GB, free: 8.492 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.3854, allocations: 30.94 kB / 1.035 GB, free: 8.465 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006497/0.386, allocations: 391.6 kB / 1.035 GB, free: 8.055 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.3864, allocations: 0.7554 MB / 1.036 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.771e-05/0.3865, allocations: 33.52 kB / 1.036 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.771e-05/0.3865, allocations: 15.44 kB / 1.036 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.3865, allocations: 0 / 1.036 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of Templates: time 0.005086/0.3916, allocations: 1.927 MB / 1.038 GB, free: 5.312 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches