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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.00152/0.00152, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001752/0.001752, allocations: 189.4 kB / 16.13 MB, free: 6.645 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.526/1.526, allocations: 222.9 MB / 239.8 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.595/2.595, allocations: 437 MB / 0.7099 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001247, allocations: 63.89 kB / 0.8685 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.745/0.7462, allocations: 151.6 MB / 1.017 GB, free: 2.754 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.00562/0.7519, allocations: 3.274 MB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00235/0.7543, allocations: 1.375 MB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001786/0.7545, allocations: 7.938 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.7556, allocations: 307 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000405/0.756, allocations: 139.4 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004483/0.7565, allocations: 144.9 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000485/0.757, allocations: 458.7 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003604/0.7573, allocations: 167.8 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.7576, allocations: 115.5 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003188/0.7579, allocations: 159.4 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.655e-05/0.7579, allocations: 16 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003695/0.7583, allocations: 207.6 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.7584, allocations: 83.72 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.7586, allocations: 107.5 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004376/0.759, allocations: 360.8 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.759, allocations: 0 / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of FrontEnd: time 9.92e-07/0.759, allocations: 0 / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.759, allocations: 4 kB / 1.023 GB, free: 11.86 MB / 0.7794 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.0009332/0.76, allocations: 0.5419 MB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.76, allocations: 8.031 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005872/0.7606, allocations: 80.58 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.7609, allocations: 261.2 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.7609, allocations: 12.81 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.109e-05/0.761, allocations: 20.38 kB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004848/0.7615, allocations: 324.6 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.7615, allocations: 0 / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.7615, allocations: 12 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.142e-05/0.7616, allocations: 16.42 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003669/0.762, allocations: 209.6 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001622/0.7636, allocations: 1.494 MB / 1.026 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004522/0.7641, allocations: 203.6 kB / 1.026 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001082/0.7642, allocations: 48.81 kB / 1.026 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.7642, allocations: 8 kB / 1.026 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.7642, allocations: 34.56 kB / 1.026 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.473e-06/0.7643, allocations: 0 / 1.026 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0006435/0.7649, allocations: 255.3 kB / 1.027 GB, free: 8.012 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.765, allocations: 59.39 kB / 1.027 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.7652, allocations: 196.9 kB / 1.027 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.7652, allocations: 29.7 kB / 1.027 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.7653, allocations: 179.6 kB / 1.027 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.7654, allocations: 31.55 kB / 1.027 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.197e-05/0.7655, allocations: 33.7 kB / 1.027 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.7656, allocations: 330.8 kB / 1.028 GB, free: 7.121 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.7658, allocations: 43.97 kB / 1.028 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.766, allocations: 114.8 kB / 1.028 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002685/0.7662, allocations: 168.3 kB / 1.028 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-06/0.7663, allocations: 0 / 1.028 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003793/0.7667, allocations: 225.9 kB / 1.028 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.7667, allocations: 4 kB / 1.028 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.7667, allocations: 4 kB / 1.028 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001875/0.7669, allocations: 28.83 kB / 1.028 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.767, allocations: 35.86 kB / 1.028 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.7682, allocations: 1.323 MB / 1.029 GB, free: 4.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/0.7684, allocations: 23.91 kB / 1.029 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.7684, allocations: 12 kB / 1.029 GB, free: 4.945 MB / 0.7794 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.0001568/0.7685, allocations: 149.8 kB / 1.03 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.317e-05/0.7686, allocations: 23.73 kB / 1.03 GB, free: 4.766 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.998e-05/0.7686, allocations: 17.41 kB / 1.03 GB, free: 4.754 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.7686, allocations: 4 kB / 1.03 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.7686, allocations: 0 / 1.03 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.7687, allocations: 0 / 1.03 GB, free: 4.75 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006466/0.7693, allocations: 487.2 kB / 1.03 GB, free: 4.215 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.7693, allocations: 4 kB / 1.03 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.229e-05/0.7694, allocations: 8 kB / 1.03 GB, free: 4.203 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.617e-05/0.7695, allocations: 32.77 kB / 1.03 GB, free: 4.168 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.7695, allocations: 0 / 1.03 GB, free: 4.168 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009268/0.7704, allocations: 1.319 MB / 1.031 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.7704, allocations: 32 / 1.031 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002874/0.7707, allocations: 240.7 kB / 1.032 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.42e-05/0.7708, allocations: 104.8 kB / 1.032 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.7709, allocations: 0 / 1.032 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.771, allocations: 4 kB / 1.032 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.589e-05/0.771, allocations: 11.98 kB / 1.032 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-06/0.7711, allocations: 0 / 1.032 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001333/0.7712, allocations: 148.5 kB / 1.032 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7712, allocations: 4 kB / 1.032 GB, free: 2.18 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000354/0.7716, allocations: 55.84 kB / 1.032 GB, free: 2.125 MB / 0.7794 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.0001358/0.7717, allocations: 107.2 kB / 1.032 GB, free: 2.012 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004249/0.7721, allocations: 227 kB / 1.032 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.7721, allocations: 4.188 kB / 1.032 GB, free: 1.773 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.7723, allocations: 158.7 kB / 1.032 GB, free: 1.605 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004124/0.7728, allocations: 48.83 kB / 1.033 GB, free: 1.559 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007511/0.7735, allocations: 482.4 kB / 1.033 GB, free: 1.062 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.7739, allocations: 0.7557 MB / 1.034 GB, free: 288 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001103/0.774, allocations: 29.52 kB / 1.034 GB, free: 252 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.997e-05/0.774, allocations: 15.44 kB / 1.034 GB, free: 236 kB / 0.7794 GB Notification: Performance of SimCode: time 4.01e-07/0.7741, allocations: 4 kB / 1.034 GB, free: 232 kB / 0.7794 GB Notification: Performance of Templates: time 0.00498/0.779, allocations: 1.833 MB / 1.036 GB, free: 14.41 MB / 0.795 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 -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/jenkins/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