Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008404/0.0008403, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001052/0.001052, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.732/1.732, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.768/1.768, allocations: 292.7 MB / 0.5499 GB, free: 14.54 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005559/0.0005561, allocations: 23.28 kB / 0.6738 GB, free: 26.12 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.298, allocations: 116.3 MB / 0.7874 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003971/0.3021, allocations: 2.626 MB / 0.79 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002895/0.305, allocations: 1.654 MB / 0.7916 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.3052, allocations: 7.938 kB / 0.7916 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.3054, allocations: 35.7 kB / 0.7916 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004742/0.3058, allocations: 151.3 kB / 0.7918 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.3064, allocations: 183.6 kB / 0.7919 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004285/0.3068, allocations: 422.6 kB / 0.7923 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007086/0.3075, allocations: 382.8 kB / 0.7927 GB, free: 6.348 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002185/0.3078, allocations: 123.5 kB / 0.7928 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002879/0.3081, allocations: 171.4 kB / 0.793 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.345e-05/0.3081, allocations: 12 kB / 0.793 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002864/0.3084, allocations: 143.8 kB / 0.7931 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.507e-05/0.3085, allocations: 83.72 kB / 0.7932 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.684e-05/0.3086, allocations: 69.58 kB / 0.7933 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000394/0.309, allocations: 351.1 kB / 0.7936 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.309, allocations: 0 / 0.7936 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.214e-06/0.309, allocations: 0 / 0.7936 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.78e-06/0.309, allocations: 0 / 0.7936 GB, free: 5.406 MB / 0.6075 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.001181/0.3102, allocations: 0.6018 MB / 0.7942 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.3103, allocations: 8.031 kB / 0.7942 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.041e-05/0.3103, allocations: 58.53 kB / 0.7943 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006913/0.311, allocations: 103.5 kB / 0.7944 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003721/0.3114, allocations: 274.3 kB / 0.7946 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.3115, allocations: 12.44 kB / 0.7946 GB, free: 4.25 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.182e-05/0.3115, allocations: 20 kB / 0.7947 GB, free: 4.23 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007966/0.3123, allocations: 430.5 kB / 0.7951 GB, free: 3.785 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.3124, allocations: 0 / 0.7951 GB, free: 3.785 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.3124, allocations: 11.98 kB / 0.7951 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-05/0.3124, allocations: 24.36 kB / 0.7951 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008591/0.3133, allocations: 420.5 kB / 0.7955 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.3153, allocations: 1.623 MB / 0.7971 GB, free: 1.586 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.3165, allocations: 485.2 kB / 0.7976 GB, free: 1.094 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/0.3169, allocations: 209.6 kB / 0.7978 GB, free: 0.8828 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000154/0.3171, allocations: 85.09 kB / 0.7978 GB, free: 0.7812 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005582/0.3176, allocations: 278.5 kB / 0.7981 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=27): time 3.437e-06/0.3177, allocations: 0 / 0.7981 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of matching and sorting (n=28): time 0.001914/0.3196, allocations: 0.7825 MB / 0.7989 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.3197, allocations: 89.09 kB / 0.799 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.3199, allocations: 213 kB / 0.7992 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.32, allocations: 37.64 kB / 0.7992 GB, free: 15.31 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.3201, allocations: 176.2 kB / 0.7994 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 9.214e-05/0.3202, allocations: 90.66 kB / 0.7994 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.225e-05/0.3202, allocations: 8 kB / 0.7995 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.3204, allocations: 338.6 kB / 0.7998 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003938/0.3208, allocations: 180.2 kB / 0.8 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/0.3212, allocations: 257.3 kB / 0.8002 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004642/0.3217, allocations: 233.8 kB / 0.8004 GB, free: 14.01 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.3217, allocations: 0 / 0.8004 GB, free: 14.01 MB / 0.6231 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001111/0.3228, allocations: 0.5565 MB / 0.801 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001587/0.323, allocations: 190.4 kB / 0.8011 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.323, allocations: 4 kB / 0.8011 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002463/0.3233, allocations: 40.83 kB / 0.8012 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004451/0.3237, allocations: 95.8 kB / 0.8013 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001488/0.3252, allocations: 1.489 MB / 0.8027 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.3256, allocations: 59.86 kB / 0.8028 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.119e-05/0.3256, allocations: 12 kB / 0.8028 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 8.005e-06/0.3256, allocations: 4 kB / 0.8028 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00101/0.3266, allocations: 0.4982 MB / 0.8033 GB, free: 10.87 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.3267, allocations: 7.938 kB / 0.8033 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001254/0.3268, allocations: 40.81 kB / 0.8033 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003288/0.3271, allocations: 91.98 kB / 0.8034 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.3284, allocations: 1.481 MB / 0.8049 GB, free: 9.105 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.3287, allocations: 55.91 kB / 0.8049 GB, free: 9.051 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.3288, allocations: 11.98 kB / 0.8049 GB, free: 9.039 MB / 0.6231 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 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002501/0.329, allocations: 237 kB / 0.8052 GB, free: 8.797 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.815e-05/0.3291, allocations: 23.72 kB / 0.8052 GB, free: 8.773 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/0.3301, allocations: 496.5 kB / 0.8057 GB, free: 8.281 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3301, allocations: 4 kB / 0.8057 GB, free: 8.277 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3301, allocations: 3.984 kB / 0.8057 GB, free: 8.273 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3301, allocations: 0 / 0.8057 GB, free: 8.273 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000718/0.3309, allocations: 0.5778 MB / 0.8062 GB, free: 7.633 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3309, allocations: 0 / 0.8062 GB, free: 7.633 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000357/0.3312, allocations: 83.86 kB / 0.8063 GB, free: 7.551 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001183/0.3314, allocations: 40.91 kB / 0.8064 GB, free: 7.508 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.3314, allocations: 8 kB / 0.8064 GB, free: 7.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.3326, allocations: 1.405 MB / 0.8077 GB, free: 5.961 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3326, allocations: 7.922 kB / 0.8077 GB, free: 5.953 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009977/0.3336, allocations: 0.5615 MB / 0.8083 GB, free: 5.363 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.3338, allocations: 136.7 kB / 0.8084 GB, free: 5.211 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.036e-05/0.3339, allocations: 4 kB / 0.8084 GB, free: 5.207 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002684/0.3341, allocations: 39.95 kB / 0.8085 GB, free: 5.168 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.3343, allocations: 39.91 kB / 0.8085 GB, free: 5.129 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.3343, allocations: 4 kB / 0.8085 GB, free: 5.125 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001922/0.3345, allocations: 180.5 kB / 0.8087 GB, free: 4.945 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3345, allocations: 0 / 0.8087 GB, free: 4.945 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006335/0.3351, allocations: 128 kB / 0.8088 GB, free: 4.82 MB / 0.6231 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001372/0.3365, allocations: 1.122 MB / 0.8099 GB, free: 3.656 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001858/0.3384, allocations: 0.9976 MB / 0.8109 GB, free: 2.609 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3384, allocations: 3.938 kB / 0.8109 GB, free: 2.605 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005717/0.339, allocations: 343.3 kB / 0.8112 GB, free: 2.258 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.3394, allocations: 48.34 kB / 0.8112 GB, free: 2.211 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003675/0.3431, allocations: 1.99 MB / 0.8132 GB, free: 140 kB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000532/0.3437, allocations: 0.78 MB / 0.8139 GB, free: 15.33 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.000314/0.344, allocations: 94.2 kB / 0.814 GB, free: 15.23 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.3442, allocations: 91.39 kB / 0.8141 GB, free: 15.14 MB / 0.6387 GB Notification: Performance of SimCode: time 1.062e-06/0.3442, allocations: 0 / 0.8141 GB, free: 15.14 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.3644, allocations: 6.566 MB / 0.8205 GB, free: 8.809 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.3647, allocations: 233.4 kB / 0.8208 GB, free: 8.566 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/2.43, allocations: 4 kB / 0.8208 GB, free: 8.562 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) Environment - environmentSimulation: