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.00868/0.00868, allocations: 100.7 kB / 15.73 MB, free: 6.477 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.001802/0.001802, allocations: 196 kB / 16.67 MB, free: 6.379 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.163/0.163, allocations: 5.383 MB / 295.9 MB, free: 2.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.91 kB / 412.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2273, allocations: 50.62 MB / 462.9 MB, free: 21.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellVoltageSource): time 0.003613/0.231, allocations: 3.272 MB / 466.2 MB, free: 19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.2326, allocations: 1.226 MB / 467.4 MB, free: 18.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001986/0.2328, allocations: 4.094 kB / 467.4 MB, free: 18.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005294/0.2334, allocations: 214.4 kB / 467.6 MB, free: 18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003126/0.2337, allocations: 145.9 kB / 467.8 MB, free: 17.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/0.2339, allocations: 113.5 kB / 467.9 MB, free: 17.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004895/0.2344, allocations: 0.5224 MB / 468.4 MB, free: 17.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.2346, allocations: 115.1 kB / 468.5 MB, free: 17.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.2349, allocations: 203.8 kB / 468.7 MB, free: 17.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002701/0.2352, allocations: 232 kB / 468.9 MB, free: 17.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.884e-05/0.2352, allocations: 57.42 kB / 469 MB, free: 17.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.2353, allocations: 55.88 kB / 469.1 MB, free: 17.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.08e-05/0.2354, allocations: 103.1 kB / 469.2 MB, free: 17.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.2356, allocations: 215.7 kB / 469.4 MB, free: 17.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005473/0.2362, allocations: 0.4972 MB / 469.9 MB, free: 16.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2362, allocations: 0 / 469.9 MB, free: 16.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2362, allocations: 1.406 kB / 469.9 MB, free: 16.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.118e-06/0.2362, allocations: 0 / 469.9 MB, free: 16.87 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.001879/0.2381, allocations: 0.7803 MB / 470.6 MB, free: 16.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.2382, allocations: 13.62 kB / 470.7 MB, free: 16.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.08e-05/0.2382, allocations: 58.45 kB / 470.7 MB, free: 16.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.804e-05/0.2383, allocations: 40.33 kB / 470.8 MB, free: 16.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009327/0.2392, allocations: 464.3 kB / 471.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.2393, allocations: 22 kB / 471.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.614e-05/0.2393, allocations: 17.75 kB / 471.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/0.2398, allocations: 281.9 kB / 471.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2398, allocations: 0 / 471.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.455e-05/0.2398, allocations: 10.47 kB / 471.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.2399, allocations: 4.562 kB / 471.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005282/0.2404, allocations: 229.8 kB / 471.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001937/0.2423, allocations: 1.263 MB / 473 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003359/0.2427, allocations: 142.5 kB / 473.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002708/0.243, allocations: 102.7 kB / 473.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.243, allocations: 2.328 kB / 473.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.307e-05/0.243, allocations: 35.94 kB / 473.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.243, allocations: 0 / 473.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006695/0.2437, allocations: 255.2 kB / 473.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.047e-05/0.2437, allocations: 52.75 kB / 473.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003815/0.2441, allocations: 366.9 kB / 474 MB, free: 14.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.2441, allocations: 31.27 kB / 474 MB, free: 14.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.2442, allocations: 210.8 kB / 474.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.2443, allocations: 26.23 kB / 474.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.69e-05/0.2444, allocations: 53.41 kB / 474.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.8e-05/0.2444, allocations: 347.1 kB / 474.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/0.2447, allocations: 92.64 kB / 474.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.2449, allocations: 129.7 kB / 474.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003923/0.2453, allocations: 202.7 kB / 475 MB, free: 13.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2453, allocations: 3.938 kB / 475 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008903/0.2462, allocations: 350 kB / 475.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.2462, allocations: 6.469 kB / 475.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.2463, allocations: 1.938 kB / 475.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004795/0.2467, allocations: 78.38 kB / 475.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003128/0.2471, allocations: 58.73 kB / 475.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001173/0.2482, allocations: 1.567 MB / 477.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003478/0.2486, allocations: 42.77 kB / 477.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.2486, allocations: 7.25 kB / 477.1 MB, free: 11.73 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.0001151/0.2488, allocations: 149 kB / 477.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.744e-05/0.2488, allocations: 32.69 kB / 477.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.547e-05/0.2489, allocations: 33.56 kB / 477.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.2489, allocations: 1.281 kB / 477.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.2489, allocations: 3.938 kB / 477.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2489, allocations: 5.906 kB / 477.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008041/0.2497, allocations: 0.5891 MB / 477.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.2497, allocations: 1.797 kB / 477.9 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.2499, allocations: 27.75 kB / 478 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2499, allocations: 4.594 kB / 478 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.25, allocations: 1.891 kB / 478 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.25, allocations: 1.891 kB / 478 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.25, allocations: 1.062 kB / 478 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004356/0.2504, allocations: 298.5 kB / 478.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.674e-05/0.2505, allocations: 117.4 kB / 478.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.698e-05/0.2506, allocations: 6.125 kB / 478.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.2508, allocations: 15.09 kB / 478.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.734e-05/0.2509, allocations: 8.938 kB / 478.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.2509, allocations: 4.453 kB / 478.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002355/0.2511, allocations: 261.2 kB / 478.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2511, allocations: 0 / 478.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003767/0.2515, allocations: 71.84 kB / 478.7 MB, free: 10.64 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.0005958/0.2521, allocations: 0.8261 MB / 479.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007136/0.2528, allocations: 338.3 kB / 479.9 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2528, allocations: 1.281 kB / 479.9 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001993/0.2531, allocations: 75.19 kB / 480 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005024/0.2536, allocations: 78.58 kB / 480.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00411/0.2577, allocations: 3.068 MB / 483.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000163/0.2579, allocations: 0.7715 MB / 483.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001702/0.258, allocations: 50.69 kB / 483.9 MB, free: 6.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.2582, allocations: 106.6 kB / 484.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2582, allocations: 1.125 kB / 484.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0252/0.2834, allocations: 7.144 MB / 491.2 MB, free: 3.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.82, allocations: 11.97 kB / 491.2 MB, free: 3.309 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)