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.008121/0.008121, allocations: 95.98 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.001777/0.001777, allocations: 198.6 kB / 16.68 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1539/0.1539, allocations: 5.388 MB / 295.9 MB, free: 2.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 63.89 kB / 412.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2527, allocations: 50.61 MB / 462.9 MB, free: 21.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleShadow): time 0.00511/0.2578, allocations: 4.394 MB / 467.3 MB, free: 18.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002703/0.2606, allocations: 1.593 MB / 468.9 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004551/0.2611, allocations: 16.25 kB / 468.9 MB, free: 17.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.2621, allocations: 312 kB / 469.2 MB, free: 16.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007338/0.2629, allocations: 244.9 kB / 469.5 MB, free: 16.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005514/0.2635, allocations: 211.2 kB / 469.7 MB, free: 16.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02216/0.2856, allocations: 25.72 MB / 495.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01103/0.2967, allocations: 7.947 MB / 0.4915 GB, free: 8.793 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01466/0.3114, allocations: 9.361 MB / 0.5007 GB, free: 15.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01924/0.3307, allocations: 10.85 MB / 0.5113 GB, free: 4.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007251/0.338, allocations: 2.703 MB / 0.5139 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008979/0.347, allocations: 2.719 MB / 0.5166 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008706/0.3557, allocations: 5.116 MB / 0.5216 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02372/0.3795, allocations: 9.539 MB / 0.5309 GB, free: 396 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03762/0.4172, allocations: 28.99 MB / 0.5592 GB, free: 3.312 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.097e-05/0.4172, allocations: 3.984 kB / 0.5592 GB, free: 3.309 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4172, allocations: 0 / 0.5592 GB, free: 3.309 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0009123/0.4182, allocations: 0 / 0.5592 GB, free: 3.309 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.5683/0.9865, allocations: 31.83 MB / 0.5903 GB, free: 74.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.9865, allocations: 12.31 kB / 0.5903 GB, free: 74.67 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007416/0.9939, allocations: 1.121 MB / 0.5914 GB, free: 74.06 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/1.005, allocations: 1.525 MB / 0.5929 GB, free: 73.24 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06133/1.066, allocations: 19.06 MB / 0.6115 GB, free: 64.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001198/1.067, allocations: 0.6283 MB / 0.6121 GB, free: 63.83 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004751/1.072, allocations: 0.8153 MB / 0.6129 GB, free: 63.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03789/1.11, allocations: 15.67 MB / 0.6282 GB, free: 49.8 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005406/1.111, allocations: 24.5 kB / 0.6282 GB, free: 49.8 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005317/1.116, allocations: 348 kB / 0.6286 GB, free: 49.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002035/1.116, allocations: 212 kB / 0.6288 GB, free: 49.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03904/1.155, allocations: 17.6 MB / 0.6459 GB, free: 31.71 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1289/1.284, allocations: 57.31 MB / 0.7019 GB, free: 6.387 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06393/1.348, allocations: 21.37 MB / 0.7228 GB, free: 388 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0244/1.373, allocations: 7.461 MB / 0.7301 GB, free: 8.906 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003751/1.373, allocations: 62.45 kB / 0.7301 GB, free: 8.852 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/1.373, allocations: 78.02 kB / 0.7302 GB, free: 8.766 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=448): time 1.351e-05/1.373, allocations: 0 / 0.7302 GB, free: 8.766 MB / 0.4982 GB Notification: Performance of matching and sorting (n=448): time 0.2097/1.583, allocations: 36.36 MB / 0.7657 GB, free: 4.371 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/1.583, allocations: 94.92 kB / 0.7658 GB, free: 4.266 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02617/1.609, allocations: 15.2 MB / 0.7806 GB, free: 5.148 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.00172/1.611, allocations: 113.7 kB / 0.7808 GB, free: 5.031 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.2366/1.847, allocations: 6.202 MB / 0.7868 GB, free: 174.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003438/1.851, allocations: 1.655 MB / 0.7884 GB, free: 174.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009057/1.86, allocations: 2.107 MB / 0.7905 GB, free: 174.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.142e-05/1.86, allocations: 303 kB / 0.7908 GB, free: 174.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0291/1.889, allocations: 7.651 MB / 0.7982 GB, free: 173.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02603/1.915, allocations: 8.829 MB / 0.8069 GB, free: 170 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03065/1.946, allocations: 14.4 MB / 0.8209 GB, free: 164.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-05/1.946, allocations: 8.406 kB / 0.8209 GB, free: 164.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.1276/2.074, allocations: 40 MB / 0.86 GB, free: 136.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.676e-05/2.074, allocations: 15.94 kB / 0.86 GB, free: 136.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.576e-05/2.074, allocations: 26.73 kB / 0.86 GB, free: 136.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04619/2.12, allocations: 25.7 MB / 0.8851 GB, free: 110.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007413/2.127, allocations: 1.494 MB / 0.8866 GB, free: 109.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6126/2.74, allocations: 202.8 MB / 1.085 GB, free: 131 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01918/2.759, allocations: 2.589 MB / 1.087 GB, free: 129 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002475/2.762, allocations: 383.7 kB / 1.088 GB, free: 128.6 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.008966/2.771, allocations: 4.522 MB / 1.092 GB, free: 124.2 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004367/2.775, allocations: 1.217 MB / 1.093 GB, free: 123.7 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09313/2.868, allocations: 31.81 MB / 1.124 GB, free: 92.06 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-05/2.868, allocations: 44 kB / 1.124 GB, free: 92.02 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/2.868, allocations: 3.984 kB / 1.124 GB, free: 92.01 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.767e-05/2.869, allocations: 19.92 kB / 1.124 GB, free: 91.99 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.132/3.001, allocations: 46.47 MB / 1.17 GB, free: 45.73 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-05/3.001, allocations: 0 / 1.17 GB, free: 45.73 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001784/3.002, allocations: 455.4 kB / 1.17 GB, free: 45.29 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02364/3.026, allocations: 15.46 MB / 1.185 GB, free: 29.86 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001694/3.028, allocations: 111.9 kB / 1.185 GB, free: 29.75 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5346/3.562, allocations: 115 MB / 1.298 GB, free: 129.7 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/3.562, allocations: 0 / 1.298 GB, free: 129.7 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08975/3.652, allocations: 30.94 MB / 1.328 GB, free: 99.53 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009611/3.662, allocations: 2.72 MB / 1.33 GB, free: 96.98 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006125/3.668, allocations: 68 kB / 1.331 GB, free: 96.92 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01334/3.681, allocations: 1.397 MB / 1.332 GB, free: 95.52 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001258/3.683, allocations: 276.1 kB / 1.332 GB, free: 95.25 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001657/3.684, allocations: 143.9 kB / 1.332 GB, free: 95.11 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.02197/3.706, allocations: 10.49 MB / 1.343 GB, free: 84.69 MB / 0.5607 GB Notification: Performance of sort global known variables: time 9.72e-07/3.706, allocations: 3.844 kB / 1.343 GB, free: 84.69 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.02277/3.729, allocations: 3.728 MB / 1.346 GB, free: 81.08 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.09088/3.82, allocations: 31.62 MB / 1.377 GB, free: 49.55 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.07627/3.896, allocations: 33.18 MB / 1.409 GB, free: 15.55 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/3.896, allocations: 0 / 1.409 GB, free: 15.55 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.2856/4.182, allocations: 17.31 MB / 1.426 GB, free: 183.2 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02242/4.205, allocations: 3.118 MB / 1.429 GB, free: 182.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4335/4.638, allocations: 171.5 MB / 1.597 GB, free: 56.57 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01418/4.652, allocations: 8.686 MB / 1.605 GB, free: 47.84 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01167/4.664, allocations: 3.774 MB / 1.609 GB, free: 44.07 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01002/4.674, allocations: 5.002 MB / 1.614 GB, free: 39.07 MB / 0.5763 GB Notification: Performance of SimCode: time 2.314e-06/4.674, allocations: 0 / 1.614 GB, free: 39.07 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.053/5.727, allocations: 397 MB / 2.002 GB, free: 58.05 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 56.15/61.88, allocations: 12.52 kB / 2.002 GB, free: 58.05 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)