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.006562/0.006561, allocations: 99.69 kB / 15.73 MB, free: 6.039 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.001812/0.001812, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1453/0.1453, allocations: 5.371 MB / 295.9 MB, free: 2.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 63.91 kB / 412.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2561, allocations: 50.6 MB / 462.9 MB, free: 21.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleShadow): time 0.00523/0.2613, allocations: 4.403 MB / 467.3 MB, free: 18.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003244/0.2646, allocations: 1.597 MB / 468.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005514/0.2652, allocations: 7.406 kB / 468.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009465/0.2662, allocations: 292.9 kB / 469.2 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006709/0.2669, allocations: 240.8 kB / 469.4 MB, free: 16.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005241/0.2674, allocations: 211.1 kB / 469.6 MB, free: 16.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.022/0.2895, allocations: 25.71 MB / 495.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0121/0.3016, allocations: 7.951 MB / 0.4915 GB, free: 8.797 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01746/0.3191, allocations: 9.333 MB / 0.5006 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01941/0.3386, allocations: 10.87 MB / 0.5112 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008405/0.347, allocations: 2.703 MB / 0.5139 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01232/0.3594, allocations: 2.707 MB / 0.5165 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01162/0.3711, allocations: 5.12 MB / 0.5215 GB, free: 9.984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02462/0.3957, allocations: 9.535 MB / 0.5308 GB, free: 420 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03876/0.4345, allocations: 29 MB / 0.5591 GB, free: 3.32 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.4345, allocations: 0 / 0.5591 GB, free: 3.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4346, allocations: 4 kB / 0.5592 GB, free: 3.316 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008682/0.4354, allocations: 0 / 0.5592 GB, free: 3.316 MB / 430.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.505/0.9405, allocations: 31.82 MB / 0.5902 GB, free: 77.94 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.9405, allocations: 14 kB / 0.5902 GB, free: 77.94 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006246/0.9468, allocations: 1.119 MB / 0.5913 GB, free: 77.33 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00944/0.9562, allocations: 1.525 MB / 0.5928 GB, free: 76.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05427/1.011, allocations: 19.06 MB / 0.6114 GB, free: 67.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008165/1.011, allocations: 0.6233 MB / 0.612 GB, free: 67.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00419/1.016, allocations: 0.8166 MB / 0.6128 GB, free: 66.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03279/1.048, allocations: 15.68 MB / 0.6282 GB, free: 53.53 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002281/1.049, allocations: 23.81 kB / 0.6282 GB, free: 53.51 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002297/1.051, allocations: 348 kB / 0.6285 GB, free: 53.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/1.051, allocations: 212 kB / 0.6287 GB, free: 52.96 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03515/1.086, allocations: 17.6 MB / 0.6459 GB, free: 35.34 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1112/1.197, allocations: 57.33 MB / 0.7019 GB, free: 9.684 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04068/1.238, allocations: 21.37 MB / 0.7227 GB, free: 3.68 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01637/1.255, allocations: 7.445 MB / 0.73 GB, free: 12.22 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004301/1.255, allocations: 79.31 kB / 0.7301 GB, free: 12.14 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.67e-05/1.255, allocations: 82.08 kB / 0.7302 GB, free: 12.05 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=448): time 7.264e-06/1.255, allocations: 0 / 0.7302 GB, free: 12.05 MB / 0.4982 GB Notification: Performance of matching and sorting (n=448): time 0.1259/1.381, allocations: 36.36 MB / 0.7657 GB, free: 7.633 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/1.381, allocations: 99.95 kB / 0.7658 GB, free: 7.523 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03651/1.418, allocations: 15.19 MB / 0.7806 GB, free: 8.414 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.002067/1.42, allocations: 113.7 kB / 0.7807 GB, free: 8.297 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.009681/1.43, allocations: 6.214 MB / 0.7868 GB, free: 2.051 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00341/1.433, allocations: 1.643 MB / 0.7884 GB, free: 404 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2619/1.695, allocations: 2.107 MB / 0.7904 GB, free: 174 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.592e-05/1.695, allocations: 306.4 kB / 0.7907 GB, free: 173.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01967/1.715, allocations: 7.651 MB / 0.7982 GB, free: 173.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02071/1.735, allocations: 8.832 MB / 0.8068 GB, free: 169.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03142/1.767, allocations: 14.4 MB / 0.8209 GB, free: 164 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.775e-05/1.767, allocations: 7.875 kB / 0.8209 GB, free: 164 MB / 0.545 GB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.1165/1.883, allocations: 40 MB / 0.86 GB, free: 138.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.039e-05/1.884, allocations: 15.94 kB / 0.86 GB, free: 138.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.482e-05/1.884, allocations: 24 kB / 0.86 GB, free: 138.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04447/1.928, allocations: 25.7 MB / 0.8851 GB, free: 112.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007248/1.935, allocations: 1.498 MB / 0.8866 GB, free: 110.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6308/2.566, allocations: 202.8 MB / 1.085 GB, free: 133.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01977/2.586, allocations: 2.59 MB / 1.087 GB, free: 131.5 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002988/2.589, allocations: 379.7 kB / 1.087 GB, free: 131.1 MB / 0.5607 GB 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.009977/2.599, allocations: 4.521 MB / 1.092 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00466/2.604, allocations: 1.22 MB / 1.093 GB, free: 126.1 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09505/2.699, allocations: 31.81 MB / 1.124 GB, free: 94.52 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.248e-05/2.699, allocations: 44 kB / 1.124 GB, free: 94.47 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/2.699, allocations: 3.984 kB / 1.124 GB, free: 94.47 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.356e-05/2.699, allocations: 19.92 kB / 1.124 GB, free: 94.45 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1501/2.849, allocations: 46.47 MB / 1.17 GB, free: 48.09 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.319e-05/2.849, allocations: 3.938 kB / 1.17 GB, free: 48.08 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003129/2.852, allocations: 451.4 kB / 1.17 GB, free: 47.64 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03003/2.882, allocations: 15.46 MB / 1.185 GB, free: 32.21 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001487/2.884, allocations: 111.9 kB / 1.185 GB, free: 32.11 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.567/3.451, allocations: 115 MB / 1.298 GB, free: 131.9 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/3.451, allocations: 7.984 kB / 1.298 GB, free: 131.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09315/3.544, allocations: 30.94 MB / 1.328 GB, free: 101.7 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009206/3.553, allocations: 2.72 MB / 1.33 GB, free: 99.02 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006183/3.56, allocations: 68 kB / 1.331 GB, free: 98.96 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01182/3.571, allocations: 1.4 MB / 1.332 GB, free: 97.55 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009187/3.572, allocations: 276.1 kB / 1.332 GB, free: 97.29 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001247/3.574, allocations: 142.4 kB / 1.332 GB, free: 97.15 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.01755/3.591, allocations: 10.49 MB / 1.343 GB, free: 86.73 MB / 0.5607 GB Notification: Performance of sort global known variables: time 4.91e-07/3.591, allocations: 0 / 1.343 GB, free: 86.73 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01799/3.609, allocations: 3.727 MB / 1.346 GB, free: 83.12 MB / 0.5607 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.09405/3.703, allocations: 31.62 MB / 1.377 GB, free: 51.59 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.07612/3.779, allocations: 33.18 MB / 1.409 GB, free: 17.58 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/3.779, allocations: 0 / 1.409 GB, free: 17.58 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.05184/3.831, allocations: 17.31 MB / 1.426 GB, free: 256 kB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.243/4.074, allocations: 3.103 MB / 1.429 GB, free: 182.9 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4065/4.481, allocations: 171.5 MB / 1.597 GB, free: 57.98 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01259/4.494, allocations: 8.69 MB / 1.605 GB, free: 49.24 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01098/4.505, allocations: 3.772 MB / 1.609 GB, free: 45.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008442/4.513, allocations: 5.002 MB / 1.614 GB, free: 40.49 MB / 0.5763 GB Notification: Performance of SimCode: time 1.183e-06/4.513, allocations: 0 / 1.614 GB, free: 40.49 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.083/5.596, allocations: 397 MB / 2.002 GB, free: 59.21 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 55.43/61.03, allocations: 7.078 kB / 2.002 GB, free: 59.21 MB / 0.5763 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)