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.01011/0.01011, allocations: 100 kB / 15.73 MB, free: 6.062 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.002302/0.002303, allocations: 192.6 kB / 16.67 MB, free: 5.973 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02978/0.02978, allocations: 5.403 MB / 295.9 MB, free: 9.461 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 60.12 kB / 412.3 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09857/0.1005, allocations: 50.63 MB / 462.9 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleSymmetric): time 0.004785/0.1053, allocations: 3.44 MB / 466.4 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.1075, allocations: 1.266 MB / 467.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002373/0.1077, allocations: 4 kB / 467.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006021/0.1083, allocations: 218.6 kB / 467.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003809/0.1088, allocations: 162.8 kB / 468 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002109/0.109, allocations: 115.8 kB / 468.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006271/0.1096, allocations: 0.5759 MB / 468.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002474/0.1099, allocations: 124.1 kB / 468.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002523/0.1102, allocations: 211.2 kB / 469 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003983/0.1106, allocations: 262.9 kB / 469.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.333e-05/0.1107, allocations: 52 kB / 469.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.1108, allocations: 64 kB / 469.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.1109, allocations: 107.6 kB / 469.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002437/0.1112, allocations: 238.8 kB / 469.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006212/0.1118, allocations: 0.5409 MB / 470.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1118, allocations: 3.938 kB / 470.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1118, allocations: 0 / 470.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.1118, allocations: 4 kB / 470.3 MB, free: 12.94 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.001995/0.1138, allocations: 0.8332 MB / 471.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.1139, allocations: 12.03 kB / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.878e-05/0.114, allocations: 58.73 kB / 471.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.1141, allocations: 44.66 kB / 471.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.1154, allocations: 0.4888 MB / 471.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.1155, allocations: 24.5 kB / 471.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.483e-05/0.1155, allocations: 24 kB / 471.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007476/0.1163, allocations: 325.2 kB / 472.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.1163, allocations: 0 / 472.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.641e-05/0.1163, allocations: 12 kB / 472.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.1164, allocations: 8 kB / 472.1 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007686/0.1171, allocations: 278 kB / 472.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002571/0.1197, allocations: 1.339 MB / 473.7 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007215/0.1205, allocations: 299.6 kB / 474 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004492/0.1209, allocations: 144.8 kB / 474.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.191e-05/0.121, allocations: 0 / 474.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.859e-05/0.121, allocations: 34.56 kB / 474.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.121, allocations: 3.938 kB / 474.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.005156/0.1262, allocations: 0.749 MB / 474.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/0.1263, allocations: 55.41 kB / 475 MB, free: 7.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007979/0.1271, allocations: 385.6 kB / 475.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.66e-05/0.1272, allocations: 29.7 kB / 475.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/0.1274, allocations: 220.2 kB / 475.6 MB, free: 7.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.79e-05/0.1275, allocations: 63.47 kB / 475.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.1277, allocations: 57.69 kB / 475.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002312/0.128, allocations: 342.8 kB / 476.1 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004878/0.1284, allocations: 119.9 kB / 476.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005567/0.129, allocations: 151.6 kB / 476.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.13, allocations: 258.3 kB / 476.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1301, allocations: 0 / 476.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.003929/0.134, allocations: 0.6298 MB / 477.2 MB, free: 5.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.134, allocations: 4 kB / 477.2 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1341, allocations: 4 kB / 477.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/0.1353, allocations: 253.6 kB / 477.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003728/0.1356, allocations: 47.91 kB / 477.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/0.1472, allocations: 3.915 MB / 481.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007156/0.148, allocations: 47.86 kB / 481.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.686e-05/0.1481, allocations: 15.98 kB / 481.5 MB, free: 1.098 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.0003044/0.1484, allocations: 146.4 kB / 481.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.1485, allocations: 39.7 kB / 481.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.1487, allocations: 35.25 kB / 481.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.1487, allocations: 4 kB / 481.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1487, allocations: 4 kB / 481.7 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/0.1487, allocations: 7.938 kB / 481.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005009/0.1538, allocations: 0.932 MB / 482.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.1538, allocations: 8.031 kB / 482.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001916/0.154, allocations: 23.92 kB / 482.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008095/0.1548, allocations: 180.6 kB / 482.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/0.1549, allocations: 4 kB / 482.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008244/0.1631, allocations: 2.148 MB / 485 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1632, allocations: 0 / 485 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00396/0.1672, allocations: 0.5744 MB / 485.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002928/0.1675, allocations: 132.7 kB / 485.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.478e-05/0.1676, allocations: 4 kB / 485.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005177/0.1681, allocations: 27.97 kB / 485.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.036e-05/0.1682, allocations: 11.98 kB / 485.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-05/0.1682, allocations: 4 kB / 485.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005604/0.1688, allocations: 275.1 kB / 486 MB, free: 12.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1688, allocations: 0 / 486 MB, free: 12.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008612/0.1697, allocations: 99.89 kB / 486.1 MB, free: 12.21 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.003965/0.1737, allocations: 1.105 MB / 487.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.1754, allocations: 0.5098 MB / 487.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/0.1754, allocations: 0 / 487.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005835/0.176, allocations: 222.5 kB / 488 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008257/0.1769, allocations: 85.59 kB / 488.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00981/0.1867, allocations: 3.809 MB / 491.9 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.1873, allocations: 0.7834 MB / 492.6 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002521/0.1876, allocations: 43.27 kB / 492.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.1878, allocations: 119.4 kB / 492.8 MB, free: 5.32 MB / 366.1 MB Notification: Performance of SimCode: time 1.463e-06/0.1878, allocations: 0 / 492.8 MB, free: 5.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04367/0.2315, allocations: 10.23 MB / 0.4912 GB, free: 11.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.5, allocations: 20.47 kB / 0.4913 GB, free: 11.24 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)