Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.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/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModule,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModule,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule",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.0008347/0.0008346, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009956/0.0009956, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1529/0.1529, allocations: 5.374 MB / 296.4 MB, free: 3.91 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003073/0.0003073, allocations: 8 kB / 361.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09268/0.09301, allocations: 51.6 MB / 413.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModule): time 0.003397/0.09645, allocations: 3.574 MB / 417.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.09828, allocations: 1.509 MB / 418.6 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.09847, allocations: 11.94 kB / 418.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005052/0.09899, allocations: 234.8 kB / 418.8 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005039/0.0995, allocations: 295.3 kB / 419.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002331/0.09974, allocations: 131.7 kB / 419.2 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2002/0.2999, allocations: 22.42 MB / 441.7 MB, free: 38.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006184/0.3061, allocations: 5.639 MB / 447.3 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009003/0.3152, allocations: 5.991 MB / 453.3 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0186/0.3338, allocations: 7.683 MB / 461 MB, free: 31.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005781/0.3396, allocations: 0.8145 MB / 461.8 MB, free: 31.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008138/0.3478, allocations: 0.8213 MB / 462.6 MB, free: 31.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004947/0.3528, allocations: 2.739 MB / 465.3 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006887/0.3597, allocations: 2.731 MB / 468.1 MB, free: 28.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02186/0.3816, allocations: 22.71 MB / 490.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3816, allocations: 1.406 kB / 490.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.667e-06/0.3816, allocations: 0 / 490.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0007388/0.3824, allocations: 0 / 490.8 MB, free: 12.69 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2129 * Number of variables: 2129 Notification: Performance of Generate backend data structure: time 0.08558/0.468, allocations: 28.12 MB / 0.5067 GB, free: 464 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.468, allocations: 8.031 kB / 0.5068 GB, free: 456 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006293/0.4743, allocations: 1.118 MB / 0.5078 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007343/0.4817, allocations: 1.447 MB / 0.5093 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05678/0.5385, allocations: 18.67 MB / 0.5275 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008503/0.5394, allocations: 0.6256 MB / 0.5281 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004393/0.5438, allocations: 0.8164 MB / 0.5289 GB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04457/0.5884, allocations: 15.75 MB / 0.5443 GB, free: 9.34 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003822/0.5888, allocations: 27.75 kB / 0.5443 GB, free: 9.312 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003457/0.5923, allocations: 348 kB / 0.5446 GB, free: 8.973 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002013/0.5925, allocations: 216 kB / 0.5448 GB, free: 8.762 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04194/0.6345, allocations: 17.94 MB / 0.5624 GB, free: 6.805 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4591/1.094, allocations: 57.96 MB / 0.619 GB, free: 71.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.031/1.125, allocations: 21.93 MB / 0.6404 GB, free: 61.28 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002306/1.125, allocations: 66.38 kB / 0.6404 GB, free: 61.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.873e-05/1.125, allocations: 84.91 kB / 0.6405 GB, free: 61.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=448): time 5.63e-06/1.125, allocations: 1.312 kB / 0.6405 GB, free: 61.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=448): time 0.1042/1.229, allocations: 37.86 MB / 0.6775 GB, free: 46.47 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/1.229, allocations: 98.95 kB / 0.6776 GB, free: 46.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02566/1.255, allocations: 15.09 MB / 0.6923 GB, free: 33.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001502/1.257, allocations: 113.7 kB / 0.6924 GB, free: 33.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004572/1.261, allocations: 6.08 MB / 0.6984 GB, free: 27.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002219/1.263, allocations: 1.575 MB / 0.6999 GB, free: 26.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001332/1.265, allocations: 176 kB / 0.7001 GB, free: 26.28 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003554/1.265, allocations: 0.6698 MB / 0.7007 GB, free: 25.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01277/1.278, allocations: 7.816 MB / 0.7084 GB, free: 17.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01652/1.294, allocations: 8.952 MB / 0.7171 GB, free: 8.496 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01539/1.31, allocations: 8.568 MB / 0.7255 GB, free: 15.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.88e-05/1.31, allocations: 4 kB / 0.7255 GB, free: 15.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=1131) (initialization): time 0.1278/1.438, allocations: 41.24 MB / 0.7658 GB, free: 6.402 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.631e-05/1.438, allocations: 16 kB / 0.7658 GB, free: 6.387 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.203e-05/1.438, allocations: 20 kB / 0.7658 GB, free: 6.367 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2393/1.677, allocations: 25.94 MB / 0.7911 GB, free: 126.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006906/1.684, allocations: 1.496 MB / 0.7926 GB, free: 126.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5874/2.271, allocations: 200.9 MB / 0.9888 GB, free: 102 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02454/2.296, allocations: 2.662 MB / 0.9914 GB, free: 101.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003612/2.3, allocations: 377.1 kB / 0.9918 GB, free: 101.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 102 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (838): * Single equations (assignments): 789 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 48 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 48 {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {47 199} Notification: Performance of prepare postOptimizeDAE: time 0.01487/2.315, allocations: 4.52 MB / 0.9962 GB, free: 100.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005171/2.32, allocations: 1.158 MB / 0.9973 GB, free: 99.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1006/2.42, allocations: 33.17 MB / 1.03 GB, free: 93 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.254e-05/2.421, allocations: 43.09 kB / 1.03 GB, free: 93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/2.421, allocations: 0 / 1.03 GB, free: 93 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001259/2.421, allocations: 22.08 kB / 1.03 GB, free: 93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1375/2.558, allocations: 50.59 MB / 1.079 GB, free: 50.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.78e-05/2.558, allocations: 0 / 1.079 GB, free: 50.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001934/2.56, allocations: 459.4 kB / 1.08 GB, free: 49.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02458/2.585, allocations: 15.78 MB / 1.095 GB, free: 34.14 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001957/2.587, allocations: 115.5 kB / 1.095 GB, free: 34.03 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5301/3.117, allocations: 117.6 MB / 1.21 GB, free: 114.9 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/3.117, allocations: 0 / 1.21 GB, free: 114.9 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09556/3.213, allocations: 32.25 MB / 1.241 GB, free: 88.89 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009072/3.222, allocations: 2.7 MB / 1.244 GB, free: 86.22 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004628/3.226, allocations: 76 kB / 1.244 GB, free: 86.15 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01182/3.238, allocations: 1.502 MB / 1.246 GB, free: 84.64 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009074/3.239, allocations: 274.5 kB / 1.246 GB, free: 84.38 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001389/3.24, allocations: 143.9 kB / 1.246 GB, free: 84.24 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.02004/3.261, allocations: 10.39 MB / 1.256 GB, free: 73.92 MB / 0.4982 GB Notification: Performance of sort global known variables: time 3.81e-07/3.261, allocations: 3.844 kB / 1.256 GB, free: 73.92 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01671/3.277, allocations: 3.704 MB / 1.26 GB, free: 70.32 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 249 * Array equations: 0 * Algorithm blocks: 0 * 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: 0 * Non-linear torn systems: 1 {48 154} Notification: Performance of Backend phase and start with SimCode phase: time 0.08955/3.367, allocations: 32.93 MB / 1.292 GB, free: 37.5 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.3202/3.687, allocations: 33.99 MB / 1.325 GB, free: 132 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/3.687, allocations: 0 / 1.325 GB, free: 132 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.05272/3.74, allocations: 18.27 MB / 1.343 GB, free: 131.2 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01496/3.755, allocations: 2.97 MB / 1.346 GB, free: 130.9 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08281/3.838, allocations: 62 MB / 1.406 GB, free: 91.38 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01042/3.848, allocations: 8.91 MB / 1.415 GB, free: 88.58 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.01214/3.86, allocations: 3.855 MB / 1.419 GB, free: 87.75 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009316/3.87, allocations: 5 MB / 1.424 GB, free: 83.36 MB / 0.4982 GB Notification: Performance of SimCode: time 1.553e-06/3.87, allocations: 0 / 1.424 GB, free: 83.36 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9294/4.799, allocations: 365.5 MB / 1.781 GB, free: 111.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/4.799, allocations: 196.2 kB / 1.781 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/18.51, allocations: 0 / 1.781 GB, free: 111.5 MB / 0.5294 GB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe 2>&1) Environment - environmentSimulation: