Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.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.AC.OnePhase.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|sen.V|sen.theta",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|sen.V|sen.theta",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 110.9 kB / 16.42 MB, free: 6.473 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.001455/0.001455, allocations: 190.7 kB / 17.35 MB, free: 5.711 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.368/1.368, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.625/2.625, allocations: 472.7 MB / 0.746 GB, free: 448 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.001511, allocations: 63.89 kB / 1.07 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.018/1.019, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource): time 0.006718/1.026, allocations: 2.428 MB / 1.229 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.004797/1.031, allocations: 1.582 MB / 1.23 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001997/1.031, allocations: 4 kB / 1.23 GB, free: 9.465 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001099/1.032, allocations: 171.3 kB / 1.23 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0008253/1.033, allocations: 159.3 kB / 1.231 GB, free: 9.141 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009724/1.034, allocations: 183.5 kB / 1.231 GB, free: 8.961 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000559/1.035, allocations: 219.3 kB / 1.231 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004536/1.035, allocations: 125 kB / 1.231 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002946/1.035, allocations: 87.69 kB / 1.231 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004012/1.036, allocations: 103.6 kB / 1.231 GB, free: 8.438 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.741e-05/1.036, allocations: 12 kB / 1.231 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007015/1.037, allocations: 207.7 kB / 1.231 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001415/1.037, allocations: 59.88 kB / 1.232 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001764/1.037, allocations: 95.45 kB / 1.232 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0008207/1.038, allocations: 303.5 kB / 1.232 GB, free: 7.777 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/1.038, allocations: 0 / 1.232 GB, free: 7.777 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.595e-06/1.038, allocations: 0 / 1.232 GB, free: 7.777 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.037e-05/1.038, allocations: 0 / 1.232 GB, free: 7.777 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.001317/1.039, allocations: 478.7 kB / 1.232 GB, free: 7.258 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.951e-05/1.039, allocations: 8.031 kB / 1.232 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/1.041, allocations: 92.72 kB / 1.232 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004672/1.041, allocations: 228.1 kB / 1.233 GB, free: 6.898 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/1.041, allocations: 8.656 kB / 1.233 GB, free: 6.891 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.208e-05/1.041, allocations: 20.36 kB / 1.233 GB, free: 6.871 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008806/1.042, allocations: 300 kB / 1.233 GB, free: 6.543 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/1.042, allocations: 4 kB / 1.233 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/1.042, allocations: 4 kB / 1.233 GB, free: 6.535 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.058e-05/1.042, allocations: 20.22 kB / 1.233 GB, free: 6.512 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007221/1.043, allocations: 228.4 kB / 1.233 GB, free: 6.289 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003117/1.046, allocations: 1.595 MB / 1.235 GB, free: 4.559 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006381/1.047, allocations: 323.2 kB / 1.235 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/1.047, allocations: 61.69 kB / 1.235 GB, free: 4.121 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/1.047, allocations: 0 / 1.235 GB, free: 4.121 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/1.047, allocations: 34.56 kB / 1.235 GB, free: 4.078 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=9): time 2.845e-06/1.047, allocations: 0 / 1.235 GB, free: 4.078 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.001016/1.048, allocations: 249.1 kB / 1.235 GB, free: 3.828 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.918e-05/1.048, allocations: 85.28 kB / 1.236 GB, free: 3.727 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000428/1.049, allocations: 211.4 kB / 1.236 GB, free: 3.512 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/1.049, allocations: 25.7 kB / 1.236 GB, free: 3.48 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/1.049, allocations: 155.9 kB / 1.236 GB, free: 3.324 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.965e-05/1.049, allocations: 39.73 kB / 1.236 GB, free: 3.285 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/1.049, allocations: 45.66 kB / 1.236 GB, free: 3.234 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002281/1.05, allocations: 326.8 kB / 1.236 GB, free: 2.906 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/1.05, allocations: 88.73 kB / 1.236 GB, free: 2.816 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003826/1.05, allocations: 160.5 kB / 1.237 GB, free: 2.621 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005704/1.051, allocations: 234.9 kB / 1.237 GB, free: 2.352 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/1.051, allocations: 0 / 1.237 GB, free: 2.352 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008596/1.052, allocations: 273.2 kB / 1.237 GB, free: 2.078 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/1.052, allocations: 9.406 kB / 1.237 GB, free: 2.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/1.052, allocations: 0 / 1.237 GB, free: 2.07 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/1.052, allocations: 8 kB / 1.237 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004574/1.052, allocations: 64.2 kB / 1.237 GB, free: 2 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/1.052, allocations: 7.938 kB / 1.237 GB, free: 1.992 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004018/1.053, allocations: 19.92 kB / 1.237 GB, free: 1.973 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/1.053, allocations: 19.98 kB / 1.237 GB, free: 1.953 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003499/1.053, allocations: 164.1 kB / 1.237 GB, free: 1.789 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003307/1.054, allocations: 156.1 kB / 1.237 GB, free: 1.598 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005716/1.054, allocations: 231.8 kB / 1.238 GB, free: 1.328 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.877e-06/1.054, allocations: 0 / 1.238 GB, free: 1.328 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0008691/1.055, allocations: 253.3 kB / 1.238 GB, free: 1.074 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/1.055, allocations: 8 kB / 1.238 GB, free: 1.066 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/1.055, allocations: 4 kB / 1.238 GB, free: 1.062 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/1.055, allocations: 4 kB / 1.238 GB, free: 1.059 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003661/1.056, allocations: 47.91 kB / 1.238 GB, free: 1.012 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.699e-05/1.056, allocations: 11.94 kB / 1.238 GB, free: 1 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004016/1.056, allocations: 24.22 kB / 1.238 GB, free: 0.9766 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/1.056, allocations: 15.94 kB / 1.238 GB, free: 0.9609 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001833/1.056, allocations: 188.7 kB / 1.238 GB, free: 0.7695 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/1.056, allocations: 15.91 kB / 1.238 GB, free: 0.7539 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000406/1.057, allocations: 147 kB / 1.238 GB, free: 0.5977 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/1.057, allocations: 3.938 kB / 1.238 GB, free: 0.5938 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/1.057, allocations: 48 / 1.238 GB, free: 0.5938 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/1.057, allocations: 112.9 kB / 1.238 GB, free: 476 kB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.782e-05/1.057, allocations: 3.938 kB / 1.238 GB, free: 472 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000394/1.057, allocations: 23.97 kB / 1.238 GB, free: 448 kB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/1.058, allocations: 7.984 kB / 1.238 GB, free: 440 kB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005147/1.058, allocations: 296.1 kB / 1.239 GB, free: 136 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005572/1.059, allocations: 385.9 kB / 1.239 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000143/1.059, allocations: 55.97 kB / 1.239 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003425/1.059, allocations: 153.2 kB / 1.239 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of Backend: time 2.795e-06/1.059, allocations: 0 / 1.239 GB, free: 15.54 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001826/1.061, allocations: 410.9 kB / 1.24 GB, free: 15.13 MB / 0.9669 GB Notification: Performance of SimCode: time 0.001476/1.062, allocations: 0.7726 MB / 1.24 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of Templates: time 0.01375/1.076, allocations: 3.989 MB / 1.244 GB, free: 10.32 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_FixedVoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.FixedVoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches