Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.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.SimpleModule,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModule,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule",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.001168/0.001168, allocations: 112.5 kB / 15.73 MB, free: 76 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.001411/0.001411, allocations: 193.5 kB / 16.67 MB, free: 6.574 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.462/1.462, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.2053/0.2053, allocations: 5.384 MB / 295.9 MB, free: 2.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 63.91 kB / 412.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2919, allocations: 50.61 MB / 462.9 MB, free: 21.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModule): time 0.005865/0.2978, allocations: 4.389 MB / 467.3 MB, free: 18.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003597/0.3014, allocations: 1.591 MB / 468.9 MB, free: 17.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006933/0.3022, allocations: 7.875 kB / 468.9 MB, free: 17.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001246/0.3034, allocations: 311.7 kB / 469.2 MB, free: 16.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001049/0.3046, allocations: 250.5 kB / 469.4 MB, free: 16.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006428/0.3053, allocations: 218.6 kB / 469.7 MB, free: 16.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02098/0.3263, allocations: 25.7 MB / 495.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01074/0.337, allocations: 7.943 MB / 0.4915 GB, free: 8.824 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01811/0.3552, allocations: 9.349 MB / 0.5006 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01796/0.3732, allocations: 10.85 MB / 0.5112 GB, free: 4.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008698/0.3819, allocations: 2.703 MB / 0.5139 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01133/0.3933, allocations: 2.711 MB / 0.5165 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009356/0.4027, allocations: 5.123 MB / 0.5215 GB, free: 10 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02507/0.4278, allocations: 9.531 MB / 0.5308 GB, free: 444 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03896/0.4668, allocations: 29 MB / 0.5591 GB, free: 3.348 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.011e-05/0.4669, allocations: 4 kB / 0.5592 GB, free: 3.344 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4669, allocations: 0 / 0.5592 GB, free: 3.344 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001059/0.4679, allocations: 0 / 0.5592 GB, free: 3.344 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.5758/1.044, allocations: 31.83 MB / 0.5902 GB, free: 77.95 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/1.044, allocations: 10.31 kB / 0.5902 GB, free: 77.95 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006906/1.051, allocations: 1.121 MB / 0.5913 GB, free: 77.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0102/1.061, allocations: 1.524 MB / 0.5928 GB, free: 76.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0585/1.12, allocations: 19.05 MB / 0.6114 GB, free: 67.41 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007936/1.12, allocations: 0.6268 MB / 0.612 GB, free: 67.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005494/1.126, allocations: 0.814 MB / 0.6128 GB, free: 66.85 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04356/1.169, allocations: 15.68 MB / 0.6282 GB, free: 53.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003614/1.17, allocations: 23.81 kB / 0.6282 GB, free: 53.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004131/1.174, allocations: 344 kB / 0.6285 GB, free: 53.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001407/1.174, allocations: 212 kB / 0.6287 GB, free: 53.02 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03969/1.214, allocations: 17.6 MB / 0.6459 GB, free: 35.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1184/1.332, allocations: 57.34 MB / 0.7019 GB, free: 9.73 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03812/1.37, allocations: 21.37 MB / 0.7228 GB, free: 3.727 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01442/1.385, allocations: 7.453 MB / 0.73 GB, free: 12.26 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003878/1.385, allocations: 71.38 kB / 0.7301 GB, free: 12.19 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.198e-05/1.385, allocations: 74.08 kB / 0.7302 GB, free: 12.11 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=448): time 6.953e-06/1.385, allocations: 4 kB / 0.7302 GB, free: 12.11 MB / 0.4982 GB Notification: Performance of matching and sorting (n=448): time 0.119/1.505, allocations: 36.36 MB / 0.7657 GB, free: 7.688 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.117e-05/1.505, allocations: 98.92 kB / 0.7658 GB, free: 7.578 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0369/1.542, allocations: 15.2 MB / 0.7806 GB, free: 8.465 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.002269/1.544, allocations: 109.7 kB / 0.7807 GB, free: 8.352 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.01014/1.554, allocations: 6.21 MB / 0.7868 GB, free: 2.109 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003719/1.558, allocations: 1.654 MB / 0.7884 GB, free: 452 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.3319/1.89, allocations: 2.104 MB / 0.7905 GB, free: 174 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.569e-05/1.89, allocations: 311.4 kB / 0.7908 GB, free: 173.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02225/1.912, allocations: 7.647 MB / 0.7982 GB, free: 173.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02459/1.937, allocations: 8.832 MB / 0.8068 GB, free: 169.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03464/1.971, allocations: 14.4 MB / 0.8209 GB, free: 164.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001257/1.972, allocations: 10.69 kB / 0.8209 GB, free: 164.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.1296/2.101, allocations: 40 MB / 0.86 GB, free: 138.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.956e-05/2.101, allocations: 19.94 kB / 0.86 GB, free: 138.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-05/2.101, allocations: 24 kB / 0.86 GB, free: 138.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04695/2.148, allocations: 26.01 MB / 0.8854 GB, free: 112.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007744/2.156, allocations: 1.49 MB / 0.8869 GB, free: 110.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7072/2.863, allocations: 202.9 MB / 1.085 GB, free: 133.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02178/2.885, allocations: 2.593 MB / 1.088 GB, free: 131.1 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003013/2.888, allocations: 379.7 kB / 1.088 GB, free: 130.8 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.008519/2.897, allocations: 4.525 MB / 1.092 GB, free: 126.3 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003643/2.9, allocations: 1.215 MB / 1.094 GB, free: 125.8 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09118/2.992, allocations: 31.81 MB / 1.125 GB, free: 94.18 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-05/2.992, allocations: 48 kB / 1.125 GB, free: 94.14 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/2.992, allocations: 0 / 1.125 GB, free: 94.14 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001114/2.992, allocations: 23.91 kB / 1.125 GB, free: 94.11 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1283/3.12, allocations: 46.47 MB / 1.17 GB, free: 47.75 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.629e-05/3.12, allocations: 4 kB / 1.17 GB, free: 47.75 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/3.122, allocations: 451.4 kB / 1.17 GB, free: 47.31 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02322/3.145, allocations: 15.47 MB / 1.186 GB, free: 31.88 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001187/3.146, allocations: 111.9 kB / 1.186 GB, free: 31.77 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.606/3.752, allocations: 115 MB / 1.298 GB, free: 131.5 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/3.752, allocations: 0 / 1.298 GB, free: 131.5 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09681/3.849, allocations: 30.94 MB / 1.328 GB, free: 101.4 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01043/3.86, allocations: 2.715 MB / 1.331 GB, free: 98.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005484/3.865, allocations: 68 kB / 1.331 GB, free: 98.64 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01225/3.877, allocations: 1.4 MB / 1.332 GB, free: 97.23 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001384/3.879, allocations: 280 kB / 1.333 GB, free: 96.96 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001826/3.881, allocations: 145.3 kB / 1.333 GB, free: 96.82 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.02146/3.902, allocations: 10.49 MB / 1.343 GB, free: 86.41 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.1e-07/3.902, allocations: 2.297 kB / 1.343 GB, free: 86.41 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01999/3.922, allocations: 3.723 MB / 1.347 GB, free: 82.8 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.08997/4.012, allocations: 31.62 MB / 1.377 GB, free: 51.26 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.07665/4.089, allocations: 33.18 MB / 1.41 GB, free: 17.26 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/4.089, allocations: 0 / 1.41 GB, free: 17.26 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.05106/4.14, allocations: 17.31 MB / 1.427 GB, free: 15.93 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2637/4.404, allocations: 3.107 MB / 1.43 GB, free: 183 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.413/4.817, allocations: 171.4 MB / 1.597 GB, free: 57.95 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01162/4.828, allocations: 8.69 MB / 1.606 GB, free: 49.22 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01352/4.842, allocations: 3.773 MB / 1.609 GB, free: 45.46 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009832/4.852, allocations: 4.998 MB / 1.614 GB, free: 40.46 MB / 0.5763 GB Notification: Performance of SimCode: time 1.292e-06/4.852, allocations: 0 / 1.614 GB, free: 40.46 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9909/5.843, allocations: 397.1 MB / 2.002 GB, free: 58.99 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 57.56/63.4, allocations: 7.984 kB / 2.002 GB, free: 58.98 MB / 0.5763 GB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule_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_SimpleModule.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe 2>&1)