Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001069/0.00107, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001363/0.001363, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.828/2.828, allocations: 437.7 MB / 0.7117 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005365/0.0005366, allocations: 8 kB / 0.8722 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7863/0.7869, allocations: 153.8 MB / 1.022 GB, free: 144 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.003765/0.7907, allocations: 3.109 MB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002461/0.7932, allocations: 1.625 MB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.7933, allocations: 3.938 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001737/0.7935, allocations: 31.72 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004309/0.7939, allocations: 159.3 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005396/0.7945, allocations: 191.5 kB / 1.027 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004337/0.7949, allocations: 414.7 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007501/0.7957, allocations: 370.7 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.7959, allocations: 135.5 kB / 1.028 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003007/0.7962, allocations: 163.4 kB / 1.028 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.735e-05/0.7963, allocations: 16 kB / 1.028 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002904/0.7966, allocations: 139.8 kB / 1.029 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.478e-05/0.7967, allocations: 79.72 kB / 1.029 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.569e-05/0.7968, allocations: 77.58 kB / 1.029 GB, free: 9.609 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003901/0.7972, allocations: 345.1 kB / 1.029 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.7972, allocations: 3.938 kB / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7972, allocations: 0 / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.7972, allocations: 0 / 1.029 GB, free: 9.27 MB / 0.7794 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.001149/0.7984, allocations: 0.5997 MB / 1.03 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.7984, allocations: 16.44 kB / 1.03 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006989/0.7991, allocations: 99.52 kB / 1.03 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.7995, allocations: 266.5 kB / 1.03 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/0.7995, allocations: 20.38 kB / 1.03 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.984e-05/0.7996, allocations: 20 kB / 1.03 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007499/0.8003, allocations: 430.5 kB / 1.03 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.8003, allocations: 4 kB / 1.03 GB, free: 7.719 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.336e-05/0.8004, allocations: 4 kB / 1.03 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.997e-05/0.8004, allocations: 28.36 kB / 1.03 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008318/0.8013, allocations: 412.7 kB / 1.031 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.8032, allocations: 1.607 MB / 1.032 GB, free: 5.547 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.8044, allocations: 497.1 kB / 1.033 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004087/0.8049, allocations: 205.6 kB / 1.033 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001685/0.805, allocations: 97.08 kB / 1.033 GB, free: 4.723 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005683/0.8056, allocations: 271.7 kB / 1.033 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=27): time 2.053e-06/0.8056, allocations: 4 kB / 1.033 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.001836/0.8075, allocations: 0.7844 MB / 1.034 GB, free: 3.621 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.8075, allocations: 85.11 kB / 1.034 GB, free: 3.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.8078, allocations: 225 kB / 1.035 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.8078, allocations: 29.7 kB / 1.035 GB, free: 3.254 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.8079, allocations: 164.4 kB / 1.035 GB, free: 3.09 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.575e-05/0.808, allocations: 98.64 kB / 1.035 GB, free: 2.992 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.076e-05/0.808, allocations: 4 kB / 1.035 GB, free: 2.988 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.8082, allocations: 334.8 kB / 1.035 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003781/0.8085, allocations: 180.2 kB / 1.035 GB, free: 2.477 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004259/0.809, allocations: 253.3 kB / 1.036 GB, free: 2.199 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004295/0.8094, allocations: 237.8 kB / 1.036 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.8094, allocations: 4 kB / 1.036 GB, free: 1.957 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001079/0.8105, allocations: 0.556 MB / 1.036 GB, free: 1.387 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001557/0.8107, allocations: 185 kB / 1.037 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.8107, allocations: 4 kB / 1.037 GB, free: 1.164 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002883/0.811, allocations: 36.83 kB / 1.037 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004098/0.8114, allocations: 91.86 kB / 1.037 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.813, allocations: 1.505 MB / 1.038 GB, free: 15.39 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.8133, allocations: 55.83 kB / 1.038 GB, free: 15.33 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.279e-05/0.8133, allocations: 15.95 kB / 1.038 GB, free: 15.32 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.322e-06/0.8133, allocations: 4 kB / 1.038 GB, free: 15.31 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001011/0.8144, allocations: 0.5037 MB / 1.039 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.8144, allocations: 3.938 kB / 1.039 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001261/0.8145, allocations: 44.81 kB / 1.039 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003427/0.8149, allocations: 84.03 kB / 1.039 GB, free: 14.67 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.816, allocations: 1.497 MB / 1.04 GB, free: 13.04 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/0.8163, allocations: 47.88 kB / 1.04 GB, free: 12.99 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.8164, allocations: 19.98 kB / 1.04 GB, free: 12.97 MB / 0.795 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 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002296/0.8166, allocations: 237 kB / 1.041 GB, free: 12.73 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.644e-05/0.8167, allocations: 27.66 kB / 1.041 GB, free: 12.7 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001027/0.8177, allocations: 493.1 kB / 1.041 GB, free: 12.21 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.8177, allocations: 4 kB / 1.041 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.8177, allocations: 4.125 kB / 1.041 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.8177, allocations: 11.94 kB / 1.041 GB, free: 12.19 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006461/0.8184, allocations: 0.5623 MB / 1.042 GB, free: 11.56 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.8184, allocations: 0 / 1.042 GB, free: 11.56 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003467/0.8187, allocations: 75.92 kB / 1.042 GB, free: 11.49 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.8189, allocations: 40.92 kB / 1.042 GB, free: 11.45 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.8189, allocations: 15.88 kB / 1.042 GB, free: 11.43 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001024/0.8199, allocations: 1.401 MB / 1.043 GB, free: 9.895 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.82, allocations: 12.03 kB / 1.043 GB, free: 9.883 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009482/0.8209, allocations: 0.5583 MB / 1.044 GB, free: 9.297 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.8211, allocations: 132.9 kB / 1.044 GB, free: 9.148 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.8211, allocations: 8 kB / 1.044 GB, free: 9.141 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002788/0.8214, allocations: 39.95 kB / 1.044 GB, free: 9.102 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.529e-05/0.8215, allocations: 35.88 kB / 1.044 GB, free: 9.066 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.96e-05/0.8215, allocations: 12 kB / 1.044 GB, free: 9.055 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001561/0.8217, allocations: 172.5 kB / 1.044 GB, free: 8.887 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8217, allocations: 0 / 1.044 GB, free: 8.887 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006088/0.8223, allocations: 132 kB / 1.044 GB, free: 8.758 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001981/0.8225, allocations: 119.1 kB / 1.044 GB, free: 8.633 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001785/0.8243, allocations: 1.013 MB / 1.045 GB, free: 7.57 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.8243, allocations: 0 / 1.045 GB, free: 7.57 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000585/0.8249, allocations: 342.8 kB / 1.046 GB, free: 7.223 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004517/0.8254, allocations: 48.86 kB / 1.046 GB, free: 7.176 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.8266, allocations: 0.7371 MB / 1.046 GB, free: 6.402 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.8269, allocations: 0.78 MB / 1.047 GB, free: 5.598 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002994/0.8272, allocations: 98.2 kB / 1.047 GB, free: 5.504 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.93e-05/0.8273, allocations: 27.42 kB / 1.047 GB, free: 5.477 MB / 0.795 GB Notification: Performance of SimCode: time 2.8e-07/0.8273, allocations: 0 / 1.047 GB, free: 5.477 MB / 0.795 GB Notification: Performance of Templates: time 0.008291/0.8356, allocations: 4.035 MB / 1.051 GB, free: 1.473 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches