Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.AC.ThreePhasesBalanced.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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001811/0.001811, allocations: 110.7 kB / 16.42 MB, free: 6.5 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.001885/0.001886, allocations: 185.4 kB / 17.35 MB, free: 5.738 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.403/1.403, 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 9.1.3-maint.9.1.x/package.mo): time 2.26/2.26, allocations: 390.2 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 71.88 kB / 0.9515 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.052/1.054, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.005513/1.059, allocations: 3.566 MB / 1.092 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003322/1.063, allocations: 1.891 MB / 1.094 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001941/1.063, allocations: 3.688 kB / 1.094 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009163/1.064, allocations: 246.4 kB / 1.094 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000623/1.064, allocations: 216.2 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007864/1.065, allocations: 254.4 kB / 1.095 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000544/1.066, allocations: 395.8 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004735/1.066, allocations: 209.2 kB / 1.095 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002989/1.066, allocations: 160.4 kB / 1.095 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004002/1.067, allocations: 183.1 kB / 1.096 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.318e-05/1.067, allocations: 26.38 kB / 1.096 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006521/1.068, allocations: 293.1 kB / 1.096 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001484/1.068, allocations: 91.97 kB / 1.096 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000183/1.068, allocations: 143.4 kB / 1.096 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007897/1.069, allocations: 493.4 kB / 1.097 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/1.069, allocations: 0 / 1.097 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.543e-06/1.069, allocations: 0.9062 kB / 1.097 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.422e-05/1.069, allocations: 0 / 1.097 GB, free: 0.6172 MB / 0.8575 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.001341/1.07, allocations: 0.6445 MB / 1.097 GB, free: 84 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/1.07, allocations: 12.66 kB / 1.097 GB, free: 80 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009903/1.071, allocations: 119.8 kB / 1.097 GB, free: 56 kB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004921/1.072, allocations: 289.2 kB / 1.098 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/1.072, allocations: 17.83 kB / 1.098 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.11e-05/1.072, allocations: 22.34 kB / 1.098 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009934/1.073, allocations: 427.3 kB / 1.098 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/1.073, allocations: 0.6094 kB / 1.098 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.4e-05/1.073, allocations: 10.62 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.136e-05/1.073, allocations: 22.55 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/1.074, allocations: 405.1 kB / 1.098 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/1.076, allocations: 1.616 MB / 1.1 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/1.078, allocations: 491.6 kB / 1.1 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005216/1.078, allocations: 200.8 kB / 1.101 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000156/1.078, allocations: 90.42 kB / 1.101 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006902/1.079, allocations: 273.9 kB / 1.101 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=27): time 2.524e-06/1.079, allocations: 0.75 kB / 1.101 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of matching and sorting (n=28): time 0.002314/1.082, allocations: 0.7568 MB / 1.102 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/1.082, allocations: 84.39 kB / 1.102 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003165/1.082, allocations: 226.7 kB / 1.102 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/1.082, allocations: 32.88 kB / 1.102 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/1.082, allocations: 170.8 kB / 1.102 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/1.082, allocations: 91.34 kB / 1.102 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/1.082, allocations: 68.81 kB / 1.102 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001393/1.082, allocations: 335.7 kB / 1.103 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005249/1.083, allocations: 181.1 kB / 1.103 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005733/1.084, allocations: 255.4 kB / 1.103 GB, free: 12.25 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/1.085, allocations: 461.7 kB / 1.104 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/1.085, allocations: 1.094 kB / 1.104 GB, free: 12.01 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001424/1.086, allocations: 0.5515 MB / 1.104 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.458e-05/1.086, allocations: 33.91 kB / 1.104 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/1.086, allocations: 2.625 kB / 1.104 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002701/1.087, allocations: 39.27 kB / 1.104 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004635/1.087, allocations: 87.11 kB / 1.104 GB, free: 11.72 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/1.089, allocations: 1.607 MB / 1.106 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003977/1.089, allocations: 51.12 kB / 1.106 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/1.089, allocations: 16.3 kB / 1.106 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005983/1.09, allocations: 278.2 kB / 1.106 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005152/1.09, allocations: 249.6 kB / 1.106 GB, free: 9.906 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009659/1.091, allocations: 438.3 kB / 1.107 GB, free: 9.668 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.524e-06/1.091, allocations: 0.9375 kB / 1.107 GB, free: 9.668 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001341/1.093, allocations: 0.5293 MB / 1.107 GB, free: 9.438 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.734e-05/1.093, allocations: 39.22 kB / 1.107 GB, free: 9.402 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/1.093, allocations: 2.469 kB / 1.107 GB, free: 9.402 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000165/1.093, allocations: 50.97 kB / 1.107 GB, free: 9.379 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004128/1.093, allocations: 80.3 kB / 1.108 GB, free: 9.375 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/1.095, allocations: 1.603 MB / 1.109 GB, free: 7.863 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003783/1.095, allocations: 56.14 kB / 1.109 GB, free: 7.84 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/1.095, allocations: 15.94 kB / 1.109 GB, free: 7.836 MB / 0.8731 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.0002268/1.095, allocations: 201.1 kB / 1.109 GB, free: 7.641 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.236e-05/1.096, allocations: 24.25 kB / 1.109 GB, free: 7.629 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001279/1.097, allocations: 481.3 kB / 1.11 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/1.097, allocations: 2.812 kB / 1.11 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/1.097, allocations: 4 kB / 1.11 GB, free: 7.441 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001825/1.097, allocations: 136.2 kB / 1.11 GB, free: 7.316 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.106e-05/1.097, allocations: 7.141 kB / 1.11 GB, free: 7.312 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/1.097, allocations: 48.09 kB / 1.11 GB, free: 7.305 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/1.098, allocations: 26.59 kB / 1.11 GB, free: 7.301 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001379/1.099, allocations: 0.6106 MB / 1.111 GB, free: 6.992 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00155/1.101, allocations: 0.8381 MB / 1.111 GB, free: 6.535 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004545/1.101, allocations: 182.4 kB / 1.112 GB, free: 6.484 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002576/1.101, allocations: 180.1 kB / 1.112 GB, free: 6.383 MB / 0.8731 GB Notification: Performance of Backend: time 5.71e-07/1.101, allocations: 0 / 1.112 GB, free: 6.383 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002865/1.104, allocations: 1.058 MB / 1.113 GB, free: 5.77 MB / 0.8731 GB Notification: Performance of SimCode: time 0.001335/1.105, allocations: 0.9567 MB / 1.114 GB, free: 5.004 MB / 0.8731 GB Notification: Performance of Templates: time 0.01772/1.123, allocations: 7.842 MB / 1.121 GB, free: 4.402 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches