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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001731/0.001731, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001936/0.001936, allocations: 192.8 kB / 16.25 MB, free: 6.633 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.415/1.415, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.854/2.854, allocations: 482.4 MB / 0.7543 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 65.03 kB / 0.9233 GB, free: 29.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3221, allocations: 162.2 MB / 1.082 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.004884/0.327, allocations: 3.261 MB / 1.085 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002095/0.3291, allocations: 1.356 MB / 1.086 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.3293, allocations: 4 kB / 1.086 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009448/0.3302, allocations: 326.9 kB / 1.087 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002997/0.3305, allocations: 135.4 kB / 1.087 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.3308, allocations: 130.8 kB / 1.087 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003708/0.3312, allocations: 334.9 kB / 1.087 GB, free: 8.121 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004495/0.3317, allocations: 276 kB / 1.087 GB, free: 7.852 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001931/0.3319, allocations: 135.5 kB / 1.088 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002525/0.3321, allocations: 151.5 kB / 1.088 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.3322, allocations: 20 kB / 1.088 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002669/0.3325, allocations: 171.6 kB / 1.088 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.488e-05/0.3326, allocations: 91.67 kB / 1.088 GB, free: 7.293 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.3327, allocations: 119.4 kB / 1.088 GB, free: 7.176 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004208/0.3331, allocations: 370.8 kB / 1.088 GB, free: 6.812 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.3331, allocations: 0 / 1.088 GB, free: 6.812 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3332, allocations: 3.938 kB / 1.088 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.3332, allocations: 7.938 kB / 1.088 GB, free: 6.801 MB / 0.8419 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.0008653/0.334, allocations: 0.5302 MB / 1.089 GB, free: 6.219 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.3341, allocations: 12.03 kB / 1.089 GB, free: 6.207 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005852/0.3347, allocations: 80.58 kB / 1.089 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.335, allocations: 244 kB / 1.089 GB, free: 5.852 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.335, allocations: 16.8 kB / 1.089 GB, free: 5.836 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.3351, allocations: 24.31 kB / 1.089 GB, free: 5.812 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005156/0.3356, allocations: 312.7 kB / 1.09 GB, free: 5.484 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.3356, allocations: 0 / 1.09 GB, free: 5.484 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.93e-05/0.3356, allocations: 11.98 kB / 1.09 GB, free: 5.473 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.885e-05/0.3357, allocations: 24.36 kB / 1.09 GB, free: 5.445 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003898/0.3361, allocations: 209.6 kB / 1.09 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.3377, allocations: 1.498 MB / 1.091 GB, free: 3.578 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004298/0.3382, allocations: 203.7 kB / 1.091 GB, free: 3.352 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.3383, allocations: 40.84 kB / 1.092 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.3383, allocations: 4 kB / 1.092 GB, free: 3.305 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.3384, allocations: 38.5 kB / 1.092 GB, free: 3.258 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.3384, allocations: 4 kB / 1.092 GB, free: 3.254 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.0005933/0.339, allocations: 259.4 kB / 1.092 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.339, allocations: 55.41 kB / 1.092 GB, free: 2.906 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.3392, allocations: 207.7 kB / 1.092 GB, free: 2.695 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.3393, allocations: 25.7 kB / 1.092 GB, free: 2.664 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.3394, allocations: 179.6 kB / 1.092 GB, free: 2.484 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.3394, allocations: 31.59 kB / 1.092 GB, free: 2.453 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-05/0.3395, allocations: 37.61 kB / 1.092 GB, free: 2.41 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.3396, allocations: 330.8 kB / 1.093 GB, free: 2.078 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.3398, allocations: 43.97 kB / 1.093 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.3399, allocations: 110.3 kB / 1.093 GB, free: 1.898 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002371/0.3402, allocations: 164.4 kB / 1.093 GB, free: 1.707 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3402, allocations: 0 / 1.093 GB, free: 1.707 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000384/0.3406, allocations: 222.2 kB / 1.093 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.3406, allocations: 4 kB / 1.093 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.3406, allocations: 4 kB / 1.093 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/0.3408, allocations: 28.78 kB / 1.093 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.3409, allocations: 31.92 kB / 1.093 GB, free: 1.41 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.3421, allocations: 1.437 MB / 1.095 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.3423, allocations: 20 kB / 1.095 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.3423, allocations: 8 kB / 1.095 GB, free: 15.8 MB / 0.8575 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.0001441/0.3424, allocations: 149.7 kB / 1.095 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.968e-05/0.3425, allocations: 15.81 kB / 1.095 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.442e-05/0.3425, allocations: 21.39 kB / 1.095 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.3425, allocations: 0 / 1.095 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.3425, allocations: 4 kB / 1.095 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.3425, allocations: 0 / 1.095 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006749/0.3432, allocations: 495.1 kB / 1.095 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3432, allocations: 0 / 1.095 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.717e-05/0.3433, allocations: 12 kB / 1.095 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.298e-05/0.3434, allocations: 20.84 kB / 1.095 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.3434, allocations: 0 / 1.095 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.3445, allocations: 1.433 MB / 1.097 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3445, allocations: 480 / 1.097 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.3448, allocations: 244 kB / 1.097 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.5e-05/0.3449, allocations: 100.9 kB / 1.097 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.276e-05/0.345, allocations: 4 kB / 1.097 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.3451, allocations: 11.98 kB / 1.097 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.237e-05/0.3451, allocations: 4.062 kB / 1.097 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.3452, allocations: 8 kB / 1.097 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001403/0.3453, allocations: 153.5 kB / 1.097 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3453, allocations: 3.938 kB / 1.097 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003348/0.3456, allocations: 59.78 kB / 1.097 GB, free: 12.85 MB / 0.8575 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.0001196/0.3458, allocations: 99.23 kB / 1.097 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000455/0.3462, allocations: 242.4 kB / 1.098 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3462, allocations: 0 / 1.098 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002163/0.3465, allocations: 166.6 kB / 1.098 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003648/0.3468, allocations: 36.55 kB / 1.098 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007168/0.3476, allocations: 471.7 kB / 1.098 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.348, allocations: 0.7632 MB / 1.099 GB, free: 11 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001075/0.3481, allocations: 29.53 kB / 1.099 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.3481, allocations: 15.44 kB / 1.099 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of SimCode: time 2.21e-07/0.3481, allocations: 0 / 1.099 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of Templates: time 0.005255/0.3534, allocations: 1.919 MB / 1.101 GB, free: 9.062 MB / 0.8575 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=400 -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