Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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_latest_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_latest_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.001168/0.001168, allocations: 106.6 kB / 16.39 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.001192/0.001192, allocations: 189.5 kB / 17.32 MB, free: 5.777 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.642/2.642, allocations: 442.7 MB / 0.7167 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 63.89 kB / 1.027 GB, free: 1.539 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9937/0.9952, allocations: 153 MB / 1.177 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.005614/1.001, allocations: 3.556 MB / 1.18 GB, free: 7.258 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.003121/1.004, allocations: 1.737 MB / 1.182 GB, free: 5.512 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002956/1.004, allocations: 7.938 kB / 1.182 GB, free: 5.504 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001083/1.005, allocations: 239 kB / 1.182 GB, free: 5.27 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0006054/1.006, allocations: 195 kB / 1.182 GB, free: 5.078 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007736/1.007, allocations: 255.3 kB / 1.183 GB, free: 4.828 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0005547/1.007, allocations: 390.8 kB / 1.183 GB, free: 4.445 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004163/1.008, allocations: 213.8 kB / 1.183 GB, free: 4.238 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002754/1.008, allocations: 159.4 kB / 1.183 GB, free: 4.082 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004008/1.009, allocations: 179.3 kB / 1.183 GB, free: 3.906 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 5.358e-05/1.009, allocations: 24 kB / 1.184 GB, free: 3.883 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006079/1.009, allocations: 263.5 kB / 1.184 GB, free: 3.625 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.000138/1.009, allocations: 91.77 kB / 1.184 GB, free: 3.535 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001647/1.01, allocations: 147.2 kB / 1.184 GB, free: 3.391 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0006757/1.01, allocations: 480.3 kB / 1.184 GB, free: 2.926 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/1.01, allocations: 0 / 1.184 GB, free: 2.926 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.665e-06/1.01, allocations: 0 / 1.184 GB, free: 2.926 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.456e-06/1.01, allocations: 0 / 1.184 GB, free: 2.926 MB / 0.9044 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.001342/1.012, allocations: 0.6368 MB / 1.185 GB, free: 2.234 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/1.012, allocations: 12.03 kB / 1.185 GB, free: 2.223 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007337/1.012, allocations: 92.55 kB / 1.185 GB, free: 2.133 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/1.013, allocations: 287.6 kB / 1.185 GB, free: 1.812 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/1.013, allocations: 16.8 kB / 1.185 GB, free: 1.793 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.959e-05/1.013, allocations: 24.38 kB / 1.185 GB, free: 1.77 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008102/1.014, allocations: 414.9 kB / 1.186 GB, free: 1.336 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/1.014, allocations: 4 kB / 1.186 GB, free: 1.332 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/1.014, allocations: 4 kB / 1.186 GB, free: 1.328 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.058e-05/1.014, allocations: 28.36 kB / 1.186 GB, free: 1.297 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009092/1.015, allocations: 384.7 kB / 1.186 GB, free: 0.918 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/1.017, allocations: 1.607 MB / 1.188 GB, free: 15.18 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/1.018, allocations: 467.1 kB / 1.188 GB, free: 14.71 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004491/1.018, allocations: 189.6 kB / 1.188 GB, free: 14.52 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001417/1.018, allocations: 89.11 kB / 1.189 GB, free: 14.41 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005316/1.019, allocations: 266.5 kB / 1.189 GB, free: 14.13 MB / 0.92 GB Notification: Performance of pre-optimization done (n=27): time 2.154e-06/1.019, allocations: 0 / 1.189 GB, free: 14.13 MB / 0.92 GB Notification: Performance of matching and sorting (n=28): time 0.002038/1.021, allocations: 0.7389 MB / 1.19 GB, free: 13.37 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/1.021, allocations: 93.23 kB / 1.19 GB, free: 13.26 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002165/1.021, allocations: 224.9 kB / 1.19 GB, free: 13.03 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/1.021, allocations: 33.7 kB / 1.19 GB, free: 12.99 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/1.022, allocations: 164.4 kB / 1.19 GB, free: 12.83 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 7.371e-05/1.022, allocations: 90.66 kB / 1.19 GB, free: 12.74 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/1.022, allocations: 69.69 kB / 1.19 GB, free: 12.66 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000115/1.022, allocations: 334.8 kB / 1.19 GB, free: 12.33 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004314/1.022, allocations: 177.1 kB / 1.191 GB, free: 12.15 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004418/1.023, allocations: 241.3 kB / 1.191 GB, free: 11.89 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008746/1.024, allocations: 454.9 kB / 1.191 GB, free: 11.41 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/1.024, allocations: 4 kB / 1.191 GB, free: 11.4 MB / 0.92 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001142/1.025, allocations: 0.5279 MB / 1.192 GB, free: 10.86 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.86e-05/1.025, allocations: 37.7 kB / 1.192 GB, free: 10.82 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/1.025, allocations: 0 / 1.192 GB, free: 10.82 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000231/1.025, allocations: 49.09 kB / 1.192 GB, free: 10.77 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004066/1.025, allocations: 83.86 kB / 1.192 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/1.027, allocations: 1.611 MB / 1.194 GB, free: 8.926 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003471/1.027, allocations: 47.7 kB / 1.194 GB, free: 8.879 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.352e-05/1.027, allocations: 19.98 kB / 1.194 GB, free: 8.859 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005015/1.028, allocations: 280.1 kB / 1.194 GB, free: 8.582 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004364/1.028, allocations: 234 kB / 1.194 GB, free: 8.32 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008115/1.029, allocations: 437.1 kB / 1.195 GB, free: 7.855 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.653e-06/1.029, allocations: 0 / 1.195 GB, free: 7.855 MB / 0.92 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.001119/1.03, allocations: 0.5112 MB / 1.195 GB, free: 7.328 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/1.03, allocations: 29.7 kB / 1.195 GB, free: 7.293 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/1.03, allocations: 4 kB / 1.195 GB, free: 7.289 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001616/1.03, allocations: 53.08 kB / 1.195 GB, free: 7.234 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003632/1.031, allocations: 75.88 kB / 1.195 GB, free: 7.16 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/1.032, allocations: 1.603 MB / 1.197 GB, free: 5.41 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003337/1.033, allocations: 43.73 kB / 1.197 GB, free: 5.367 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/1.033, allocations: 19.98 kB / 1.197 GB, free: 5.348 MB / 0.92 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.0001939/1.033, allocations: 196.2 kB / 1.197 GB, free: 5.148 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.195e-05/1.033, allocations: 27.78 kB / 1.197 GB, free: 5.121 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/1.034, allocations: 473.1 kB / 1.198 GB, free: 4.652 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/1.034, allocations: 4 kB / 1.198 GB, free: 4.648 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/1.034, allocations: 4 kB / 1.198 GB, free: 4.645 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/1.034, allocations: 132.7 kB / 1.198 GB, free: 4.496 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.793e-05/1.034, allocations: 8 kB / 1.198 GB, free: 4.488 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000328/1.035, allocations: 39.94 kB / 1.198 GB, free: 4.449 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.54e-05/1.035, allocations: 27.95 kB / 1.198 GB, free: 4.422 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001253/1.036, allocations: 0.6217 MB / 1.198 GB, free: 3.789 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00138/1.037, allocations: 0.8495 MB / 1.199 GB, free: 2.922 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004095/1.038, allocations: 179.9 kB / 1.199 GB, free: 2.746 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001635/1.038, allocations: 172.5 kB / 1.199 GB, free: 2.578 MB / 0.92 GB Notification: Performance of Backend: time 6.72e-07/1.038, allocations: 0 / 1.199 GB, free: 2.578 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002317/1.04, allocations: 1.03 MB / 1.2 GB, free: 1.492 MB / 0.92 GB Notification: Performance of SimCode: time 0.001201/1.041, allocations: 0.9668 MB / 1.201 GB, free: 492 kB / 0.92 GB Notification: Performance of Templates: time 0.01228/1.054, allocations: 7.169 MB / 1.208 GB, free: 9.359 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches