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.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.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.001054/0.001055, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008533/0.008533, allocations: 169.9 kB / 16.27 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.475/1.475, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.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.548/2.548, allocations: 390.9 MB / 0.6663 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005624/0.0005624, allocations: 12 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9852/0.9858, allocations: 142.4 MB / 0.9551 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003977/0.9898, allocations: 2.711 MB / 0.9577 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003235/0.9931, allocations: 1.884 MB / 0.9595 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003248/0.9934, allocations: 2.781 kB / 0.9595 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002551/0.9937, allocations: 35.7 kB / 0.9596 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008533/0.9946, allocations: 200.2 kB / 0.9598 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008502/0.9954, allocations: 236.7 kB / 0.96 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.00073/0.9962, allocations: 0.4913 MB / 0.9605 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008884/0.9971, allocations: 416.7 kB / 0.9609 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003733/0.9975, allocations: 123.1 kB / 0.961 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004602/0.9979, allocations: 172.9 kB / 0.9612 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.264e-05/0.998, allocations: 12.28 kB / 0.9612 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000734/0.9988, allocations: 338.8 kB / 0.9615 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001539/0.9989, allocations: 89.45 kB / 0.9616 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002564/0.9992, allocations: 149.2 kB / 0.9617 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0008695/1, allocations: 489.9 kB / 0.9622 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/1, allocations: 0 / 0.9622 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.475e-06/1, allocations: 1.344 kB / 0.9622 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.229e-05/1, allocations: 0 / 0.9622 GB, free: 2.453 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.001496/1.002, allocations: 0.6068 MB / 0.9628 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/1.002, allocations: 9.875 kB / 0.9628 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/1.003, allocations: 126.2 kB / 0.9629 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004659/1.003, allocations: 274.4 kB / 0.9632 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/1.003, allocations: 17.05 kB / 0.9632 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.604e-05/1.003, allocations: 22.92 kB / 0.9632 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009951/1.004, allocations: 445.8 kB / 0.9636 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/1.004, allocations: 1.594 kB / 0.9636 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.541e-05/1.005, allocations: 11 kB / 0.9636 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.938e-05/1.005, allocations: 25.36 kB / 0.9637 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/1.006, allocations: 432.8 kB / 0.9641 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/1.008, allocations: 1.627 MB / 0.9657 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/1.009, allocations: 0.4943 MB / 0.9662 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005465/1.01, allocations: 216.3 kB / 0.9664 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001637/1.01, allocations: 99.98 kB / 0.9665 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006904/1.011, allocations: 294.6 kB / 0.9667 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=27): time 2.996e-06/1.011, allocations: 0 / 0.9667 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28): time 0.002422/1.013, allocations: 0.7977 MB / 0.9675 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/1.013, allocations: 85.14 kB / 0.9676 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/1.014, allocations: 230.6 kB / 0.9678 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/1.014, allocations: 31.89 kB / 0.9678 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/1.014, allocations: 161.7 kB / 0.968 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.85e-05/1.014, allocations: 91.27 kB / 0.9681 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.287e-05/1.014, allocations: 35.83 kB / 0.9681 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001529/1.014, allocations: 332.5 kB / 0.9684 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005338/1.015, allocations: 194.6 kB / 0.9686 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005825/1.015, allocations: 254.4 kB / 0.9689 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/1.016, allocations: 497.5 kB / 0.9693 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/1.016, allocations: 1.281 kB / 0.9693 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001587/1.018, allocations: 0.5732 MB / 0.9699 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001826/1.018, allocations: 181.8 kB / 0.9701 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/1.018, allocations: 2.719 kB / 0.9701 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003103/1.019, allocations: 53.97 kB / 0.9701 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004922/1.019, allocations: 87.7 kB / 0.9702 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/1.021, allocations: 1.507 MB / 0.9717 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004749/1.021, allocations: 51.8 kB / 0.9717 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.475e-05/1.021, allocations: 10.38 kB / 0.9717 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/1.021, allocations: 7.906 kB / 0.9717 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00135/1.023, allocations: 0.5177 MB / 0.9723 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/1.023, allocations: 2.344 kB / 0.9723 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001588/1.023, allocations: 49.83 kB / 0.9723 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004387/1.023, allocations: 90.17 kB / 0.9724 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/1.025, allocations: 1.48 MB / 0.9738 GB, free: 9.07 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004207/1.025, allocations: 54.33 kB / 0.9739 GB, free: 9.043 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.464e-05/1.025, allocations: 18.8 kB / 0.9739 GB, free: 9.035 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.0003564/1.026, allocations: 230.6 kB / 0.9741 GB, free: 8.82 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.079e-05/1.026, allocations: 27.66 kB / 0.9742 GB, free: 8.805 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001438/1.027, allocations: 0.5014 MB / 0.9746 GB, free: 8.523 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/1.027, allocations: 3.094 kB / 0.9746 GB, free: 8.523 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/1.027, allocations: 5.625 kB / 0.9746 GB, free: 8.52 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/1.027, allocations: 7.875 kB / 0.9747 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008509/1.028, allocations: 0.5719 MB / 0.9752 GB, free: 7.996 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/1.028, allocations: 1.125 kB / 0.9752 GB, free: 7.996 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004091/1.029, allocations: 84.11 kB / 0.9753 GB, free: 7.969 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001426/1.029, allocations: 41.91 kB / 0.9753 GB, free: 7.941 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/1.029, allocations: 2.781 kB / 0.9753 GB, free: 7.941 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001414/1.03, allocations: 1.414 MB / 0.9767 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.03, allocations: 1.375 kB / 0.9767 GB, free: 6.523 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/1.032, allocations: 0.5634 MB / 0.9773 GB, free: 6.164 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002223/1.032, allocations: 138.8 kB / 0.9774 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.521e-05/1.032, allocations: 6.438 kB / 0.9774 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/1.032, allocations: 42.14 kB / 0.9775 GB, free: 6.008 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/1.032, allocations: 32.64 kB / 0.9775 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/1.032, allocations: 10.06 kB / 0.9775 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002855/1.033, allocations: 185.5 kB / 0.9777 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.3e-07/1.033, allocations: 0 / 0.9777 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008945/1.034, allocations: 130.4 kB / 0.9778 GB, free: 5.836 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.0002554/1.034, allocations: 123.8 kB / 0.9779 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002474/1.036, allocations: 1.022 MB / 0.9789 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.036, allocations: 0 / 0.9789 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000703/1.037, allocations: 335 kB / 0.9792 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005335/1.038, allocations: 54.17 kB / 0.9793 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001828/1.04, allocations: 0.7376 MB / 0.98 GB, free: 4.277 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005984/1.04, allocations: 0.7836 MB / 0.9808 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0004329/1.041, allocations: 99.03 kB / 0.9809 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/1.041, allocations: 23.56 kB / 0.9809 GB, free: 3.484 MB / 0.7325 GB Notification: Performance of SimCode: time 1.754e-06/1.041, allocations: 0 / 0.9809 GB, free: 3.484 MB / 0.7325 GB Notification: Performance of Templates: time 0.01005/1.051, allocations: 4.406 MB / 0.9852 GB, free: 15.28 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/jenkins/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