Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.0009557/0.0009559, allocations: 92.16 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.001205/0.001205, allocations: 173 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.446/1.446, allocations: 223.3 MB / 241 MB, free: 5.32 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.76/2.76, allocations: 437.8 MB / 0.7128 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004258/0.0004261, allocations: 19.98 kB / 0.8735 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6996/0.7001, allocations: 153.8 MB / 1.024 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.00375/0.7039, allocations: 2.715 MB / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002884/0.7068, allocations: 1.871 MB / 1.028 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.7069, allocations: 7.938 kB / 1.028 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.7071, allocations: 35.7 kB / 1.028 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005024/0.7076, allocations: 203.2 kB / 1.028 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005733/0.7082, allocations: 227.5 kB / 1.029 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000507/0.7087, allocations: 0.4986 MB / 1.029 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007886/0.7095, allocations: 410.6 kB / 1.03 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000213/0.7097, allocations: 123.5 kB / 1.03 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002968/0.71, allocations: 175.3 kB / 1.03 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.61e-05/0.7101, allocations: 12 kB / 1.03 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004847/0.7106, allocations: 343.3 kB / 1.03 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.7107, allocations: 79.77 kB / 1.03 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001466/0.7108, allocations: 153 kB / 1.03 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004013/0.7112, allocations: 365.2 kB / 1.031 GB, free: 8.801 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.7113, allocations: 4 kB / 1.031 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.935e-06/0.7113, allocations: 7.922 kB / 1.031 GB, free: 8.789 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.7113, allocations: 0 / 1.031 GB, free: 8.789 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.001039/0.7123, allocations: 0.6155 MB / 1.031 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.7124, allocations: 11.98 kB / 1.031 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009809/0.7134, allocations: 112.4 kB / 1.031 GB, free: 8 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003259/0.7137, allocations: 279.8 kB / 1.032 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.7137, allocations: 12.81 kB / 1.032 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.131e-05/0.7138, allocations: 24.38 kB / 1.032 GB, free: 7.652 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008403/0.7146, allocations: 442.8 kB / 1.032 GB, free: 7.195 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.7147, allocations: 0 / 1.032 GB, free: 7.195 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.98e-05/0.7147, allocations: 11.98 kB / 1.032 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-05/0.7148, allocations: 28.3 kB / 1.032 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.7158, allocations: 432.8 kB / 1.033 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.7176, allocations: 1.626 MB / 1.034 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.719, allocations: 0.4994 MB / 1.035 GB, free: 4.461 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004884/0.7195, allocations: 215.2 kB / 1.035 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001393/0.7196, allocations: 85.09 kB / 1.035 GB, free: 4.145 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006079/0.7202, allocations: 291.6 kB / 1.035 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=27): time 1.562e-06/0.7202, allocations: 0 / 1.035 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.002094/0.7223, allocations: 0.804 MB / 1.036 GB, free: 3.008 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/0.7224, allocations: 85.11 kB / 1.036 GB, free: 2.906 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.7226, allocations: 225 kB / 1.036 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.496e-05/0.7227, allocations: 29.7 kB / 1.036 GB, free: 2.637 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.7228, allocations: 172.3 kB / 1.037 GB, free: 2.465 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.708e-05/0.7229, allocations: 86.75 kB / 1.037 GB, free: 2.379 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.544e-05/0.7229, allocations: 29.7 kB / 1.037 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.7231, allocations: 338.8 kB / 1.037 GB, free: 2.004 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004778/0.7235, allocations: 184.2 kB / 1.037 GB, free: 1.824 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005041/0.7241, allocations: 269.3 kB / 1.037 GB, free: 1.531 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009865/0.7251, allocations: 486.4 kB / 1.038 GB, free: 1.02 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.7251, allocations: 0 / 1.038 GB, free: 1.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001297/0.7264, allocations: 0.5764 MB / 1.038 GB, free: 440 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001247/0.7265, allocations: 191 kB / 1.039 GB, free: 208 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.7265, allocations: 4 kB / 1.039 GB, free: 204 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002321/0.7268, allocations: 40.81 kB / 1.039 GB, free: 160 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004549/0.7272, allocations: 95.8 kB / 1.039 GB, free: 64 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.7286, allocations: 1.505 MB / 1.04 GB, free: 14.42 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003824/0.729, allocations: 59.86 kB / 1.04 GB, free: 14.36 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/0.7291, allocations: 23.92 kB / 1.04 GB, free: 14.34 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.55e-06/0.7291, allocations: 0 / 1.04 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001202/0.7303, allocations: 0.5145 MB / 1.041 GB, free: 13.81 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.7303, allocations: 4 kB / 1.041 GB, free: 13.81 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001286/0.7304, allocations: 36.83 kB / 1.041 GB, free: 13.77 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004028/0.7308, allocations: 99.89 kB / 1.041 GB, free: 13.67 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/0.732, allocations: 1.473 MB / 1.042 GB, free: 12.06 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003434/0.7323, allocations: 59.86 kB / 1.042 GB, free: 12 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.7324, allocations: 12 kB / 1.042 GB, free: 11.99 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 (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.0002129/0.7326, allocations: 237.6 kB / 1.043 GB, free: 11.75 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.873e-05/0.7326, allocations: 27.66 kB / 1.043 GB, free: 11.72 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001174/0.7338, allocations: 0.4979 MB / 1.043 GB, free: 11.22 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.7338, allocations: 4 kB / 1.043 GB, free: 11.21 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.7339, allocations: 0 / 1.043 GB, free: 11.21 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.7339, allocations: 3.984 kB / 1.043 GB, free: 11.21 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006213/0.7345, allocations: 0.57 MB / 1.044 GB, free: 10.58 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.7345, allocations: 0 / 1.044 GB, free: 10.58 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003876/0.7349, allocations: 87.95 kB / 1.044 GB, free: 10.49 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001176/0.735, allocations: 32.83 kB / 1.044 GB, free: 10.46 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.7351, allocations: 12.06 kB / 1.044 GB, free: 10.45 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.7361, allocations: 1.409 MB / 1.045 GB, free: 8.902 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.7361, allocations: 4.031 kB / 1.045 GB, free: 8.898 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.7372, allocations: 0.5655 MB / 1.046 GB, free: 8.305 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.7374, allocations: 132.9 kB / 1.046 GB, free: 8.156 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.471e-05/0.7374, allocations: 7.984 kB / 1.046 GB, free: 8.148 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003565/0.7378, allocations: 51.94 kB / 1.046 GB, free: 8.098 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.7379, allocations: 31.95 kB / 1.046 GB, free: 8.066 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.738, allocations: 8 kB / 1.046 GB, free: 8.059 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000211/0.7382, allocations: 184.4 kB / 1.046 GB, free: 7.879 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7382, allocations: 0 / 1.046 GB, free: 7.879 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006117/0.7388, allocations: 135.9 kB / 1.046 GB, free: 7.746 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 (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.000183/0.739, allocations: 111.2 kB / 1.046 GB, free: 7.629 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001975/0.741, allocations: 1.032 MB / 1.047 GB, free: 6.547 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.741, allocations: 0 / 1.047 GB, free: 6.547 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0006145/0.7416, allocations: 342.6 kB / 1.048 GB, free: 6.199 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004829/0.7421, allocations: 53.08 kB / 1.048 GB, free: 6.148 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.7433, allocations: 0.7708 MB / 1.049 GB, free: 5.336 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003426/0.7437, allocations: 0.7839 MB / 1.049 GB, free: 4.527 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.7438, allocations: 31.42 kB / 1.049 GB, free: 4.496 MB / 0.795 GB Notification: Performance of SimCode: time 3.4e-07/0.7438, allocations: 0 / 1.049 GB, free: 4.496 MB / 0.795 GB Notification: Performance of Templates: time 0.007561/0.7514, allocations: 5.204 MB / 1.054 GB, free: 15.3 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches