Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.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.SimpleCellVoltageSource,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellVoltageSource,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource",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.001331/0.001331, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.428/1.428, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1745/0.1745, allocations: 5.384 MB / 295.8 MB, free: 2.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 59.91 kB / 361 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1239, allocations: 50.62 MB / 411.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellVoltageSource): time 0.005624/0.1296, allocations: 3.279 MB / 414.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002631/0.1323, allocations: 1.227 MB / 416.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004904/0.1328, allocations: 4 kB / 416.1 MB, free: 6.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008317/0.1337, allocations: 206.8 kB / 416.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006629/0.1344, allocations: 146.9 kB / 416.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003062/0.1347, allocations: 103.9 kB / 416.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007309/0.1354, allocations: 0.5177 MB / 417.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002892/0.1357, allocations: 124 kB / 417.2 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000351/0.1361, allocations: 195.3 kB / 417.4 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003758/0.1365, allocations: 243 kB / 417.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.1366, allocations: 48 kB / 417.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001588/0.1368, allocations: 60 kB / 417.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.984e-05/0.1369, allocations: 103.7 kB / 417.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002388/0.1371, allocations: 207 kB / 418.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006521/0.1378, allocations: 0.5022 MB / 418.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1378, allocations: 0 / 418.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1378, allocations: 0 / 418.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.1e-05/0.1378, allocations: 0 / 418.6 MB, free: 4.395 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.002127/0.14, allocations: 0.7829 MB / 419.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.14, allocations: 8.031 kB / 419.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.027e-05/0.1401, allocations: 54.73 kB / 419.4 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.1402, allocations: 36.47 kB / 419.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.1412, allocations: 464 kB / 419.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.1413, allocations: 24.38 kB / 419.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.185e-05/0.1413, allocations: 20 kB / 419.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005505/0.1419, allocations: 279.3 kB / 420.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1419, allocations: 4 kB / 420.2 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.142, allocations: 8 kB / 420.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.142, allocations: 4 kB / 420.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005583/0.1425, allocations: 236.9 kB / 420.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002078/0.1446, allocations: 1.265 MB / 421.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003853/0.145, allocations: 150.4 kB / 421.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002942/0.1453, allocations: 104.8 kB / 422 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.1454, allocations: 4.141 kB / 422 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.1454, allocations: 38.56 kB / 422 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.1454, allocations: 0 / 422 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007632/0.1462, allocations: 241.2 kB / 422.3 MB, free: 488 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.1462, allocations: 63.34 kB / 422.3 MB, free: 412 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004039/0.1466, allocations: 369.6 kB / 422.7 MB, free: 32 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.1467, allocations: 25.7 kB / 422.7 MB, free: 0 / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2282/0.3749, allocations: 208.6 kB / 422.9 MB, free: 48.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.913e-05/0.375, allocations: 31.78 kB / 422.9 MB, free: 48.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.3751, allocations: 46.69 kB / 423 MB, free: 48.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.625e-05/0.3752, allocations: 345.5 kB / 423.3 MB, free: 47.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000298/0.3755, allocations: 92.8 kB / 423.4 MB, free: 47.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002676/0.3758, allocations: 129.9 kB / 423.5 MB, free: 47.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004732/0.3763, allocations: 205.3 kB / 423.7 MB, free: 47.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.3763, allocations: 0 / 423.7 MB, free: 47.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001098/0.3774, allocations: 341.3 kB / 424.1 MB, free: 47.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.111e-05/0.3775, allocations: 6.5 kB / 424.1 MB, free: 47.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.3775, allocations: 8.938 kB / 424.1 MB, free: 47.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005225/0.378, allocations: 73.03 kB / 424.2 MB, free: 47.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003163/0.3783, allocations: 55.44 kB / 424.2 MB, free: 47.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001343/0.3797, allocations: 1.561 MB / 425.8 MB, free: 46.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003581/0.3801, allocations: 45.98 kB / 425.8 MB, free: 46.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.484e-05/0.3801, allocations: 6.531 kB / 425.8 MB, free: 46.24 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001665/0.3803, allocations: 149.8 kB / 426 MB, free: 46.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.14e-05/0.3803, allocations: 31.12 kB / 426 MB, free: 46.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.56e-05/0.3804, allocations: 32.48 kB / 426 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3804, allocations: 0 / 426 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.3804, allocations: 0 / 426 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.3804, allocations: 3.844 kB / 426 MB, free: 46.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008242/0.3813, allocations: 0.5966 MB / 426.6 MB, free: 45.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3813, allocations: 0.5 kB / 426.6 MB, free: 45.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.3815, allocations: 33.72 kB / 426.7 MB, free: 45.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.3815, allocations: 0.5156 kB / 426.7 MB, free: 45.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.3815, allocations: 8.141 kB / 426.7 MB, free: 45.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3815, allocations: 3.938 kB / 426.7 MB, free: 45.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.3815, allocations: 0.5625 kB / 426.7 MB, free: 45.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004416/0.3819, allocations: 287.1 kB / 427 MB, free: 45.64 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.782e-05/0.382, allocations: 120.9 kB / 427.1 MB, free: 45.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.036e-05/0.3821, allocations: 3.828 kB / 427.1 MB, free: 45.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.3823, allocations: 27.48 kB / 427.1 MB, free: 45.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.317e-05/0.3824, allocations: 5.266 kB / 427.1 MB, free: 45.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.3824, allocations: 3.375 kB / 427.1 MB, free: 45.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002391/0.3826, allocations: 264.5 kB / 427.4 MB, free: 45.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3826, allocations: 0 / 427.4 MB, free: 45.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003412/0.383, allocations: 67.45 kB / 427.4 MB, free: 45.44 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000663/0.3837, allocations: 0.8288 MB / 428.3 MB, free: 44.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007295/0.3844, allocations: 345.7 kB / 428.6 MB, free: 44.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3844, allocations: 0 / 428.6 MB, free: 44.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001842/0.3846, allocations: 65.97 kB / 428.7 MB, free: 44.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005905/0.3852, allocations: 76.77 kB / 428.7 MB, free: 44.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004184/0.3894, allocations: 3.101 MB / 431.8 MB, free: 42.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001785/0.3896, allocations: 0.7708 MB / 432.6 MB, free: 42.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001873/0.3898, allocations: 39.64 kB / 432.7 MB, free: 42.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.3899, allocations: 111.6 kB / 432.8 MB, free: 41.96 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3899, allocations: 0 / 432.8 MB, free: 41.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03069/0.4206, allocations: 6.914 MB / 439.7 MB, free: 41.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.58, allocations: 3.984 kB / 439.7 MB, free: 41.28 MB / 350.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe 2>&1)