Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.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_9_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_9_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.001037/0.001037, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 177.5 kB / 16.92 MB, free: 6.652 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.468/1.468, allocations: 223.3 MB / 241 MB, free: 5.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.482/2.482, allocations: 390.9 MB / 0.667 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003777/0.0003778, allocations: 12 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7427/0.7431, allocations: 142.4 MB / 0.9557 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003181/0.7464, allocations: 2.712 MB / 0.9584 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002789/0.7492, allocations: 1.881 MB / 0.9602 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.7494, allocations: 6.688 kB / 0.9602 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.7496, allocations: 35.83 kB / 0.9602 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00051/0.7501, allocations: 191.4 kB / 0.9604 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005414/0.7507, allocations: 243 kB / 0.9607 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004267/0.7511, allocations: 0.4961 MB / 0.9611 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000716/0.7518, allocations: 406 kB / 0.9615 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002323/0.7521, allocations: 138.2 kB / 0.9617 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003019/0.7524, allocations: 172.8 kB / 0.9618 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.554e-05/0.7524, allocations: 12.69 kB / 0.9618 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005263/0.753, allocations: 330.6 kB / 0.9622 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.567e-05/0.7531, allocations: 85.03 kB / 0.9622 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001364/0.7532, allocations: 150.7 kB / 0.9624 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004171/0.7536, allocations: 370.9 kB / 0.9627 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.7536, allocations: 3.938 kB / 0.9627 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.392e-06/0.7536, allocations: 1.156 kB / 0.9627 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.571e-06/0.7537, allocations: 4 kB / 0.9627 GB, free: 2.477 MB / 0.7169 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.001041/0.7547, allocations: 0.5991 MB / 0.9633 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.7548, allocations: 17.22 kB / 0.9633 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009262/0.7557, allocations: 123.3 kB / 0.9635 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.756, allocations: 269.8 kB / 0.9637 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.756, allocations: 21.61 kB / 0.9637 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.495e-05/0.7561, allocations: 18.97 kB / 0.9638 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008301/0.7569, allocations: 449.8 kB / 0.9642 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.757, allocations: 1.125 kB / 0.9642 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.759e-05/0.757, allocations: 6.531 kB / 0.9642 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.557e-05/0.7571, allocations: 25.95 kB / 0.9642 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009609/0.758, allocations: 428.6 kB / 0.9646 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001712/0.7598, allocations: 1.631 MB / 0.9662 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.7611, allocations: 0.497 MB / 0.9667 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005208/0.7617, allocations: 209.2 kB / 0.9669 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.7618, allocations: 96.42 kB / 0.967 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006373/0.7625, allocations: 290.1 kB / 0.9673 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=27): time 2.174e-06/0.7625, allocations: 0.9688 kB / 0.9673 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28): time 0.002179/0.7647, allocations: 0.8047 MB / 0.9681 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.7e-05/0.7647, allocations: 85.23 kB / 0.9681 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.765, allocations: 226.9 kB / 0.9684 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.825e-05/0.765, allocations: 31.67 kB / 0.9684 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.7652, allocations: 161.6 kB / 0.9685 GB, free: 14 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.664e-05/0.7653, allocations: 95.92 kB / 0.9686 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.197e-05/0.7653, allocations: 34.73 kB / 0.9687 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.7655, allocations: 332.9 kB / 0.969 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/0.766, allocations: 190.2 kB / 0.9692 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005285/0.7665, allocations: 259.1 kB / 0.9694 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.7675, allocations: 497.4 kB / 0.9699 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.7676, allocations: 1.031 kB / 0.9699 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00131/0.7689, allocations: 0.5744 MB / 0.9704 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001181/0.769, allocations: 181.6 kB / 0.9706 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.769, allocations: 6.125 kB / 0.9706 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002437/0.7693, allocations: 44.88 kB / 0.9707 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/0.7697, allocations: 92.33 kB / 0.9708 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.7711, allocations: 1.499 MB / 0.9722 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003989/0.7716, allocations: 64.31 kB / 0.9723 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.7716, allocations: 10.59 kB / 0.9723 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.514e-06/0.7716, allocations: 3.906 kB / 0.9723 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00122/0.7728, allocations: 0.5139 MB / 0.9728 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.7729, allocations: 2.312 kB / 0.9728 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001324/0.773, allocations: 46.23 kB / 0.9728 GB, free: 10.61 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004104/0.7734, allocations: 93.66 kB / 0.9729 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/0.7747, allocations: 1.483 MB / 0.9744 GB, free: 9.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003506/0.775, allocations: 54.86 kB / 0.9744 GB, free: 9.078 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.528e-05/0.7751, allocations: 18.98 kB / 0.9745 GB, free: 9.07 MB / 0.7325 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.0002548/0.7754, allocations: 234.5 kB / 0.9747 GB, free: 8.852 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.484e-05/0.7754, allocations: 28.06 kB / 0.9747 GB, free: 8.836 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001216/0.7766, allocations: 0.5087 MB / 0.9752 GB, free: 8.547 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.7767, allocations: 3 kB / 0.9752 GB, free: 8.547 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.7767, allocations: 1.094 kB / 0.9752 GB, free: 8.547 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.7767, allocations: 1.562 kB / 0.9752 GB, free: 8.547 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000694/0.7774, allocations: 0.5635 MB / 0.9758 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.7774, allocations: 1.031 kB / 0.9758 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003974/0.7778, allocations: 87.23 kB / 0.9758 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001243/0.7779, allocations: 34.92 kB / 0.9759 GB, free: 7.988 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/0.778, allocations: 9.953 kB / 0.9759 GB, free: 7.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001102/0.7791, allocations: 1.41 MB / 0.9773 GB, free: 6.566 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.7791, allocations: 5.266 kB / 0.9773 GB, free: 6.562 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.7802, allocations: 0.5629 MB / 0.9778 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.7803, allocations: 144 kB / 0.978 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.51e-05/0.7804, allocations: 6.562 kB / 0.978 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003508/0.7808, allocations: 45.92 kB / 0.978 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.7809, allocations: 28.52 kB / 0.978 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-05/0.7809, allocations: 11.34 kB / 0.978 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002224/0.7811, allocations: 180.9 kB / 0.9782 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.713e-06/0.7811, allocations: 0 / 0.9782 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006481/0.7818, allocations: 137.3 kB / 0.9783 GB, free: 5.867 MB / 0.7325 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 (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 Backend phase and start with SimCode phase: time 0.0001916/0.782, allocations: 125.6 kB / 0.9785 GB, free: 5.758 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002066/0.7841, allocations: 1.021 MB / 0.9795 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.7841, allocations: 4.188 kB / 0.9795 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006221/0.7847, allocations: 333.4 kB / 0.9798 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004821/0.7852, allocations: 53.47 kB / 0.9798 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.7865, allocations: 0.7676 MB / 0.9806 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.7869, allocations: 0.7882 MB / 0.9814 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.787, allocations: 36.39 kB / 0.9814 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.787, allocations: 1.031 kB / 0.9814 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of Templates: time 0.007992/0.795, allocations: 5.188 MB / 0.9865 GB, free: 14.66 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches