Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001149/0.001149, allocations: 92.16 kB / 16.02 MB, free: 76 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.001681/0.001681, allocations: 182.9 kB / 16.92 MB, free: 6.926 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.46/1.46, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.823/2.823, allocations: 462.6 MB / 0.737 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004006/0.0004008, allocations: 8.906 kB / 0.9034 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2955, allocations: 159.6 MB / 1.059 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003681/0.2993, allocations: 2.713 MB / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003118/0.3024, allocations: 1.893 MB / 1.064 GB, free: 376 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002052/0.3027, allocations: 4 kB / 1.064 GB, free: 372 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001929/0.3029, allocations: 31.72 kB / 1.064 GB, free: 340 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006264/0.3035, allocations: 203.2 kB / 1.064 GB, free: 136 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006679/0.3042, allocations: 227.5 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005642/0.3048, allocations: 498.6 kB / 1.065 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008476/0.3056, allocations: 410.6 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002842/0.3059, allocations: 131.5 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000374/0.3063, allocations: 171.3 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.728e-05/0.3064, allocations: 16 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005759/0.307, allocations: 335.3 kB / 1.066 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.3071, allocations: 91.72 kB / 1.066 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.3073, allocations: 149 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006693/0.308, allocations: 367.3 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.308, allocations: 0 / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.114e-06/0.308, allocations: 0 / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.483e-05/0.308, allocations: 0 / 1.066 GB, free: 13.76 MB / 0.8262 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.001479/0.3095, allocations: 0.6034 MB / 1.067 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.3096, allocations: 11.97 kB / 1.067 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001103/0.3107, allocations: 120.4 kB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003933/0.3111, allocations: 287.7 kB / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.3111, allocations: 16.81 kB / 1.067 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.381e-05/0.3112, allocations: 16.38 kB / 1.067 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008886/0.3121, allocations: 442.8 kB / 1.068 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.3121, allocations: 0 / 1.068 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/0.3122, allocations: 8 kB / 1.068 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.996e-05/0.3122, allocations: 24.36 kB / 1.068 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.3132, allocations: 432.8 kB / 1.068 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.3152, allocations: 1.642 MB / 1.07 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.3166, allocations: 0.5009 MB / 1.07 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004898/0.3171, allocations: 213.5 kB / 1.071 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/0.3172, allocations: 89.09 kB / 1.071 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006134/0.3178, allocations: 291.2 kB / 1.071 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 2.274e-06/0.3179, allocations: 0 / 1.071 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.002096/0.32, allocations: 0.804 MB / 1.072 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.32, allocations: 81.11 kB / 1.072 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.3202, allocations: 221 kB / 1.072 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.772e-05/0.3203, allocations: 33.7 kB / 1.072 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.3204, allocations: 172.2 kB / 1.072 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.079e-05/0.3205, allocations: 94.66 kB / 1.072 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.148e-05/0.3206, allocations: 37.7 kB / 1.072 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.3207, allocations: 326.8 kB / 1.073 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004812/0.3212, allocations: 192.2 kB / 1.073 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005133/0.3217, allocations: 269.2 kB / 1.073 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.3227, allocations: 495.9 kB / 1.074 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3227, allocations: 3.938 kB / 1.074 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001301/0.324, allocations: 0.5827 MB / 1.074 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.3242, allocations: 183 kB / 1.074 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3242, allocations: 4 kB / 1.074 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002275/0.3244, allocations: 36.83 kB / 1.074 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004538/0.3249, allocations: 95.86 kB / 1.074 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/0.3266, allocations: 1.501 MB / 1.076 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004042/0.327, allocations: 55.83 kB / 1.076 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.908e-05/0.327, allocations: 15.98 kB / 1.076 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.3271, allocations: 4 kB / 1.076 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001224/0.3283, allocations: 0.5099 MB / 1.076 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3283, allocations: 0 / 1.076 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/0.3285, allocations: 40.98 kB / 1.076 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003967/0.3289, allocations: 95.8 kB / 1.077 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.3301, allocations: 1.489 MB / 1.078 GB, free: 1.008 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003528/0.3305, allocations: 51.8 kB / 1.078 GB, free: 0.957 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.3305, allocations: 12 kB / 1.078 GB, free: 0.9453 MB / 0.8262 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.0002424/0.3307, allocations: 237 kB / 1.078 GB, free: 0.7031 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.808e-05/0.3308, allocations: 35.58 kB / 1.078 GB, free: 0.668 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001165/0.332, allocations: 496.6 kB / 1.079 GB, free: 176 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.332, allocations: 4 kB / 1.079 GB, free: 172 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.332, allocations: 7.938 kB / 1.079 GB, free: 164 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.332, allocations: 3.984 kB / 1.079 GB, free: 160 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006935/0.3327, allocations: 0.57 MB / 1.079 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3327, allocations: 4 kB / 1.079 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003763/0.3331, allocations: 75.92 kB / 1.079 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001331/0.3333, allocations: 40.86 kB / 1.079 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.3333, allocations: 12 kB / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.3344, allocations: 1.409 MB / 1.081 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3344, allocations: 8 kB / 1.081 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.3355, allocations: 0.5653 MB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.3356, allocations: 136.7 kB / 1.082 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.483e-05/0.3357, allocations: 12 kB / 1.082 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.3361, allocations: 43.94 kB / 1.082 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.3362, allocations: 31.91 kB / 1.082 GB, free: 13 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.3362, allocations: 11.98 kB / 1.082 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002105/0.3364, allocations: 180.4 kB / 1.082 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3364, allocations: 4 kB / 1.082 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000642/0.3371, allocations: 135.9 kB / 1.082 GB, free: 12.68 MB / 0.8419 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.0001765/0.3373, allocations: 107.2 kB / 1.082 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002071/0.3393, allocations: 1.025 MB / 1.083 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3394, allocations: 0 / 1.083 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006254/0.34, allocations: 342.7 kB / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004995/0.3405, allocations: 44.97 kB / 1.083 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.3418, allocations: 0.7679 MB / 1.084 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.3423, allocations: 0.7839 MB / 1.085 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001515/0.3425, allocations: 35.42 kB / 1.085 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.3425, allocations: 0 / 1.085 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of Templates: time 0.008848/0.3513, allocations: 5.194 MB / 1.09 GB, free: 4.258 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches