Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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_1.6_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.0008956/0.0008955, allocations: 97.95 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.005855/0.005855, allocations: 168.8 kB / 16.26 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.366/1.366, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.881/2.881, allocations: 473.4 MB / 0.7469 GB, free: 6.023 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003983/0.0003983, allocations: 9.094 kB / 0.9158 GB, free: 33.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3687, allocations: 162.2 MB / 1.074 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003806/0.3726, allocations: 2.715 MB / 1.077 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00347/0.3761, allocations: 1.882 MB / 1.079 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001742/0.3763, allocations: 7.938 kB / 1.079 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000217/0.3765, allocations: 39.64 kB / 1.079 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005945/0.3771, allocations: 199.2 kB / 1.079 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006241/0.3778, allocations: 223.5 kB / 1.079 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005042/0.3783, allocations: 0.5023 MB / 1.08 GB, free: 1.918 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007941/0.3791, allocations: 398.6 kB / 1.08 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002214/0.3793, allocations: 139.5 kB / 1.08 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003105/0.3796, allocations: 179.3 kB / 1.08 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.29e-05/0.3797, allocations: 12 kB / 1.08 GB, free: 1.188 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000504/0.3802, allocations: 331.4 kB / 1.081 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.3803, allocations: 79.78 kB / 1.081 GB, free: 0.7852 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.3805, allocations: 156.9 kB / 1.081 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005357/0.381, allocations: 486.7 kB / 1.081 GB, free: 152 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.381, allocations: 4 kB / 1.081 GB, free: 148 kB / 0.8262 GB Notification: Performance of FrontEnd: time 2.354e-06/0.381, allocations: 0 / 1.081 GB, free: 148 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3811, allocations: 0 / 1.081 GB, free: 148 kB / 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.001201/0.3823, allocations: 0.6059 MB / 1.082 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.3823, allocations: 8.031 kB / 1.082 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009284/0.3833, allocations: 120.5 kB / 1.082 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000332/0.3836, allocations: 289.5 kB / 1.082 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.3836, allocations: 16.81 kB / 1.082 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.979e-05/0.3837, allocations: 16.38 kB / 1.082 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008642/0.3846, allocations: 442.8 kB / 1.083 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.3846, allocations: 7.984 kB / 1.083 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.812e-05/0.3846, allocations: 8 kB / 1.083 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.835e-05/0.3847, allocations: 24.36 kB / 1.083 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.3857, allocations: 432.7 kB / 1.083 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.3877, allocations: 1.63 MB / 1.085 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.3891, allocations: 0.4892 MB / 1.085 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004887/0.3896, allocations: 209.6 kB / 1.085 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001614/0.3898, allocations: 93.09 kB / 1.086 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006197/0.3904, allocations: 294.4 kB / 1.086 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=27): time 2.074e-06/0.3904, allocations: 0 / 1.086 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28): time 0.002074/0.3925, allocations: 0.8042 MB / 1.087 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.3925, allocations: 85.3 kB / 1.087 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002247/0.3928, allocations: 224.9 kB / 1.087 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.956e-05/0.3928, allocations: 33.7 kB / 1.087 GB, free: 9.98 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.393, allocations: 160.4 kB / 1.087 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.294e-05/0.393, allocations: 94.64 kB / 1.087 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.185e-05/0.3931, allocations: 41.64 kB / 1.087 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001986/0.3933, allocations: 330.8 kB / 1.088 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005173/0.3938, allocations: 192.2 kB / 1.088 GB, free: 9.16 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005055/0.3944, allocations: 261.3 kB / 1.088 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000986/0.3953, allocations: 492.2 kB / 1.088 GB, free: 8.359 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3954, allocations: 0 / 1.088 GB, free: 8.359 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001288/0.3967, allocations: 0.5788 MB / 1.089 GB, free: 7.766 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001384/0.3968, allocations: 183.1 kB / 1.089 GB, free: 7.547 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3968, allocations: 0 / 1.089 GB, free: 7.547 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002555/0.3971, allocations: 52.75 kB / 1.089 GB, free: 7.492 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004451/0.3975, allocations: 91.86 kB / 1.089 GB, free: 7.402 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.3989, allocations: 1.505 MB / 1.091 GB, free: 5.762 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003848/0.3993, allocations: 55.8 kB / 1.091 GB, free: 5.707 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.107e-05/0.3993, allocations: 16.06 kB / 1.091 GB, free: 5.691 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.114e-06/0.3993, allocations: 4 kB / 1.091 GB, free: 5.688 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001194/0.4005, allocations: 0.5138 MB / 1.091 GB, free: 5.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.4005, allocations: 3.984 kB / 1.091 GB, free: 5.16 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001297/0.4007, allocations: 36.83 kB / 1.091 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004013/0.4011, allocations: 95.8 kB / 1.091 GB, free: 5.027 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/0.4023, allocations: 1.493 MB / 1.093 GB, free: 3.395 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000345/0.4026, allocations: 51.86 kB / 1.093 GB, free: 3.344 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.4027, allocations: 19.98 kB / 1.093 GB, free: 3.324 MB / 0.8419 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.0002505/0.4029, allocations: 233.3 kB / 1.093 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-05/0.403, allocations: 27.66 kB / 1.093 GB, free: 3.059 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.4042, allocations: 0.4927 MB / 1.094 GB, free: 2.551 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.4042, allocations: 8 kB / 1.094 GB, free: 2.543 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4042, allocations: 4 kB / 1.094 GB, free: 2.539 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.4042, allocations: 3.984 kB / 1.094 GB, free: 2.535 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000688/0.4049, allocations: 0.5583 MB / 1.094 GB, free: 1.914 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.4049, allocations: 4 kB / 1.094 GB, free: 1.91 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000379/0.4053, allocations: 87.94 kB / 1.094 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001159/0.4054, allocations: 36.89 kB / 1.094 GB, free: 1.785 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.4055, allocations: 8 kB / 1.094 GB, free: 1.777 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/0.4065, allocations: 1.428 MB / 1.096 GB, free: 220 kB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4066, allocations: 0 / 1.096 GB, free: 220 kB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.4076, allocations: 0.5693 MB / 1.096 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.4078, allocations: 136.7 kB / 1.097 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.463e-05/0.4078, allocations: 8 kB / 1.097 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003489/0.4082, allocations: 47.94 kB / 1.097 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.4083, allocations: 23.97 kB / 1.097 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.763e-05/0.4083, allocations: 11.98 kB / 1.097 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002175/0.4086, allocations: 176.5 kB / 1.097 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4086, allocations: 0 / 1.097 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005964/0.4092, allocations: 135.9 kB / 1.097 GB, free: 15.07 MB / 0.8575 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.0001869/0.4094, allocations: 128.4 kB / 1.097 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001995/0.4114, allocations: 1.017 MB / 1.098 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4114, allocations: 4 kB / 1.098 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006131/0.412, allocations: 351.1 kB / 1.098 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004933/0.4125, allocations: 44.59 kB / 1.098 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.4138, allocations: 0.7238 MB / 1.099 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.4141, allocations: 0.7839 MB / 1.1 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003327/0.4145, allocations: 102.2 kB / 1.1 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.4146, allocations: 27.44 kB / 1.1 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of SimCode: time 2.81e-07/0.4146, allocations: 0 / 1.1 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of Templates: time 0.008858/0.4235, allocations: 4.395 MB / 1.104 GB, free: 7.391 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)