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.004795/0.004795, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001112/0.001112, allocations: 197 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0278/0.0278, allocations: 5.406 MB / 295.9 MB, free: 9.461 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 55.91 kB / 412.3 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08714/0.08849, allocations: 50.62 MB / 462.9 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleSymmetric): time 0.004739/0.09328, allocations: 3.439 MB / 466.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002389/0.0957, allocations: 1.262 MB / 467.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004487/0.09622, allocations: 7.938 kB / 467.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008803/0.09712, allocations: 234.7 kB / 467.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005662/0.09771, allocations: 174.8 kB / 468 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002615/0.09799, allocations: 115.8 kB / 468.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007033/0.0987, allocations: 0.5759 MB / 468.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.09897, allocations: 128.1 kB / 468.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003294/0.0993, allocations: 211.2 kB / 469.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003639/0.09968, allocations: 266.9 kB / 469.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.0998, allocations: 52 kB / 469.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.09996, allocations: 56 kB / 469.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.1001, allocations: 115.6 kB / 469.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002843/0.1004, allocations: 230.8 kB / 469.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00075/0.1011, allocations: 0.5448 MB / 470.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.1011, allocations: 4 kB / 470.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1012, allocations: 0 / 470.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.154e-05/0.1012, allocations: 0 / 470.3 MB, free: 12.91 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.002371/0.1036, allocations: 0.8332 MB / 471.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1036, allocations: 12.03 kB / 471.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.777e-05/0.1037, allocations: 62.67 kB / 471.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.1039, allocations: 48.66 kB / 471.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.1052, allocations: 0.4888 MB / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.1053, allocations: 24.5 kB / 471.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.11e-05/0.1053, allocations: 31.94 kB / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007036/0.1061, allocations: 317.3 kB / 472.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.1061, allocations: 4 kB / 472.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/0.1061, allocations: 12 kB / 472.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1061, allocations: 4 kB / 472.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007551/0.1069, allocations: 282 kB / 472.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/0.1096, allocations: 1.327 MB / 473.7 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007055/0.1103, allocations: 306.6 kB / 474 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000425/0.1107, allocations: 144.8 kB / 474.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.1108, allocations: 0 / 474.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.1108, allocations: 34.56 kB / 474.2 MB, free: 8.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.022e-06/0.1108, allocations: 0 / 474.2 MB, free: 8.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.003642/0.1145, allocations: 0.7529 MB / 475 MB, free: 7.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.1145, allocations: 67.33 kB / 475 MB, free: 7.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000527/0.1151, allocations: 381.6 kB / 475.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.1151, allocations: 25.7 kB / 475.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.1153, allocations: 220.2 kB / 475.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.89e-05/0.1154, allocations: 63.47 kB / 475.7 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.1155, allocations: 49.69 kB / 475.8 MB, free: 7.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.1157, allocations: 346.8 kB / 476.1 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003478/0.116, allocations: 115.9 kB / 476.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003577/0.1164, allocations: 155.5 kB / 476.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006345/0.117, allocations: 246.4 kB / 476.6 MB, free: 6.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1171, allocations: 0 / 476.6 MB, free: 6.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.002726/0.1198, allocations: 0.6376 MB / 477.2 MB, free: 5.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.1198, allocations: 4 kB / 477.2 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.1198, allocations: 0 / 477.2 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009759/0.1208, allocations: 257.5 kB / 477.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.1211, allocations: 47.97 kB / 477.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00685/0.128, allocations: 3.926 MB / 481.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005028/0.1285, allocations: 47.78 kB / 481.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.538e-05/0.1286, allocations: 8 kB / 481.5 MB, free: 1.062 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.0002689/0.1288, allocations: 156.5 kB / 481.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.129, allocations: 39.7 kB / 481.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.1291, allocations: 35.25 kB / 481.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.1291, allocations: 4 kB / 481.7 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1291, allocations: 3.938 kB / 481.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1292, allocations: 0 / 481.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.1321, allocations: 0.937 MB / 482.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.1321, allocations: 0 / 482.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.1322, allocations: 23.98 kB / 482.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004563/0.1327, allocations: 180.6 kB / 482.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.1327, allocations: 7.984 kB / 482.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004319/0.137, allocations: 2.136 MB / 485 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1371, allocations: 0 / 485 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.1393, allocations: 0.5631 MB / 485.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00024/0.1395, allocations: 136.8 kB / 485.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.854e-05/0.1396, allocations: 4 kB / 485.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/0.1399, allocations: 27.91 kB / 485.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.3e-05/0.14, allocations: 20.06 kB / 485.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.14, allocations: 7.984 kB / 485.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003659/0.1404, allocations: 275.1 kB / 486.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1404, allocations: 0 / 486.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005702/0.141, allocations: 95.89 kB / 486.2 MB, free: 12.18 MB / 366.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.0025/0.1435, allocations: 1.112 MB / 487.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.1447, allocations: 0.5137 MB / 487.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1447, allocations: 0 / 487.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003937/0.1451, allocations: 222.7 kB / 488 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005233/0.1456, allocations: 81.45 kB / 488.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008271/0.1539, allocations: 3.815 MB / 491.9 MB, free: 6.246 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003722/0.1543, allocations: 0.7873 MB / 492.7 MB, free: 5.434 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001785/0.1545, allocations: 39.27 kB / 492.7 MB, free: 5.398 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.1547, allocations: 119.4 kB / 492.8 MB, free: 5.281 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.1547, allocations: 4 kB / 492.8 MB, free: 5.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03223/0.1869, allocations: 10.23 MB / 0.4913 GB, free: 11.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/11.98, allocations: 12.86 kB / 0.4913 GB, free: 11.2 MB / 382.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)