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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.168/2.168, allocations: 391.2 MB / 407 MB, free: 10.88 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001956/0.001956, allocations: 197.5 kB / 499.1 MB, free: 4.676 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 222.9 MB / 0.7948 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 101.9 kB / 0.9329 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 57.39 kB / 1.081 GB, free: 218.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3731/0.3742, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.004701/0.379, allocations: 3.077 MB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.003066/0.3821, allocations: 1.745 MB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003075/0.3824, allocations: 4 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.000931/0.3834, allocations: 227.2 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0006934/0.3841, allocations: 175.2 kB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008001/0.3849, allocations: 235.5 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0006012/0.3856, allocations: 498.6 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004908/0.3861, allocations: 209.8 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003083/0.3864, allocations: 143.4 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003653/0.3868, allocations: 179.4 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 5.566e-05/0.3868, allocations: 16 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005424/0.3874, allocations: 315.4 kB / 1.225 GB, free: 110.4 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.3875, allocations: 91.7 kB / 1.225 GB, free: 110.3 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001913/0.3877, allocations: 131.3 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0006775/0.3884, allocations: 476.5 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.3884, allocations: 4 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3884, allocations: 0 / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.57e-05/0.3885, allocations: 0 / 1.225 GB, free: 109.7 MB / 0.823 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.001403/0.3899, allocations: 0.6421 MB / 1.226 GB, free: 109 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.3899, allocations: 15.98 kB / 1.226 GB, free: 109 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007581/0.3907, allocations: 96.45 kB / 1.226 GB, free: 108.9 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/0.3911, allocations: 275.5 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.036e-05/0.3911, allocations: 20.8 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.387e-05/0.3912, allocations: 20.31 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007406/0.3919, allocations: 414.9 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.3919, allocations: 3.938 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.392, allocations: 12 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.056e-05/0.392, allocations: 20.36 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007861/0.3928, allocations: 396.5 kB / 1.227 GB, free: 107.7 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001622/0.3945, allocations: 1.611 MB / 1.229 GB, free: 106 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.3955, allocations: 467.4 kB / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003869/0.3959, allocations: 193.5 kB / 1.229 GB, free: 105.3 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001465/0.3961, allocations: 89.09 kB / 1.23 GB, free: 105.2 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004956/0.3966, allocations: 273.3 kB / 1.23 GB, free: 104.9 MB / 0.823 GB Notification: Performance of pre-optimization done (n=27): time 2.485e-06/0.3966, allocations: 0 / 1.23 GB, free: 104.9 MB / 0.823 GB Notification: Performance of matching and sorting (n=28): time 0.00177/0.3984, allocations: 0.7413 MB / 1.231 GB, free: 104.1 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.3984, allocations: 85.09 kB / 1.231 GB, free: 104 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001797/0.3986, allocations: 221 kB / 1.231 GB, free: 103.8 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.3987, allocations: 37.83 kB / 1.231 GB, free: 103.8 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 8.03e-05/0.3987, allocations: 168.3 kB / 1.231 GB, free: 103.6 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 6.037e-05/0.3988, allocations: 94.64 kB / 1.231 GB, free: 103.5 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.3989, allocations: 65.69 kB / 1.231 GB, free: 103.4 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.18e-05/0.399, allocations: 334.8 kB / 1.231 GB, free: 103.1 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003649/0.3994, allocations: 173.1 kB / 1.232 GB, free: 102.9 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004011/0.3998, allocations: 251 kB / 1.232 GB, free: 102.6 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007742/0.4006, allocations: 463.9 kB / 1.232 GB, free: 102.2 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.4006, allocations: 0 / 1.232 GB, free: 102.2 MB / 0.823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009887/0.4016, allocations: 0.528 MB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.796e-05/0.4016, allocations: 33.7 kB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.4017, allocations: 4 kB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002403/0.4019, allocations: 44.75 kB / 1.233 GB, free: 101.5 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003581/0.4023, allocations: 84.06 kB / 1.233 GB, free: 101.4 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.4034, allocations: 1.493 MB / 1.234 GB, free: 99.81 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000358/0.4038, allocations: 47.86 kB / 1.234 GB, free: 99.76 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.502e-05/0.4039, allocations: 16 kB / 1.235 GB, free: 99.75 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004228/0.4043, allocations: 277.4 kB / 1.235 GB, free: 99.47 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003541/0.4047, allocations: 238.6 kB / 1.235 GB, free: 99.21 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006859/0.4054, allocations: 436 kB / 1.235 GB, free: 98.74 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.547e-06/0.4054, allocations: 0 / 1.235 GB, free: 98.74 MB / 0.823 GB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.00096/0.4063, allocations: 0.5085 MB / 1.236 GB, free: 98.22 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.4064, allocations: 37.69 kB / 1.236 GB, free: 98.18 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.4064, allocations: 7.938 kB / 1.236 GB, free: 98.17 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001349/0.4065, allocations: 40.77 kB / 1.236 GB, free: 98.12 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000326/0.4069, allocations: 83.86 kB / 1.236 GB, free: 98.04 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009838/0.4079, allocations: 1.489 MB / 1.238 GB, free: 96.42 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.4082, allocations: 47.78 kB / 1.238 GB, free: 96.37 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.4082, allocations: 16.06 kB / 1.238 GB, free: 96.36 MB / 0.823 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.0001466/0.4084, allocations: 201.5 kB / 1.238 GB, free: 96.15 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.19e-05/0.4084, allocations: 27.7 kB / 1.238 GB, free: 96.12 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009495/0.4094, allocations: 465 kB / 1.238 GB, free: 95.66 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.4094, allocations: 4 kB / 1.238 GB, free: 95.65 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.4094, allocations: 7.938 kB / 1.238 GB, free: 95.64 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.4094, allocations: 3.938 kB / 1.238 GB, free: 95.64 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005588/0.41, allocations: 0.5661 MB / 1.239 GB, free: 95.01 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.41, allocations: 0 / 1.239 GB, free: 95.01 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003393/0.4103, allocations: 79.91 kB / 1.239 GB, free: 94.93 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001148/0.4105, allocations: 32.83 kB / 1.239 GB, free: 94.9 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.883e-05/0.4105, allocations: 11.94 kB / 1.239 GB, free: 94.89 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007764/0.4113, allocations: 1.405 MB / 1.24 GB, free: 93.35 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.4113, allocations: 0 / 1.24 GB, free: 93.35 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00142/0.4127, allocations: 1.333 MB / 1.242 GB, free: 91.95 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.4129, allocations: 136.9 kB / 1.242 GB, free: 91.8 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/0.4129, allocations: 15.94 kB / 1.242 GB, free: 91.78 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002882/0.4132, allocations: 31.95 kB / 1.242 GB, free: 91.75 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.4133, allocations: 31.94 kB / 1.242 GB, free: 91.72 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/0.4134, allocations: 12 kB / 1.242 GB, free: 91.71 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001351/0.4135, allocations: 172.5 kB / 1.242 GB, free: 91.54 MB / 0.823 GB Notification: Performance of sort global known variables: time 3.31e-07/0.4135, allocations: 0 / 1.242 GB, free: 91.54 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0007942/0.4143, allocations: 136 kB / 1.242 GB, free: 91.41 MB / 0.823 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.0001811/0.4145, allocations: 107.2 kB / 1.242 GB, free: 91.29 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001727/0.4162, allocations: 0.9854 MB / 1.243 GB, free: 90.26 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4163, allocations: 0 / 1.243 GB, free: 90.26 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0005181/0.4168, allocations: 330.3 kB / 1.244 GB, free: 89.92 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004403/0.4172, allocations: 53.22 kB / 1.244 GB, free: 89.87 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.4185, allocations: 0.9248 MB / 1.244 GB, free: 88.9 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002389/0.4187, allocations: 0.7956 MB / 1.245 GB, free: 88.08 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0002844/0.419, allocations: 90.2 kB / 1.245 GB, free: 87.98 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.323e-05/0.4191, allocations: 27.42 kB / 1.245 GB, free: 87.96 MB / 0.823 GB Notification: Performance of SimCode: time 9.41e-07/0.4191, allocations: 4 kB / 1.245 GB, free: 87.95 MB / 0.823 GB Notification: Performance of Templates: time 0.007985/0.4271, allocations: 4.392 MB / 1.25 GB, free: 83.58 MB / 0.823 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 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)