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.00597/0.00597, allocations: 96.7 kB / 15.73 MB, free: 6.043 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.002054/0.002054, allocations: 196.7 kB / 16.67 MB, free: 5.969 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.523/1.523, allocations: 222.9 MB / 240.4 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1353/0.1353, allocations: 5.382 MB / 295.9 MB, free: 2.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 63.88 kB / 412.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2789, allocations: 50.61 MB / 462.9 MB, free: 21.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellVoltageSource): time 0.003809/0.2827, allocations: 3.277 MB / 466.2 MB, free: 18.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.2846, allocations: 1.225 MB / 467.4 MB, free: 18.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002444/0.2848, allocations: 4.281 kB / 467.4 MB, free: 18.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006029/0.2854, allocations: 213.7 kB / 467.6 MB, free: 17.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003982/0.2859, allocations: 144.3 kB / 467.8 MB, free: 17.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002076/0.2861, allocations: 112.9 kB / 467.9 MB, free: 17.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005323/0.2866, allocations: 0.5216 MB / 468.4 MB, free: 17.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.2869, allocations: 119.5 kB / 468.5 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.2871, allocations: 195.1 kB / 468.7 MB, free: 17.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000323/0.2875, allocations: 240.6 kB / 469 MB, free: 17.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.084e-05/0.2876, allocations: 53.44 kB / 469 MB, free: 17.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000143/0.2877, allocations: 57.06 kB / 469.1 MB, free: 17.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.733e-05/0.2878, allocations: 101.1 kB / 469.2 MB, free: 17.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.288, allocations: 212.8 kB / 469.4 MB, free: 17.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006837/0.2887, allocations: 0.5072 MB / 469.9 MB, free: 16.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2887, allocations: 0 / 469.9 MB, free: 16.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2887, allocations: 0 / 469.9 MB, free: 16.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.2888, allocations: 0 / 469.9 MB, free: 16.81 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.00206/0.2908, allocations: 0.7927 MB / 470.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.2909, allocations: 13.48 kB / 470.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.195e-05/0.291, allocations: 53.86 kB / 470.7 MB, free: 16.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.503e-05/0.2911, allocations: 40.02 kB / 470.8 MB, free: 16.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/0.2922, allocations: 474.3 kB / 471.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/0.2922, allocations: 17 kB / 471.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.201e-05/0.2923, allocations: 22.12 kB / 471.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005825/0.2929, allocations: 273.9 kB / 471.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.2929, allocations: 4 kB / 471.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.594e-05/0.2929, allocations: 14.66 kB / 471.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.293, allocations: 4.812 kB / 471.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005574/0.2935, allocations: 230 kB / 471.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.2955, allocations: 1.26 MB / 473.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004087/0.296, allocations: 144.1 kB / 473.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.2963, allocations: 102.2 kB / 473.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.2963, allocations: 7.219 kB / 473.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.2964, allocations: 40.16 kB / 473.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.134e-06/0.2964, allocations: 0 / 473.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008516/0.2972, allocations: 245.4 kB / 473.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.2973, allocations: 52.56 kB / 473.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004533/0.2977, allocations: 367.9 kB / 474 MB, free: 14.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.2978, allocations: 25.7 kB / 474 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.2979, allocations: 223 kB / 474.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.2979, allocations: 30.84 kB / 474.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.298, allocations: 49.86 kB / 474.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.324e-05/0.2981, allocations: 351.6 kB / 474.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.2984, allocations: 91.7 kB / 474.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.2987, allocations: 131.2 kB / 474.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004795/0.2992, allocations: 196.8 kB / 475.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.2992, allocations: 5.156 kB / 475.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001086/0.3003, allocations: 351.9 kB / 475.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.3003, allocations: 5.219 kB / 475.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.3003, allocations: 2.172 kB / 475.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005006/0.3009, allocations: 78.52 kB / 475.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.3012, allocations: 58.38 kB / 475.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.3025, allocations: 1.559 MB / 477.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004021/0.3029, allocations: 42.52 kB / 477.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.3029, allocations: 8.375 kB / 477.2 MB, free: 11.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 (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.0001592/0.3031, allocations: 147.6 kB / 477.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.045e-05/0.3032, allocations: 35.02 kB / 477.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.006e-05/0.3032, allocations: 31.77 kB / 477.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3033, allocations: 5.344 kB / 477.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3033, allocations: 6.234 kB / 477.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3033, allocations: 0 / 477.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009661/0.3042, allocations: 0.5935 MB / 478 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.3043, allocations: 1.156 kB / 478 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.3044, allocations: 27.78 kB / 478 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.3045, allocations: 1.531 kB / 478 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.3045, allocations: 5.484 kB / 478 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.3045, allocations: 1.438 kB / 478 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.3045, allocations: 5.312 kB / 478 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004962/0.305, allocations: 294.1 kB / 478.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.3051, allocations: 126.7 kB / 478.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.42e-05/0.3052, allocations: 4.609 kB / 478.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.3054, allocations: 21.19 kB / 478.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.876e-05/0.3055, allocations: 9.172 kB / 478.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.3055, allocations: 3.25 kB / 478.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003129/0.3058, allocations: 260.8 kB / 478.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3058, allocations: 0 / 478.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004261/0.3062, allocations: 68.77 kB / 478.8 MB, free: 10.55 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.0007158/0.307, allocations: 0.8324 MB / 479.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008611/0.3078, allocations: 335.7 kB / 479.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3079, allocations: 3.938 kB / 480 MB, free: 9.637 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002113/0.3081, allocations: 75.69 kB / 480 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005143/0.3086, allocations: 63.39 kB / 480.1 MB, free: 9.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004477/0.3131, allocations: 3.095 MB / 483.2 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.3133, allocations: 0.7712 MB / 484 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002035/0.3135, allocations: 46.33 kB / 484 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.3137, allocations: 106.9 kB / 484.1 MB, free: 6.668 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3137, allocations: 1.094 kB / 484.1 MB, free: 6.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03473/0.3484, allocations: 7.044 MB / 491.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.42, allocations: 6.75 kB / 491.2 MB, free: 3.18 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 & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellVoltageSource.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellVoltageSource.pipe 2>&1)