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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00113/0.001131, 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.00953/0.00953, allocations: 171.4 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.41/1.41, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.762/2.762, allocations: 462.7 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003383, allocations: 14.23 kB / 0.9028 GB, free: 36.72 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.389, allocations: 159.6 MB / 1.059 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.005122/0.3942, allocations: 2.721 MB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004328/0.3986, allocations: 1.886 MB / 1.063 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002113/0.3988, allocations: 4 kB / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002838/0.3991, allocations: 31.72 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0008263/0.4, allocations: 207.1 kB / 1.063 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008788/0.4009, allocations: 227.5 kB / 1.064 GB, free: 388 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007184/0.4016, allocations: 494.6 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001032/0.4026, allocations: 414.6 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002849/0.4029, allocations: 131.4 kB / 1.065 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003983/0.4033, allocations: 171.3 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.486e-05/0.4034, allocations: 16 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007333/0.4042, allocations: 343.3 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.4043, allocations: 79.78 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002161/0.4045, allocations: 157 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007746/0.4053, allocations: 482.7 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/0.4053, allocations: 11.92 kB / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.005e-06/0.4053, allocations: 0 / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.142e-06/0.4054, allocations: 0 / 1.066 GB, free: 14.1 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.001545/0.4069, allocations: 0.6021 MB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.982e-05/0.407, allocations: 8.031 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001456/0.4084, allocations: 120.4 kB / 1.067 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005065/0.409, allocations: 275.8 kB / 1.067 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.211e-05/0.409, allocations: 12.81 kB / 1.067 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.958e-05/0.4091, allocations: 24.36 kB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.4103, allocations: 446.8 kB / 1.067 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.4104, allocations: 0 / 1.067 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.294e-05/0.4104, allocations: 8 kB / 1.067 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.092e-05/0.4105, allocations: 24.36 kB / 1.067 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.4119, allocations: 436.7 kB / 1.068 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002592/0.4145, allocations: 1.626 MB / 1.069 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/0.4164, allocations: 0.5009 MB / 1.07 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007061/0.4171, allocations: 217.6 kB / 1.07 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001832/0.4173, allocations: 93.08 kB / 1.07 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000849/0.4181, allocations: 291.1 kB / 1.07 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=27): time 2.765e-06/0.4182, allocations: 0 / 1.07 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28): time 0.002909/0.4211, allocations: 0.8038 MB / 1.071 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.59e-05/0.4212, allocations: 81.11 kB / 1.071 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.4215, allocations: 221 kB / 1.071 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.983e-05/0.4216, allocations: 33.7 kB / 1.071 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.4217, allocations: 168.2 kB / 1.072 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.4219, allocations: 94.64 kB / 1.072 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.149e-05/0.422, allocations: 37.7 kB / 1.072 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001694/0.4221, allocations: 334.8 kB / 1.072 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006753/0.4228, allocations: 184.2 kB / 1.072 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007456/0.4236, allocations: 265.3 kB / 1.072 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.4251, allocations: 498.8 kB / 1.073 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.4251, allocations: 7.938 kB / 1.073 GB, free: 6.309 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0016/0.4267, allocations: 0.5671 MB / 1.074 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001602/0.4269, allocations: 188.8 kB / 1.074 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.4269, allocations: 0 / 1.074 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002736/0.4272, allocations: 48.77 kB / 1.074 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004398/0.4277, allocations: 91.8 kB / 1.074 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.4291, allocations: 1.501 MB / 1.075 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.4295, allocations: 55.86 kB / 1.075 GB, free: 3.668 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.4295, allocations: 15.98 kB / 1.075 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.446e-06/0.4295, allocations: 4 kB / 1.075 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001197/0.4307, allocations: 0.5138 MB / 1.076 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.4308, allocations: 4 kB / 1.076 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001261/0.4309, allocations: 40.83 kB / 1.076 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.4313, allocations: 95.95 kB / 1.076 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.4325, allocations: 1.485 MB / 1.077 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.4328, allocations: 51.83 kB / 1.078 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.4329, allocations: 16 kB / 1.078 GB, free: 1.297 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.0002645/0.4332, allocations: 239.9 kB / 1.078 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.2e-05/0.4332, allocations: 31.72 kB / 1.078 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.4344, allocations: 0.4928 MB / 1.078 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.4344, allocations: 4 kB / 1.078 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.4344, allocations: 0 / 1.078 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.4345, allocations: 3.984 kB / 1.078 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006643/0.4351, allocations: 0.5701 MB / 1.079 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.4351, allocations: 4.094 kB / 1.079 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003865/0.4355, allocations: 79.86 kB / 1.079 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001229/0.4357, allocations: 40.83 kB / 1.079 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.4357, allocations: 0 / 1.079 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.4368, allocations: 1.428 MB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.4368, allocations: 0 / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.4379, allocations: 0.5653 MB / 1.081 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.438, allocations: 132.7 kB / 1.081 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.4381, allocations: 8 kB / 1.081 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003474/0.4384, allocations: 51.94 kB / 1.081 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.4385, allocations: 27.95 kB / 1.081 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.4386, allocations: 12 kB / 1.081 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002106/0.4388, allocations: 180.5 kB / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.424e-06/0.4388, allocations: 0 / 1.081 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006076/0.4394, allocations: 143.8 kB / 1.081 GB, free: 13.03 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.0001892/0.4396, allocations: 107.6 kB / 1.082 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002014/0.4416, allocations: 1.025 MB / 1.083 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4416, allocations: 0 / 1.083 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006117/0.4423, allocations: 346.7 kB / 1.083 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.4427, allocations: 49.27 kB / 1.083 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.444, allocations: 0.7301 MB / 1.084 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.4444, allocations: 0.7878 MB / 1.084 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003274/0.4447, allocations: 98.14 kB / 1.084 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.4448, allocations: 31.42 kB / 1.085 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of SimCode: time 4.5e-07/0.4448, allocations: 0 / 1.085 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of Templates: time 0.008798/0.4536, allocations: 4.414 MB / 1.089 GB, free: 5.348 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/jenkins/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