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.001249/0.001249, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001299/0.001299, allocations: 190.5 kB / 16.25 MB, free: 6.625 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.24/1.24, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1185/0.1185, allocations: 5.391 MB / 295.5 MB, free: 2.855 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 63.88 kB / 360.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08728, allocations: 50.61 MB / 411.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellVoltageSource): time 0.004281/0.0916, allocations: 3.322 MB / 414.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001759/0.09339, allocations: 1.223 MB / 415.6 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00027/0.09368, allocations: 4 kB / 415.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000579/0.09428, allocations: 191 kB / 415.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003874/0.09468, allocations: 123.2 kB / 415.9 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.09487, allocations: 87.91 kB / 416 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005553/0.09544, allocations: 0.5215 MB / 416.5 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.09566, allocations: 128 kB / 416.7 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002433/0.09592, allocations: 203.1 kB / 416.9 MB, free: 5.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000257/0.09618, allocations: 235.1 kB / 417.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.382e-05/0.09625, allocations: 48 kB / 417.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.09636, allocations: 60 kB / 417.2 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.321e-05/0.09644, allocations: 103.6 kB / 417.3 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.09663, allocations: 214.9 kB / 417.5 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004122/0.09704, allocations: 0.4945 MB / 418 MB, free: 4.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.09706, allocations: 0 / 418 MB, free: 4.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09706, allocations: 0 / 418 MB, free: 4.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.09708, allocations: 0 / 418 MB, free: 4.746 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.001703/0.09879, allocations: 0.779 MB / 418.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.09883, allocations: 12.03 kB / 418.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.273e-05/0.0989, allocations: 54.73 kB / 418.8 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.981e-05/0.09898, allocations: 36.47 kB / 418.9 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008479/0.09983, allocations: 464 kB / 419.3 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.09987, allocations: 24.31 kB / 419.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/0.09991, allocations: 24 kB / 419.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00048/0.1004, allocations: 275.4 kB / 419.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.1004, allocations: 3.938 kB / 419.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/0.1004, allocations: 12 kB / 419.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.1005, allocations: 4 kB / 419.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005063/0.101, allocations: 233 kB / 419.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.1028, allocations: 1.269 MB / 421.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003293/0.1032, allocations: 142.5 kB / 421.3 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002717/0.1035, allocations: 108.8 kB / 421.4 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.1035, allocations: 7.938 kB / 421.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.753e-05/0.1035, allocations: 34.56 kB / 421.4 MB, free: 1.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.1035, allocations: 0 / 421.4 MB, free: 1.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006514/0.1042, allocations: 241.2 kB / 421.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.1042, allocations: 51.56 kB / 421.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003433/0.1046, allocations: 369.7 kB / 422.1 MB, free: 400 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.1046, allocations: 29.7 kB / 422.1 MB, free: 364 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.1047, allocations: 215.7 kB / 422.3 MB, free: 140 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.1048, allocations: 31.55 kB / 422.4 MB, free: 108 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.082e-05/0.1048, allocations: 53.69 kB / 422.4 MB, free: 48 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1434/0.2482, allocations: 338.4 kB / 422.7 MB, free: 47.78 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/0.2486, allocations: 90.97 kB / 422.8 MB, free: 47.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.2488, allocations: 131.8 kB / 423 MB, free: 47.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004033/0.2492, allocations: 198.1 kB / 423.2 MB, free: 47.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2492, allocations: 0.9375 kB / 423.2 MB, free: 47.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009445/0.2502, allocations: 344.7 kB / 423.5 MB, free: 47.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2502, allocations: 6.344 kB / 423.5 MB, free: 47.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2502, allocations: 3.438 kB / 423.5 MB, free: 47.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004629/0.2507, allocations: 82.25 kB / 423.6 MB, free: 47.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000306/0.251, allocations: 53.8 kB / 423.6 MB, free: 47.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.2522, allocations: 1.56 MB / 425.2 MB, free: 46.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003287/0.2525, allocations: 38.75 kB / 425.2 MB, free: 46.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.2526, allocations: 10.28 kB / 425.2 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.0001294/0.2527, allocations: 145.9 kB / 425.4 MB, free: 46.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.092e-05/0.2527, allocations: 35.47 kB / 425.4 MB, free: 46.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.442e-05/0.2528, allocations: 31.94 kB / 425.5 MB, free: 46.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2528, allocations: 0 / 425.5 MB, free: 46.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.013e-06/0.2528, allocations: 0.6094 kB / 425.5 MB, free: 46.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.2528, allocations: 1.125 kB / 425.5 MB, free: 46.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000717/0.2535, allocations: 0.601 MB / 426.1 MB, free: 45.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2536, allocations: 0 / 426.1 MB, free: 45.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.2537, allocations: 27.58 kB / 426.1 MB, free: 45.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2537, allocations: 0 / 426.1 MB, free: 45.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.2538, allocations: 7.031 kB / 426.1 MB, free: 45.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.2538, allocations: 7.312 kB / 426.1 MB, free: 45.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2538, allocations: 0 / 426.1 MB, free: 45.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.2541, allocations: 291.4 kB / 426.4 MB, free: 45.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.376e-05/0.2542, allocations: 119.9 kB / 426.5 MB, free: 45.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.189e-05/0.2543, allocations: 10.25 kB / 426.5 MB, free: 45.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.2545, allocations: 19.72 kB / 426.5 MB, free: 45.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.653e-05/0.2546, allocations: 6.25 kB / 426.5 MB, free: 45.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.2546, allocations: 4.25 kB / 426.5 MB, free: 45.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001873/0.2548, allocations: 263.2 kB / 426.8 MB, free: 45.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2548, allocations: 0 / 426.8 MB, free: 45.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.2551, allocations: 66.64 kB / 426.9 MB, free: 45.48 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.0005323/0.2556, allocations: 0.8245 MB / 427.7 MB, free: 44.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006147/0.2562, allocations: 345.6 kB / 428 MB, free: 44.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.2563, allocations: 0 / 428 MB, free: 44.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001716/0.2564, allocations: 73.86 kB / 428.1 MB, free: 44.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004954/0.2569, allocations: 74.97 kB / 428.2 MB, free: 44.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.2606, allocations: 3.202 MB / 431.4 MB, free: 42.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001504/0.2608, allocations: 0.7687 MB / 432.1 MB, free: 42.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001863/0.261, allocations: 46.03 kB / 432.2 MB, free: 42.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.2611, allocations: 104.1 kB / 432.3 MB, free: 42.06 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2611, allocations: 0 / 432.3 MB, free: 42.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.2783, allocations: 6.759 MB / 439 MB, free: 41.52 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001473/0.2784, allocations: 233.2 kB / 439.3 MB, free: 41.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.8/2.079, allocations: 0 / 439.3 MB, free: 41.26 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)