Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002218/0.002218, allocations: 217.2 kB / 22.25 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.505/1.505, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo): time 0.03047/0.03047, allocations: 5.483 MB / 317.9 MB, free: 13.84 MB / 254.1 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PhotoVoltaics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.89 kB / 446.2 MB, free: 4.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1148, allocations: 54.61 MB / 0.4891 GB, free: 13.48 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.008798/0.1236, allocations: 6.432 MB / 0.4953 GB, free: 7.012 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004791/0.1284, allocations: 2.651 MB / 0.4979 GB, free: 4.352 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005543/0.1289, allocations: 23.94 kB / 0.498 GB, free: 4.328 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002731/0.1316, allocations: 1.134 MB / 0.4991 GB, free: 3.191 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001627/0.1333, allocations: 0.6253 MB / 0.4997 GB, free: 2.562 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008013/0.1341, allocations: 370.2 kB / 0.5 GB, free: 2.203 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001567/0.1356, allocations: 1.149 MB / 0.5012 GB, free: 1.047 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.1372, allocations: 0.8833 MB / 0.502 GB, free: 140 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008225/0.138, allocations: 494.2 kB / 0.5025 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008443/0.1389, allocations: 0.5719 MB / 0.503 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000185/0.1391, allocations: 128 kB / 0.5032 GB, free: 14.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006945/0.1398, allocations: 299.8 kB / 0.5035 GB, free: 14.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002257/0.14, allocations: 263.1 kB / 0.5037 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005576/0.1405, allocations: 0.5444 MB / 0.5042 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00183/0.1424, allocations: 1.494 MB / 0.5057 GB, free: 12.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1424, allocations: 0 / 0.5057 GB, free: 12.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1424, allocations: 0 / 0.5057 GB, free: 12.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.538e-05/0.1424, allocations: 3.938 kB / 0.5057 GB, free: 12.35 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.004103/0.1465, allocations: 1.492 MB / 0.5072 GB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1466, allocations: 8.031 kB / 0.5072 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001774/0.1467, allocations: 144.1 kB / 0.5073 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002133/0.1489, allocations: 356 kB / 0.5076 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.1506, allocations: 0.6175 MB / 0.5082 GB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.297e-05/0.1506, allocations: 73.94 kB / 0.5083 GB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/0.1508, allocations: 95.95 kB / 0.5084 GB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001868/0.1527, allocations: 0.9971 MB / 0.5094 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.1527, allocations: 0 / 0.5094 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.775e-05/0.1528, allocations: 36 kB / 0.5094 GB, free: 8.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.747e-05/0.1528, allocations: 32 kB / 0.5094 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.1546, allocations: 0.8432 MB / 0.5103 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00637/0.161, allocations: 3.543 MB / 0.5137 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001898/0.1629, allocations: 0.6185 MB / 0.5143 GB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005302/0.1634, allocations: 215.5 kB / 0.5145 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.546e-05/0.1635, allocations: 19.97 kB / 0.5146 GB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006546/0.1642, allocations: 321.8 kB / 0.5149 GB, free: 2.68 MB / 382.1 MB Notification: Performance of pre-optimization done (n=47): time 2.484e-06/0.1642, allocations: 0 / 0.5149 GB, free: 2.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.002871/0.167, allocations: 0.8539 MB / 0.5157 GB, free: 1.812 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.1671, allocations: 136.5 kB / 0.5158 GB, free: 1.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007323/0.1679, allocations: 0.5058 MB / 0.5163 GB, free: 1.133 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.328e-05/0.1679, allocations: 33.7 kB / 0.5164 GB, free: 1.094 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004197/0.1683, allocations: 479.6 kB / 0.5168 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.1685, allocations: 170.6 kB / 0.517 GB, free: 460 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.1687, allocations: 150.5 kB / 0.5171 GB, free: 304 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.2254/0.3942, allocations: 359.4 kB / 0.5175 GB, free: 32.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006793/0.3948, allocations: 232.8 kB / 0.5177 GB, free: 32.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000564/0.3954, allocations: 427.7 kB / 0.5181 GB, free: 31.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.3965, allocations: 0.7021 MB / 0.5188 GB, free: 31.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.3965, allocations: 0 / 0.5188 GB, free: 31.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00198/0.3985, allocations: 0.8582 MB / 0.5196 GB, free: 31.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.166e-05/0.3985, allocations: 38.7 kB / 0.5196 GB, free: 31.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.3986, allocations: 4.156 kB / 0.5197 GB, free: 31.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005226/0.3991, allocations: 87.41 kB / 0.5197 GB, free: 31.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007481/0.3998, allocations: 167.5 kB / 0.5199 GB, free: 31.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/0.4012, allocations: 1.476 MB / 0.5213 GB, free: 30.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006807/0.4019, allocations: 89.72 kB / 0.5214 GB, free: 30.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.616e-05/0.4019, allocations: 34.67 kB / 0.5215 GB, free: 30.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 11 (mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,mpTracker.vRef,$PRE.mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * 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.0003661/0.4023, allocations: 272.7 kB / 0.5217 GB, free: 30.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.4024, allocations: 58.03 kB / 0.5218 GB, free: 30.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001448/0.4038, allocations: 0.6659 MB / 0.5224 GB, free: 29.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-06/0.4038, allocations: 6.266 kB / 0.5224 GB, free: 29.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.4038, allocations: 0 / 0.5224 GB, free: 29.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.4039, allocations: 9.469 kB / 0.5224 GB, free: 29.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/0.4065, allocations: 1.517 MB / 0.5239 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4065, allocations: 1.125 kB / 0.5239 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003214/0.4068, allocations: 78.31 kB / 0.524 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005499/0.4073, allocations: 254.7 kB / 0.5242 GB, free: 29.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.366e-05/0.4074, allocations: 15.06 kB / 0.5243 GB, free: 29.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008905/0.4083, allocations: 0.8337 MB / 0.5251 GB, free: 28.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4083, allocations: 3.625 kB / 0.5251 GB, free: 28.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.4103, allocations: 1.012 MB / 0.5261 GB, free: 28.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/0.4105, allocations: 108.3 kB / 0.5262 GB, free: 28.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.652e-05/0.4106, allocations: 13.59 kB / 0.5262 GB, free: 28.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004346/0.411, allocations: 33.7 kB / 0.5262 GB, free: 28.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.705e-05/0.4111, allocations: 34.7 kB / 0.5262 GB, free: 28.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.295e-05/0.4111, allocations: 18.38 kB / 0.5263 GB, free: 28.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004516/0.4116, allocations: 340.9 kB / 0.5266 GB, free: 28.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4116, allocations: 1.5 kB / 0.5266 GB, free: 28.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008821/0.4125, allocations: 246.4 kB / 0.5268 GB, free: 28.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.integrator.y,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002473/0.415, allocations: 1.612 MB / 0.5284 GB, free: 27.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.4165, allocations: 0.7261 MB / 0.5291 GB, free: 27.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4165, allocations: 0 / 0.5291 GB, free: 27.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005788/0.4171, allocations: 287.7 kB / 0.5294 GB, free: 27.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006902/0.4178, allocations: 97.2 kB / 0.5295 GB, free: 27.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009251/0.427, allocations: 5.525 MB / 0.5349 GB, free: 23.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004515/0.4275, allocations: 0.9458 MB / 0.5358 GB, free: 23.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003489/0.4278, allocations: 89.42 kB / 0.5359 GB, free: 23.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.4282, allocations: 302.1 kB / 0.5362 GB, free: 22.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4282, allocations: 0 / 0.5362 GB, free: 22.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04616/0.4744, allocations: 15.19 MB / 0.551 GB, free: 15.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/15.74, allocations: 20.7 kB / 0.551 GB, free: 15.34 MB / 382.1 MB " [Timeout remaining time 644] (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.796655574995384] Failed to read output from testmodel.py, exit status != 0: 15.867129684003885 15.877514005 15.732732255 Calling exit ...