Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") translateModel(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0009681/0.0009683, allocations: 107 kB / 17.03 MB, free: 5.699 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.001007/0.001007, allocations: 194.9 kB / 17.97 MB, free: 5.078 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7247/0.7247, allocations: 115.1 MB / 406.9 MB, free: 6.359 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00228/0.00228, allocations: 59.91 kB / 494.8 MB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4407/0.443, allocations: 76.15 MB / 0.5576 GB, free: 36.65 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.007511/0.4506, allocations: 3.012 MB / 0.5605 GB, free: 34.62 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004672/0.4553, allocations: 1.743 MB / 0.5622 GB, free: 33.45 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002289/0.4556, allocations: 5.031 kB / 0.5622 GB, free: 33.45 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.4567, allocations: 236.5 kB / 0.5624 GB, free: 33.3 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007554/0.4575, allocations: 201.7 kB / 0.5626 GB, free: 33.19 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.4586, allocations: 253.7 kB / 0.5629 GB, free: 33.07 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005831/0.4592, allocations: 395.1 kB / 0.5633 GB, free: 32.89 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004907/0.4597, allocations: 208.9 kB / 0.5635 GB, free: 32.83 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003303/0.46, allocations: 154.8 kB / 0.5636 GB, free: 32.76 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004406/0.4605, allocations: 183.2 kB / 0.5638 GB, free: 32.68 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.508e-05/0.4606, allocations: 25.69 kB / 0.5638 GB, free: 32.68 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006307/0.4612, allocations: 255.7 kB / 0.564 GB, free: 32.6 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001792/0.4614, allocations: 101.4 kB / 0.5641 GB, free: 32.55 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002229/0.4616, allocations: 147.8 kB / 0.5643 GB, free: 32.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008196/0.4625, allocations: 471.6 kB / 0.5647 GB, free: 32.31 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4625, allocations: 0.5312 kB / 0.5647 GB, free: 32.31 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4625, allocations: 0.5625 kB / 0.5647 GB, free: 32.31 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.4625, allocations: 1.719 kB / 0.5647 GB, free: 32.31 MB / 446.1 MB 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.001592/0.4641, allocations: 0.6342 MB / 0.5654 GB, free: 31.78 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.4642, allocations: 10.25 kB / 0.5654 GB, free: 31.78 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001364/0.4656, allocations: 94.3 kB / 0.5655 GB, free: 31.76 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004804/0.4661, allocations: 288 kB / 0.5657 GB, free: 31.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/0.4661, allocations: 14.75 kB / 0.5657 GB, free: 31.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.079e-05/0.4662, allocations: 26.28 kB / 0.5658 GB, free: 31.49 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.4674, allocations: 412.4 kB / 0.5662 GB, free: 31.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.4674, allocations: 5.281 kB / 0.5662 GB, free: 31.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.124e-05/0.4675, allocations: 16.03 kB / 0.5662 GB, free: 31.28 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.625e-05/0.4676, allocations: 26.16 kB / 0.5662 GB, free: 31.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.469, allocations: 391.6 kB / 0.5666 GB, free: 31.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.471, allocations: 1.599 MB / 0.5681 GB, free: 29.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.4721, allocations: 458.2 kB / 0.5686 GB, free: 29.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000388/0.4725, allocations: 193.6 kB / 0.5688 GB, free: 29.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/0.4726, allocations: 92.67 kB / 0.5688 GB, free: 29.54 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005273/0.4732, allocations: 269 kB / 0.5691 GB, free: 29.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.4732, allocations: 1.625 kB / 0.5691 GB, free: 29.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=28): time 0.001713/0.4749, allocations: 0.7392 MB / 0.5698 GB, free: 29.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.4749, allocations: 82.2 kB / 0.5699 GB, free: 28.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.4751, allocations: 231.9 kB / 0.5701 GB, free: 28.83 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.4752, allocations: 31.86 kB / 0.5702 GB, free: 28.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.559e-05/0.4753, allocations: 173 kB / 0.5703 GB, free: 28.65 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.022e-05/0.4753, allocations: 87.27 kB / 0.5704 GB, free: 28.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.4754, allocations: 68.42 kB / 0.5705 GB, free: 28.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.295e-05/0.4755, allocations: 336.7 kB / 0.5708 GB, free: 28.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003936/0.4759, allocations: 177.6 kB / 0.571 GB, free: 28.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003975/0.4763, allocations: 241.4 kB / 0.5712 GB, free: 28.03 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007736/0.4771, allocations: 460.1 kB / 0.5716 GB, free: 27.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4771, allocations: 0 / 0.5716 GB, free: 27.79 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00105/0.4782, allocations: 0.5336 MB / 0.5722 GB, free: 27.56 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.262e-05/0.4782, allocations: 37.45 kB / 0.5722 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.4782, allocations: 5.156 kB / 0.5722 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002304/0.4785, allocations: 43.27 kB / 0.5722 GB, free: 27.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.4789, allocations: 85.66 kB / 0.5723 GB, free: 27.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001219/0.4801, allocations: 1.61 MB / 0.5739 GB, free: 26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003199/0.4804, allocations: 47.08 kB / 0.5739 GB, free: 25.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.4805, allocations: 15.91 kB / 0.5739 GB, free: 25.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004462/0.4809, allocations: 274.8 kB / 0.5742 GB, free: 25.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003598/0.4813, allocations: 243.1 kB / 0.5744 GB, free: 25.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007123/0.482, allocations: 432.1 kB / 0.5749 GB, free: 25.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.863e-06/0.482, allocations: 1.094 kB / 0.5749 GB, free: 25.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.0009863/0.483, allocations: 0.5055 MB / 0.5753 GB, free: 25.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.4831, allocations: 34.95 kB / 0.5754 GB, free: 25.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.4831, allocations: 6.688 kB / 0.5754 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001329/0.4832, allocations: 47.11 kB / 0.5754 GB, free: 25.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/0.4836, allocations: 76 kB / 0.5755 GB, free: 25.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009834/0.4845, allocations: 1.61 MB / 0.5771 GB, free: 23.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002862/0.4848, allocations: 46.38 kB / 0.5771 GB, free: 23.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.883e-05/0.4849, allocations: 14.98 kB / 0.5771 GB, free: 23.66 MB / 446.1 MB 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.0001195/0.485, allocations: 204.1 kB / 0.5773 GB, free: 23.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.615e-05/0.4851, allocations: 24.66 kB / 0.5774 GB, free: 23.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/0.4861, allocations: 468.8 kB / 0.5778 GB, free: 23.28 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.4861, allocations: 10.62 kB / 0.5778 GB, free: 23.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.4861, allocations: 1.375 kB / 0.5778 GB, free: 23.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.4861, allocations: 4.844 kB / 0.5778 GB, free: 23.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006109/0.4868, allocations: 0.5735 MB / 0.5784 GB, free: 22.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4868, allocations: 1.25 kB / 0.5784 GB, free: 22.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.4871, allocations: 73.7 kB / 0.5785 GB, free: 22.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001111/0.4873, allocations: 38.92 kB / 0.5785 GB, free: 22.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.651e-05/0.4873, allocations: 7.688 kB / 0.5785 GB, free: 22.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008042/0.4881, allocations: 1.514 MB / 0.58 GB, free: 21.36 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4881, allocations: 5.844 kB / 0.58 GB, free: 21.36 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009032/0.489, allocations: 0.5368 MB / 0.5805 GB, free: 21.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/0.4892, allocations: 137 kB / 0.5806 GB, free: 20.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.506e-05/0.4892, allocations: 12.31 kB / 0.5806 GB, free: 20.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000297/0.4895, allocations: 32.97 kB / 0.5807 GB, free: 20.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.4896, allocations: 32.27 kB / 0.5807 GB, free: 20.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.4897, allocations: 6.938 kB / 0.5807 GB, free: 20.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001373/0.4898, allocations: 175.3 kB / 0.5809 GB, free: 20.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4898, allocations: 0 / 0.5809 GB, free: 20.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005932/0.4904, allocations: 129.3 kB / 0.581 GB, free: 20.8 MB / 446.1 MB 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.0001394/0.4906, allocations: 121.2 kB / 0.5811 GB, free: 20.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.4922, allocations: 0.9674 MB / 0.5821 GB, free: 20.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4922, allocations: 0 / 0.5821 GB, free: 20.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005467/0.4928, allocations: 334.8 kB / 0.5824 GB, free: 19.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000426/0.4932, allocations: 58.08 kB / 0.5824 GB, free: 19.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.4942, allocations: 0.6185 MB / 0.583 GB, free: 19.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.4945, allocations: 0.7859 MB / 0.5838 GB, free: 18.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002632/0.4948, allocations: 90.84 kB / 0.5839 GB, free: 18.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.472e-05/0.4949, allocations: 30.45 kB / 0.5839 GB, free: 18.87 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4949, allocations: 0 / 0.5839 GB, free: 18.87 MB / 446.1 MB Notification: Performance of Templates: time 0.008156/0.503, allocations: 4.5 MB / 0.5883 GB, free: 17.4 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1)