Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 107.6 kB / 16.41 MB, free: 6.016 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.002285/0.002285, allocations: 192.9 kB / 17.35 MB, free: 5.602 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.439/1.439, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.896/2.896, allocations: 461.9 MB / 0.7355 GB, free: 11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 59.91 kB / 1.055 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9012/0.9025, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005688/0.9082, allocations: 3.037 MB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003535/0.9118, allocations: 1.893 MB / 1.213 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002828/0.9121, allocations: 7.938 kB / 1.213 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0009674/0.9132, allocations: 235 kB / 1.213 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0007462/0.914, allocations: 223 kB / 1.214 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007563/0.9147, allocations: 253.5 kB / 1.214 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005089/0.9152, allocations: 394.8 kB / 1.214 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004109/0.9157, allocations: 205.8 kB / 1.214 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.9159, allocations: 159.4 kB / 1.215 GB, free: 7.211 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003449/0.9163, allocations: 187.3 kB / 1.215 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.892e-05/0.9164, allocations: 32 kB / 1.215 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005736/0.9169, allocations: 283.5 kB / 1.215 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.9171, allocations: 91.78 kB / 1.215 GB, free: 6.629 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.9172, allocations: 147.2 kB / 1.215 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006259/0.9179, allocations: 492.2 kB / 1.216 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.9179, allocations: 0 / 1.216 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.262e-06/0.9179, allocations: 3.938 kB / 1.216 GB, free: 6.004 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.9179, allocations: 0 / 1.216 GB, free: 6.004 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001221/0.9191, allocations: 0.6409 MB / 1.216 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.9192, allocations: 11.97 kB / 1.216 GB, free: 5.297 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009227/0.9201, allocations: 120.4 kB / 1.217 GB, free: 5.18 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003758/0.9205, allocations: 279.8 kB / 1.217 GB, free: 4.867 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.379e-05/0.9205, allocations: 20.8 kB / 1.217 GB, free: 4.848 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.322e-05/0.9206, allocations: 16.38 kB / 1.217 GB, free: 4.832 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008522/0.9214, allocations: 434.8 kB / 1.217 GB, free: 4.379 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.9215, allocations: 0 / 1.217 GB, free: 4.379 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-05/0.9215, allocations: 8 kB / 1.217 GB, free: 4.371 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.138e-05/0.9216, allocations: 24.36 kB / 1.217 GB, free: 4.344 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009604/0.9225, allocations: 404.7 kB / 1.218 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.9246, allocations: 1.622 MB / 1.219 GB, free: 2.199 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.9259, allocations: 481 kB / 1.22 GB, free: 1.711 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004679/0.9264, allocations: 197.6 kB / 1.22 GB, free: 1.512 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001786/0.9266, allocations: 93.08 kB / 1.22 GB, free: 1.402 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006162/0.9272, allocations: 274.5 kB / 1.22 GB, free: 1.117 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=27): time 2.836e-06/0.9272, allocations: 0 / 1.22 GB, free: 1.117 MB / 0.9356 GB Notification: Performance of matching and sorting (n=28): time 0.002118/0.9294, allocations: 0.7595 MB / 1.221 GB, free: 340 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.9294, allocations: 85.09 kB / 1.221 GB, free: 236 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/0.9297, allocations: 221 kB / 1.221 GB, free: 4 kB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.9298, allocations: 37.89 kB / 1.221 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.9299, allocations: 164.3 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.413e-05/0.93, allocations: 98.67 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.9301, allocations: 69.59 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.9302, allocations: 330.8 kB / 1.222 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004794/0.9307, allocations: 189 kB / 1.222 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004882/0.9312, allocations: 242.9 kB / 1.222 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009698/0.9322, allocations: 472.2 kB / 1.223 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.9322, allocations: 3.984 kB / 1.223 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001343/0.9336, allocations: 0.5398 MB / 1.223 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.179e-05/0.9336, allocations: 39.72 kB / 1.223 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.9337, allocations: 0 / 1.223 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002673/0.9339, allocations: 40.83 kB / 1.223 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004318/0.9344, allocations: 87.84 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001598/0.936, allocations: 1.611 MB / 1.225 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/0.9364, allocations: 51.89 kB / 1.225 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/0.9364, allocations: 19.98 kB / 1.225 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005412/0.937, allocations: 276.1 kB / 1.225 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004872/0.9375, allocations: 250.2 kB / 1.226 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009107/0.9384, allocations: 444.6 kB / 1.226 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.95e-06/0.9384, allocations: 4 kB / 1.226 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.00124/0.9397, allocations: 0.5246 MB / 1.227 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.246e-05/0.9397, allocations: 37.69 kB / 1.227 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.9398, allocations: 0 / 1.227 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001737/0.9399, allocations: 45.11 kB / 1.227 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.9404, allocations: 83.86 kB / 1.227 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001652/0.942, allocations: 1.607 MB / 1.228 GB, free: 8.293 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003875/0.9424, allocations: 47.73 kB / 1.228 GB, free: 8.246 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/0.9425, allocations: 15.98 kB / 1.228 GB, free: 8.23 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002723/0.9427, allocations: 200.3 kB / 1.229 GB, free: 8.027 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.466e-05/0.9428, allocations: 27.72 kB / 1.229 GB, free: 8 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.9441, allocations: 485 kB / 1.229 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.9441, allocations: 144 / 1.229 GB, free: 7.516 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.9441, allocations: 4 kB / 1.229 GB, free: 7.512 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.9443, allocations: 136.6 kB / 1.229 GB, free: 7.359 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.982e-05/0.9443, allocations: 8 kB / 1.229 GB, free: 7.352 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.9447, allocations: 39.94 kB / 1.229 GB, free: 7.312 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.9448, allocations: 39.94 kB / 1.229 GB, free: 7.273 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001319/0.9461, allocations: 0.6099 MB / 1.23 GB, free: 6.652 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001349/0.9475, allocations: 0.8378 MB / 1.231 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003987/0.9479, allocations: 187.8 kB / 1.231 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002191/0.9481, allocations: 180.5 kB / 1.231 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of Backend: time 7.11e-07/0.9482, allocations: 0 / 1.231 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00259/0.9508, allocations: 1.045 MB / 1.232 GB, free: 4.336 MB / 0.9512 GB Notification: Performance of SimCode: time 0.001284/0.9521, allocations: 0.9571 MB / 1.233 GB, free: 3.336 MB / 0.9512 GB Notification: Performance of Templates: time 0.01486/0.9669, allocations: 8.012 MB / 1.241 GB, free: 11.34 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches