Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.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.SimpleModuleShadow,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleShadow,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow",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.001133/0.001133, 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.00114/0.00114, allocations: 198.5 kB / 16.54 MB, free: 6.672 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1353/0.1353, allocations: 5.392 MB / 295.8 MB, free: 2.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 63.89 kB / 361 MB, free: 14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08732/0.08867, allocations: 50.62 MB / 411.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleShadow): time 0.005414/0.09412, allocations: 4.385 MB / 416 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002797/0.09694, allocations: 1.593 MB / 417.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004025/0.09736, allocations: 11.94 kB / 417.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008734/0.09827, allocations: 305 kB / 417.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006106/0.09889, allocations: 226.4 kB / 418.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004718/0.09937, allocations: 207.6 kB / 418.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1671/0.2665, allocations: 25.61 MB / 444 MB, free: 32.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007842/0.2743, allocations: 7.943 MB / 451.9 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01/0.2844, allocations: 9.324 MB / 461.2 MB, free: 24.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01476/0.2992, allocations: 10.83 MB / 472.1 MB, free: 19.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006458/0.3057, allocations: 2.708 MB / 474.8 MB, free: 19.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008738/0.3144, allocations: 2.718 MB / 477.5 MB, free: 19.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006385/0.3208, allocations: 5.119 MB / 482.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01657/0.3374, allocations: 9.536 MB / 492.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02833/0.3657, allocations: 28.69 MB / 0.5086 GB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3658, allocations: 0 / 0.5086 GB, free: 12.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3658, allocations: 0 / 0.5086 GB, free: 12.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006355/0.3664, allocations: 4 kB / 0.5086 GB, free: 12.4 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2129 * Number of variables: 2129 Notification: Performance of Generate backend data structure: time 0.103/0.4695, allocations: 30.81 MB / 0.5387 GB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.4695, allocations: 8.031 kB / 0.5387 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005183/0.4747, allocations: 1.122 MB / 0.5398 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006712/0.4815, allocations: 1.452 MB / 0.5412 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05394/0.5354, allocations: 18.79 MB / 0.5596 GB, free: 8.219 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007022/0.5362, allocations: 0.6373 MB / 0.5602 GB, free: 7.578 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003919/0.5401, allocations: 0.8125 MB / 0.561 GB, free: 6.766 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03975/0.5799, allocations: 15.67 MB / 0.5763 GB, free: 6.574 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003428/0.5802, allocations: 23.81 kB / 0.5763 GB, free: 6.551 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003477/0.5837, allocations: 344 kB / 0.5767 GB, free: 6.215 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001976/0.5839, allocations: 219.9 kB / 0.5769 GB, free: 6 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3553/0.9393, allocations: 17.59 MB / 0.594 GB, free: 96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.104/1.043, allocations: 57.5 MB / 0.6502 GB, free: 67.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03046/1.074, allocations: 21.37 MB / 0.6711 GB, free: 53.15 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01194/1.086, allocations: 7.456 MB / 0.6784 GB, free: 48.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002885/1.086, allocations: 70.78 kB / 0.6784 GB, free: 48.45 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.727e-05/1.086, allocations: 78.08 kB / 0.6785 GB, free: 48.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=448): time 5.6e-06/1.086, allocations: 0 / 0.6785 GB, free: 48.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=448): time 0.101/1.187, allocations: 36.3 MB / 0.7139 GB, free: 12.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.628e-05/1.187, allocations: 98.92 kB / 0.714 GB, free: 12.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02995/1.217, allocations: 15.2 MB / 0.7289 GB, free: 13.11 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001706/1.219, allocations: 109.7 kB / 0.729 GB, free: 12.99 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.007955/1.227, allocations: 6.091 MB / 0.7349 GB, free: 7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002885/1.23, allocations: 1.576 MB / 0.7365 GB, free: 5.402 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008952/1.239, allocations: 2.093 MB / 0.7385 GB, free: 3.293 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/1.239, allocations: 309.7 kB / 0.7388 GB, free: 2.988 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01678/1.256, allocations: 7.644 MB / 0.7463 GB, free: 11.33 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01952/1.275, allocations: 8.838 MB / 0.7549 GB, free: 2.152 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03224/1.308, allocations: 14.4 MB / 0.769 GB, free: 3.352 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.811e-05/1.308, allocations: 8 kB / 0.769 GB, free: 3.344 MB / 494.1 MB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.2905/1.598, allocations: 39.95 MB / 0.808 GB, free: 131.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.897e-05/1.598, allocations: 15 kB / 0.808 GB, free: 131.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.44e-05/1.598, allocations: 24 kB / 0.808 GB, free: 131.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04795/1.646, allocations: 25.73 MB / 0.8332 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006851/1.653, allocations: 1.494 MB / 0.8346 GB, free: 126.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.51/2.163, allocations: 202.9 MB / 1.033 GB, free: 92.08 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01724/2.18, allocations: 2.567 MB / 1.035 GB, free: 91.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002392/2.183, allocations: 372.8 kB / 1.036 GB, free: 90.96 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 105 * 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 (840): * Single equations (assignments): 791 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 48 * 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): 48 systems {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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 {(47,200)} Notification: Performance of prepare postOptimizeDAE: time 0.008371/2.191, allocations: 4.521 MB / 1.04 GB, free: 88.34 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003101/2.194, allocations: 1.154 MB / 1.041 GB, free: 87.79 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09194/2.286, allocations: 31.81 MB / 1.072 GB, free: 59.64 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.261e-05/2.286, allocations: 44 kB / 1.072 GB, free: 59.59 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/2.286, allocations: 0 / 1.072 GB, free: 59.59 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001017/2.287, allocations: 19.92 kB / 1.072 GB, free: 59.57 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1261/2.413, allocations: 46.64 MB / 1.118 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.328e-05/2.413, allocations: 7.984 kB / 1.118 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/2.415, allocations: 454.5 kB / 1.118 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02453/2.439, allocations: 15.48 MB / 1.133 GB, free: 13.2 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00121/2.44, allocations: 111.9 kB / 1.133 GB, free: 13.09 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4636/2.904, allocations: 115 MB / 1.246 GB, free: 85.12 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/2.904, allocations: 0 / 1.246 GB, free: 85.12 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08997/2.994, allocations: 30.87 MB / 1.276 GB, free: 54.43 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007112/3.001, allocations: 2.662 MB / 1.279 GB, free: 51.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004311/3.005, allocations: 79.83 kB / 1.279 GB, free: 51.72 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0111/3.017, allocations: 1.393 MB / 1.28 GB, free: 50.33 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008248/3.017, allocations: 272.1 kB / 1.28 GB, free: 50.06 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001032/3.018, allocations: 143.9 kB / 1.28 GB, free: 49.92 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.01879/3.037, allocations: 10.49 MB / 1.291 GB, free: 39.51 MB / 0.4982 GB Notification: Performance of sort global known variables: time 7.52e-07/3.037, allocations: 0 / 1.291 GB, free: 39.51 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01674/3.054, allocations: 3.725 MB / 1.294 GB, free: 35.89 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (250): * Single equations (assignments): 249 * 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 {(48,154)} Notification: Performance of Backend phase and start with SimCode phase: time 0.2802/3.334, allocations: 31.55 MB / 1.325 GB, free: 122.9 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.09404/3.428, allocations: 39.92 MB / 1.364 GB, free: 116.6 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/3.428, allocations: 1.375 kB / 1.364 GB, free: 116.6 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.0558/3.484, allocations: 17.29 MB / 1.381 GB, free: 112.7 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01758/3.502, allocations: 3.11 MB / 1.384 GB, free: 111.5 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5966/4.098, allocations: 242.2 MB / 1.621 GB, free: 87.43 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009309/4.108, allocations: 8.687 MB / 1.629 GB, free: 84.78 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01097/4.119, allocations: 3.891 MB / 1.633 GB, free: 83.12 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007608/4.126, allocations: 4.995 MB / 1.638 GB, free: 78.43 MB / 0.5138 GB Notification: Performance of SimCode: time 8.71e-07/4.126, allocations: 4 kB / 1.638 GB, free: 78.42 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8564/4.983, allocations: 395 MB / 2.023 GB, free: 65.55 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.5/26.48, allocations: 19.14 kB / 2.023 GB, free: 65.54 MB / 0.5138 GB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe 2>&1)