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.001613/0.001614, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002052/0.002052, allocations: 193 kB / 16.53 MB, free: 6.391 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.393/1.393, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.778/2.778, allocations: 472.6 MB / 0.7451 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 64.2 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3289, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.VoltageSource): time 0.005272/0.3342, allocations: 3.215 MB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002339/0.3366, allocations: 1.375 MB / 1.073 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.3367, allocations: 4 kB / 1.073 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.3378, allocations: 341.7 kB / 1.073 GB, free: 5.434 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003565/0.3382, allocations: 147.2 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004312/0.3386, allocations: 143.6 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003544/0.339, allocations: 334.9 kB / 1.074 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005241/0.3395, allocations: 248 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000226/0.3397, allocations: 135.5 kB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002766/0.34, allocations: 151.5 kB / 1.074 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.029e-05/0.3401, allocations: 20 kB / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003157/0.3404, allocations: 167.7 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.296e-05/0.3405, allocations: 91.66 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.3406, allocations: 119.4 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004831/0.3411, allocations: 354.9 kB / 1.075 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.3412, allocations: 0 / 1.075 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.735e-06/0.3412, allocations: 3.938 kB / 1.075 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.3412, allocations: 0 / 1.075 GB, free: 3.551 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.001159/0.3423, allocations: 0.5341 MB / 1.075 GB, free: 2.969 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 7.336e-05/0.3424, allocations: 12.03 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006929/0.3431, allocations: 80.48 kB / 1.075 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004756/0.3436, allocations: 247.9 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.3437, allocations: 20.75 kB / 1.076 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.953e-05/0.3437, allocations: 16.38 kB / 1.076 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000586/0.3443, allocations: 320.6 kB / 1.076 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.3443, allocations: 0 / 1.076 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.657e-05/0.3444, allocations: 12 kB / 1.076 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.89e-05/0.3444, allocations: 16.42 kB / 1.076 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003855/0.3448, allocations: 209.6 kB / 1.076 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.3466, allocations: 1.501 MB / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005291/0.3472, allocations: 203.6 kB / 1.078 GB, free: 104 kB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.3473, allocations: 48.83 kB / 1.078 GB, free: 52 kB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.3473, allocations: 0 / 1.078 GB, free: 52 kB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.997e-05/0.3474, allocations: 34.56 kB / 1.078 GB, free: 8 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.102e-05/0.3474, allocations: 0 / 1.078 GB, free: 8 kB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0006635/0.3481, allocations: 267.6 kB / 1.078 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.3482, allocations: 55.41 kB / 1.078 GB, free: 15.65 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.3484, allocations: 203.7 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.3484, allocations: 33.7 kB / 1.079 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.3485, allocations: 171.7 kB / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.605e-05/0.3485, allocations: 31.56 kB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.155e-05/0.3486, allocations: 37.7 kB / 1.079 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.3487, allocations: 326.8 kB / 1.079 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.912e-05/0.3488, allocations: 47.97 kB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.349, allocations: 108.6 kB / 1.079 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/0.3492, allocations: 168.4 kB / 1.079 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3492, allocations: 4 kB / 1.079 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003654/0.3496, allocations: 214 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3496, allocations: 5.875 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.3497, allocations: 7.984 kB / 1.08 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001766/0.3498, allocations: 28.84 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.35, allocations: 35.86 kB / 1.08 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001347/0.3513, allocations: 1.441 MB / 1.081 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.3515, allocations: 19.84 kB / 1.081 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.3515, allocations: 4 kB / 1.081 GB, free: 12.55 MB / 0.8419 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.0001814/0.3517, allocations: 146.9 kB / 1.081 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.672e-05/0.3518, allocations: 15.81 kB / 1.081 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.636e-05/0.3518, allocations: 21.39 kB / 1.081 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3518, allocations: 8 kB / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3518, allocations: 4 kB / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3519, allocations: 0 / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006885/0.3525, allocations: 483.2 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.3526, allocations: 7.984 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.613e-05/0.3526, allocations: 11.94 kB / 1.082 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.713e-05/0.3527, allocations: 28.84 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.816e-06/0.3528, allocations: 0 / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001016/0.3538, allocations: 1.429 MB / 1.083 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3538, allocations: 0 / 1.083 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.3541, allocations: 240.1 kB / 1.083 GB, free: 9.945 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.243e-05/0.3542, allocations: 96.91 kB / 1.084 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.3542, allocations: 12.06 kB / 1.084 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.3544, allocations: 7.984 kB / 1.084 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.3544, allocations: 11.98 kB / 1.084 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.3544, allocations: 0 / 1.084 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002019/0.3546, allocations: 149.5 kB / 1.084 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3546, allocations: 3.938 kB / 1.084 GB, free: 9.652 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003597/0.355, allocations: 59.78 kB / 1.084 GB, free: 9.594 MB / 0.8419 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.000123/0.3551, allocations: 104.2 kB / 1.084 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005593/0.3557, allocations: 238.5 kB / 1.084 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3557, allocations: 0 / 1.084 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002112/0.3559, allocations: 159.2 kB / 1.084 GB, free: 9.066 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.3563, allocations: 46.97 kB / 1.084 GB, free: 9.023 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006971/0.357, allocations: 399.6 kB / 1.085 GB, free: 8.605 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.3574, allocations: 0.7592 MB / 1.085 GB, free: 7.82 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001147/0.3575, allocations: 25.53 kB / 1.085 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.643e-05/0.3575, allocations: 15.44 kB / 1.085 GB, free: 7.781 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3575, allocations: 0 / 1.085 GB, free: 7.781 MB / 0.8419 GB Notification: Performance of Templates: time 0.005492/0.363, allocations: 1.927 MB / 1.087 GB, free: 5.875 MB / 0.8419 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