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.00101/0.00101, allocations: 100 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.0009374/0.0009375, allocations: 177.3 kB / 15.94 MB, free: 228 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.369/1.369, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1572/0.1572, allocations: 5.378 MB / 296.3 MB, free: 3.988 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003117/0.0003119, allocations: 8 kB / 361.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1015, allocations: 51.6 MB / 413.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellVoltageSource): time 0.004181/0.1057, allocations: 2.693 MB / 416.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.1075, allocations: 1.146 MB / 417.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.1077, allocations: 4 kB / 417.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004157/0.1081, allocations: 175.1 kB / 417.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002862/0.1084, allocations: 143.6 kB / 417.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001399/0.1085, allocations: 63.91 kB / 417.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003901/0.1089, allocations: 327.3 kB / 418 MB, free: 5.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.1091, allocations: 93.98 kB / 418.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.1093, allocations: 159.4 kB / 418.3 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/0.1096, allocations: 195.2 kB / 418.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.256e-05/0.1096, allocations: 20 kB / 418.5 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.321e-05/0.1097, allocations: 31.92 kB / 418.5 MB, free: 5.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.901e-05/0.1098, allocations: 67.72 kB / 418.6 MB, free: 5.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.551e-05/0.1099, allocations: 93.52 kB / 418.7 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003264/0.1102, allocations: 379 kB / 419 MB, free: 4.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1102, allocations: 0 / 419 MB, free: 4.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1102, allocations: 0 / 419 MB, free: 4.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1102, allocations: 0 / 419 MB, free: 4.953 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.001661/0.1119, allocations: 0.74 MB / 419.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.1119, allocations: 8.031 kB / 419.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.632e-05/0.112, allocations: 54.55 kB / 419.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.244e-05/0.1121, allocations: 35.53 kB / 419.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008916/0.113, allocations: 458.9 kB / 420.3 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.113, allocations: 16.44 kB / 420.3 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.1131, allocations: 20 kB / 420.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004997/0.1136, allocations: 287.4 kB / 420.6 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1136, allocations: 7.938 kB / 420.7 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.466e-05/0.1136, allocations: 7.953 kB / 420.7 MB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.1136, allocations: 8 kB / 420.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005446/0.1142, allocations: 253 kB / 420.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.1162, allocations: 1.343 MB / 422.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.1166, allocations: 166.5 kB / 422.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.1166, allocations: 0 / 422.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.1166, allocations: 42.45 kB / 422.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 8.82e-07/0.1166, allocations: 0 / 422.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007296/0.1174, allocations: 285.3 kB / 422.7 MB, free: 1.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.1174, allocations: 55.41 kB / 422.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003681/0.1178, allocations: 373.5 kB / 423.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.1178, allocations: 25.7 kB / 423.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.118, allocations: 211.7 kB / 423.4 MB, free: 340 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.523e-05/0.118, allocations: 27.64 kB / 423.4 MB, free: 312 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.431e-05/0.118, allocations: 4 kB / 423.4 MB, free: 308 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1878/0.3058, allocations: 337.6 kB / 423.8 MB, free: 45.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.3062, allocations: 105.7 kB / 423.9 MB, free: 45.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/0.3065, allocations: 144.8 kB / 424 MB, free: 45.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.3067, allocations: 113.4 kB / 424.1 MB, free: 45.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.3068, allocations: 5.344 kB / 424.1 MB, free: 45.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001017/0.3078, allocations: 369.1 kB / 424.5 MB, free: 45.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.3078, allocations: 9.25 kB / 424.5 MB, free: 45.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3078, allocations: 0.9062 kB / 424.5 MB, free: 45.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004651/0.3083, allocations: 78.78 kB / 424.6 MB, free: 45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003252/0.3086, allocations: 59.53 kB / 424.6 MB, free: 45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.3098, allocations: 1.464 MB / 426.1 MB, free: 43.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003545/0.3102, allocations: 40.08 kB / 426.1 MB, free: 43.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.3102, allocations: 8.953 kB / 426.1 MB, free: 43.66 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001654/0.3104, allocations: 147.3 kB / 426.3 MB, free: 43.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.324e-05/0.3105, allocations: 29.36 kB / 426.3 MB, free: 43.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.931e-05/0.3105, allocations: 31.48 kB / 426.3 MB, free: 43.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.3105, allocations: 11.23 kB / 426.3 MB, free: 43.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.3105, allocations: 0 / 426.3 MB, free: 43.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3105, allocations: 5.016 kB / 426.3 MB, free: 43.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003344/0.3109, allocations: 332.6 kB / 426.7 MB, free: 43.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3109, allocations: 0.875 kB / 426.7 MB, free: 43.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.3111, allocations: 36.44 kB / 426.7 MB, free: 43.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3111, allocations: 0 / 426.7 MB, free: 43.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.3111, allocations: 3.344 kB / 426.7 MB, free: 43.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3111, allocations: 0 / 426.7 MB, free: 43.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3111, allocations: 10.2 kB / 426.7 MB, free: 43.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004387/0.3116, allocations: 305.5 kB / 427 MB, free: 43.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.921e-05/0.3117, allocations: 125.8 kB / 427.1 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.034e-05/0.3117, allocations: 3.469 kB / 427.1 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.312, allocations: 25.86 kB / 427.2 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.312, allocations: 6.516 kB / 427.2 MB, free: 43.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-06/0.312, allocations: 3.953 kB / 427.2 MB, free: 43.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002298/0.3123, allocations: 261.4 kB / 427.4 MB, free: 43.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3123, allocations: 0 / 427.4 MB, free: 43.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.3126, allocations: 68.86 kB / 427.5 MB, free: 43.02 MB / 350.1 MB 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 (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006526/0.3133, allocations: 0.8485 MB / 428.4 MB, free: 42.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006825/0.314, allocations: 363.8 kB / 428.7 MB, free: 42.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.314, allocations: 0 / 428.7 MB, free: 42.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001878/0.3142, allocations: 77.92 kB / 428.8 MB, free: 42.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004036/0.3146, allocations: 74.69 kB / 428.9 MB, free: 42.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.3158, allocations: 1.374 MB / 430.2 MB, free: 41.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001658/0.316, allocations: 0.7783 MB / 431 MB, free: 40.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001813/0.3162, allocations: 45.38 kB / 431.1 MB, free: 40.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.3163, allocations: 105.7 kB / 431.2 MB, free: 40.43 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3163, allocations: 0 / 431.2 MB, free: 40.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01832/0.3347, allocations: 6.123 MB / 437.3 MB, free: 40.02 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/0.3349, allocations: 197.5 kB / 437.5 MB, free: 39.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.641/1.975, allocations: 3.875 kB / 437.5 MB, free: 39.78 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/linux/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) Environment - environmentSimulation: