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.0009645/0.0009647, allocations: 96.14 kB / 16.03 MB, free: 68 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.001547/0.001547, allocations: 185.5 kB / 16.92 MB, free: 6.691 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.363 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.652/2.652, allocations: 437.8 MB / 0.7128 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004282/0.0004284, allocations: 8 kB / 0.8735 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.712/0.7124, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource): time 0.004821/0.7173, allocations: 3.241 MB / 1.027 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003461/0.7208, allocations: 1.871 MB / 1.029 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002551/0.7211, allocations: 7.938 kB / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002515/0.7213, allocations: 39.7 kB / 1.029 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0008019/0.7221, allocations: 191.2 kB / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008307/0.723, allocations: 235.2 kB / 1.029 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007021/0.7237, allocations: 0.4986 MB / 1.03 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009077/0.7246, allocations: 410.6 kB / 1.03 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003243/0.725, allocations: 123.5 kB / 1.03 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004467/0.7254, allocations: 175.3 kB / 1.03 GB, free: 9.059 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.521e-05/0.7255, allocations: 16 kB / 1.03 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006802/0.7262, allocations: 343.3 kB / 1.031 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001516/0.7263, allocations: 79.77 kB / 1.031 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000206/0.7266, allocations: 157 kB / 1.031 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006052/0.7272, allocations: 365 kB / 1.031 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.7272, allocations: 3.984 kB / 1.031 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.843e-06/0.7272, allocations: 0 / 1.031 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.601e-05/0.7272, allocations: 0 / 1.031 GB, free: 8.109 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.001393/0.7286, allocations: 0.6059 MB / 1.032 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.7287, allocations: 8.031 kB / 1.032 GB, free: 7.441 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00108/0.7298, allocations: 116.4 kB / 1.032 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.7302, allocations: 279.8 kB / 1.032 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.7302, allocations: 12.81 kB / 1.032 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.159e-05/0.7303, allocations: 24.38 kB / 1.032 GB, free: 6.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009676/0.7313, allocations: 438.8 kB / 1.033 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.7313, allocations: 3.906 kB / 1.033 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.249e-05/0.7314, allocations: 11.98 kB / 1.033 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.307e-05/0.7314, allocations: 36.23 kB / 1.033 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.7325, allocations: 428.8 kB / 1.033 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.7346, allocations: 1.634 MB / 1.035 GB, free: 4.293 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.736, allocations: 0.4932 MB / 1.035 GB, free: 3.781 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005084/0.7366, allocations: 213.6 kB / 1.035 GB, free: 3.566 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/0.7367, allocations: 85.09 kB / 1.035 GB, free: 3.465 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006389/0.7374, allocations: 290.5 kB / 1.036 GB, free: 3.16 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=27): time 3.016e-06/0.7374, allocations: 4 kB / 1.036 GB, free: 3.156 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.002205/0.7396, allocations: 0.8016 MB / 1.037 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.7397, allocations: 81.11 kB / 1.037 GB, free: 2.23 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.7399, allocations: 229 kB / 1.037 GB, free: 1.992 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.469e-05/0.74, allocations: 29.7 kB / 1.037 GB, free: 1.957 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.7401, allocations: 176.3 kB / 1.037 GB, free: 1.781 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.93e-05/0.7402, allocations: 94.64 kB / 1.037 GB, free: 1.688 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.511e-05/0.7403, allocations: 29.7 kB / 1.037 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.7405, allocations: 338.8 kB / 1.037 GB, free: 1.312 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005008/0.741, allocations: 184.2 kB / 1.038 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005392/0.7415, allocations: 269.3 kB / 1.038 GB, free: 0.8398 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.7426, allocations: 490.4 kB / 1.038 GB, free: 332 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.7426, allocations: 0 / 1.038 GB, free: 332 kB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001363/0.7439, allocations: 0.5725 MB / 1.039 GB, free: 15.74 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001534/0.7441, allocations: 187 kB / 1.039 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.7441, allocations: 7.938 kB / 1.039 GB, free: 15.51 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002376/0.7444, allocations: 36.83 kB / 1.039 GB, free: 15.47 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004558/0.7448, allocations: 95.86 kB / 1.039 GB, free: 15.38 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.7463, allocations: 1.505 MB / 1.041 GB, free: 13.73 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004049/0.7467, allocations: 51.8 kB / 1.041 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.331e-05/0.7468, allocations: 23.92 kB / 1.041 GB, free: 13.66 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.892e-06/0.7468, allocations: 0 / 1.041 GB, free: 13.66 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001231/0.748, allocations: 0.5099 MB / 1.041 GB, free: 13.14 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.7481, allocations: 4 kB / 1.041 GB, free: 13.13 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00015/0.7482, allocations: 44.98 kB / 1.041 GB, free: 13.09 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004082/0.7486, allocations: 91.8 kB / 1.041 GB, free: 13 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.7499, allocations: 1.485 MB / 1.043 GB, free: 11.38 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.7503, allocations: 55.8 kB / 1.043 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/0.7504, allocations: 16.06 kB / 1.043 GB, free: 11.3 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.0002671/0.7506, allocations: 241.5 kB / 1.043 GB, free: 11.06 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-05/0.7507, allocations: 27.66 kB / 1.043 GB, free: 11.03 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001229/0.7519, allocations: 0.4973 MB / 1.044 GB, free: 10.53 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.752, allocations: 4 kB / 1.044 GB, free: 10.52 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.752, allocations: 3.984 kB / 1.044 GB, free: 10.52 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.752, allocations: 0 / 1.044 GB, free: 10.52 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007511/0.7527, allocations: 0.5701 MB / 1.044 GB, free: 9.887 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.7528, allocations: 0 / 1.044 GB, free: 9.887 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003982/0.7532, allocations: 83.86 kB / 1.044 GB, free: 9.805 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001349/0.7533, allocations: 36.92 kB / 1.044 GB, free: 9.766 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.7533, allocations: 8 kB / 1.044 GB, free: 9.758 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/0.7545, allocations: 1.413 MB / 1.046 GB, free: 8.211 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.7545, allocations: 8.094 kB / 1.046 GB, free: 8.203 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.7557, allocations: 0.566 MB / 1.046 GB, free: 7.609 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.7559, allocations: 132.7 kB / 1.046 GB, free: 7.461 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.961e-05/0.7559, allocations: 4 kB / 1.046 GB, free: 7.457 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003796/0.7563, allocations: 47.94 kB / 1.046 GB, free: 7.41 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.7565, allocations: 31.95 kB / 1.047 GB, free: 7.379 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.7565, allocations: 12 kB / 1.047 GB, free: 7.367 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002345/0.7567, allocations: 180.5 kB / 1.047 GB, free: 7.191 MB / 0.795 GB Notification: Performance of sort global known variables: time 2e-07/0.7568, allocations: 3.938 kB / 1.047 GB, free: 7.188 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006563/0.7574, allocations: 131.9 kB / 1.047 GB, free: 7.059 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.0001931/0.7576, allocations: 107.8 kB / 1.047 GB, free: 6.945 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002128/0.7598, allocations: 1.029 MB / 1.048 GB, free: 5.867 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.7598, allocations: 3.938 kB / 1.048 GB, free: 5.863 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0007432/0.7605, allocations: 343.3 kB / 1.048 GB, free: 5.516 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005269/0.7611, allocations: 57.03 kB / 1.048 GB, free: 5.465 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.7626, allocations: 0.7638 MB / 1.049 GB, free: 4.656 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004288/0.763, allocations: 0.7916 MB / 1.05 GB, free: 3.84 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.7631, allocations: 35.36 kB / 1.05 GB, free: 3.805 MB / 0.795 GB Notification: Performance of SimCode: time 4.91e-07/0.7632, allocations: 0 / 1.05 GB, free: 3.805 MB / 0.795 GB Notification: Performance of Templates: time 0.009736/0.7729, allocations: 5.184 MB / 1.055 GB, free: 14.62 MB / 0.8106 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/jenkins1/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