Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleSymmetric.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.SimpleModuleSymmetric,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleSymmetric",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleSymmetric,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleSymmetric",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.001109/0.001109, allocations: 108 kB / 15.6 MB, free: 132 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.001138/0.001138, allocations: 191.6 kB / 16.53 MB, free: 6.391 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.332/1.332, 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.1223/0.1223, allocations: 5.392 MB / 295.8 MB, free: 2.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 63.91 kB / 361 MB, free: 13.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08379/0.08529, allocations: 50.61 MB / 411.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleSymmetric): time 0.004622/0.08994, allocations: 3.426 MB / 415.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.09196, allocations: 1.277 MB / 416.3 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002726/0.09225, allocations: 8 kB / 416.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005681/0.09284, allocations: 210.7 kB / 416.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004259/0.09328, allocations: 158.8 kB / 416.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.09351, allocations: 111.9 kB / 416.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006239/0.09415, allocations: 0.5759 MB / 417.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000227/0.09438, allocations: 120.1 kB / 417.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002475/0.09464, allocations: 219.2 kB / 417.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003024/0.09495, allocations: 258.9 kB / 418 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.806e-05/0.09504, allocations: 56 kB / 418 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/0.09517, allocations: 64 kB / 418.1 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-05/0.09526, allocations: 107.6 kB / 418.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.09548, allocations: 234.8 kB / 418.4 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004949/0.09598, allocations: 0.5256 MB / 419 MB, free: 3.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.09599, allocations: 4 kB / 419 MB, free: 3.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.096, allocations: 4 kB / 419 MB, free: 3.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.09602, allocations: 3.984 kB / 419 MB, free: 3.949 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001909/0.09793, allocations: 0.8257 MB / 419.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.09798, allocations: 8.031 kB / 419.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.126e-05/0.09805, allocations: 58.73 kB / 419.9 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.405e-05/0.09815, allocations: 48.38 kB / 419.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.09927, allocations: 496.1 kB / 420.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.0993, allocations: 20.5 kB / 420.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/0.09936, allocations: 24 kB / 420.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006133/0.09998, allocations: 321.4 kB / 420.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1, allocations: 0 / 420.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.11e-05/0.1, allocations: 12 kB / 420.8 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.218e-06/0.1001, allocations: 8 kB / 420.8 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007377/0.1008, allocations: 282 kB / 421 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00225/0.1031, allocations: 1.342 MB / 422.4 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006615/0.1037, allocations: 315.4 kB / 422.7 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1465/0.2503, allocations: 137.3 kB / 422.8 MB, free: 48.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.2503, allocations: 3.844 kB / 422.8 MB, free: 48.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.2503, allocations: 31.5 kB / 422.9 MB, free: 48.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.703e-06/0.2503, allocations: 0 / 422.9 MB, free: 48.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.003487/0.2538, allocations: 0.7447 MB / 423.6 MB, free: 48.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.116e-05/0.2539, allocations: 54.38 kB / 423.7 MB, free: 47.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003903/0.2543, allocations: 385 kB / 424 MB, free: 47.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.2543, allocations: 26.41 kB / 424.1 MB, free: 47.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.588e-05/0.2544, allocations: 231.1 kB / 424.3 MB, free: 47.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.13e-05/0.2544, allocations: 50.56 kB / 424.3 MB, free: 47.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.2545, allocations: 58.44 kB / 424.4 MB, free: 47.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.511e-05/0.2546, allocations: 348 kB / 424.7 MB, free: 47.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003059/0.2549, allocations: 116.5 kB / 424.9 MB, free: 47.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.2552, allocations: 156.3 kB / 425 MB, free: 47.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005354/0.2558, allocations: 248.2 kB / 425.2 MB, free: 47.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2558, allocations: 2.625 kB / 425.2 MB, free: 47.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.002473/0.2582, allocations: 0.6294 MB / 425.9 MB, free: 47.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.2583, allocations: 6.531 kB / 425.9 MB, free: 47.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2583, allocations: 0 / 425.9 MB, free: 47.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008648/0.2592, allocations: 260 kB / 426.1 MB, free: 47.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002145/0.2594, allocations: 44.12 kB / 426.2 MB, free: 47.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005295/0.2647, allocations: 3.92 MB / 430.1 MB, free: 44.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003648/0.2651, allocations: 45.28 kB / 430.1 MB, free: 44.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.2651, allocations: 9.594 kB / 430.2 MB, free: 44.12 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 (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000129/0.2652, allocations: 156.8 kB / 430.3 MB, free: 43.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.985e-05/0.2653, allocations: 35.19 kB / 430.3 MB, free: 43.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.058e-05/0.2654, allocations: 34.41 kB / 430.4 MB, free: 43.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2654, allocations: 0 / 430.4 MB, free: 43.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2654, allocations: 5.391 kB / 430.4 MB, free: 43.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2654, allocations: 10.09 kB / 430.4 MB, free: 43.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00249/0.2679, allocations: 0.9336 MB / 431.3 MB, free: 43.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2679, allocations: 0 / 431.3 MB, free: 43.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.268, allocations: 25.31 kB / 431.3 MB, free: 43.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003836/0.2684, allocations: 176.9 kB / 431.5 MB, free: 43.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.2684, allocations: 4.609 kB / 431.5 MB, free: 43.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003645/0.2721, allocations: 2.138 MB / 433.7 MB, free: 41.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2721, allocations: 4.062 kB / 433.7 MB, free: 41.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/0.2742, allocations: 0.5714 MB / 434.2 MB, free: 41.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/0.2743, allocations: 139.5 kB / 434.4 MB, free: 41.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.505e-05/0.2743, allocations: 0 / 434.4 MB, free: 41.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002907/0.2746, allocations: 26.78 kB / 434.4 MB, free: 41.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.612e-05/0.2747, allocations: 10.73 kB / 434.4 MB, free: 41.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.2747, allocations: 6.422 kB / 434.4 MB, free: 41.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002214/0.2749, allocations: 274.7 kB / 434.7 MB, free: 41.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2749, allocations: 0 / 434.7 MB, free: 41.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004462/0.2754, allocations: 92.75 kB / 434.8 MB, free: 41.21 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002223/0.2776, allocations: 1.109 MB / 435.9 MB, free: 40.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009733/0.2786, allocations: 0.5208 MB / 436.4 MB, free: 40.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2786, allocations: 0 / 436.4 MB, free: 40.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003211/0.2789, allocations: 219 kB / 436.6 MB, free: 39.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004888/0.2794, allocations: 82.44 kB / 436.7 MB, free: 39.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007529/0.287, allocations: 3.847 MB / 440.5 MB, free: 37.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.2872, allocations: 0.7886 MB / 441.3 MB, free: 37.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001894/0.2874, allocations: 42.03 kB / 441.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.2875, allocations: 119.8 kB / 441.5 MB, free: 37.07 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2875, allocations: 0 / 441.5 MB, free: 37.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02705/0.3146, allocations: 10.07 MB / 451.6 MB, free: 36.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.08, allocations: 12.2 kB / 451.6 MB, free: 36.17 MB / 350.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleSymmetric.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleSymmetric.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleSymmetric.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleSymmetric.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleSymmetric_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_SimpleModuleSymmetric.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleSymmetric.pipe 2>&1)