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.007083/0.007083, allocations: 101.1 kB / 15.73 MB, free: 6.012 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.001301/0.001301, allocations: 187 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.444/1.444, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1655/0.1655, allocations: 5.384 MB / 295.9 MB, free: 2.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 55.91 kB / 412.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3079, allocations: 50.63 MB / 462.9 MB, free: 21.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModule): time 0.005305/0.3132, allocations: 4.371 MB / 467.3 MB, free: 18.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003126/0.3164, allocations: 1.587 MB / 468.9 MB, free: 17.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005386/0.317, allocations: 11.78 kB / 468.9 MB, free: 17.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009551/0.3179, allocations: 297.2 kB / 469.2 MB, free: 16.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006825/0.3187, allocations: 237.9 kB / 469.4 MB, free: 16.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005312/0.3193, allocations: 210.8 kB / 469.6 MB, free: 16.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02242/0.3417, allocations: 25.71 MB / 495.3 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01075/0.3525, allocations: 7.939 MB / 0.4915 GB, free: 8.852 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01576/0.3683, allocations: 9.353 MB / 0.5006 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01851/0.3869, allocations: 10.85 MB / 0.5112 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007635/0.3945, allocations: 2.703 MB / 0.5138 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01307/0.4076, allocations: 2.715 MB / 0.5165 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01137/0.4191, allocations: 5.116 MB / 0.5215 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02464/0.4437, allocations: 9.535 MB / 0.5308 GB, free: 456 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03631/0.4801, allocations: 28.92 MB / 0.559 GB, free: 3.449 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.4801, allocations: 0 / 0.559 GB, free: 3.449 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4801, allocations: 0 / 0.559 GB, free: 3.449 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0009087/0.4811, allocations: 0 / 0.559 GB, free: 3.449 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.578/1.059, allocations: 31.42 MB / 0.5897 GB, free: 77.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.727e-05/1.059, allocations: 9.188 kB / 0.5897 GB, free: 77.98 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007962/1.067, allocations: 1.12 MB / 0.5908 GB, free: 77.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01053/1.078, allocations: 1.451 MB / 0.5922 GB, free: 76.62 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06258/1.14, allocations: 18.95 MB / 0.6108 GB, free: 67.13 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008418/1.141, allocations: 0.6224 MB / 0.6114 GB, free: 66.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004719/1.146, allocations: 0.8179 MB / 0.6122 GB, free: 66.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0413/1.187, allocations: 15.68 MB / 0.6275 GB, free: 53.65 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004376/1.188, allocations: 27.75 kB / 0.6275 GB, free: 53.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00434/1.192, allocations: 348 kB / 0.6278 GB, free: 53.28 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001702/1.192, allocations: 212 kB / 0.628 GB, free: 53.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03875/1.231, allocations: 17.59 MB / 0.6452 GB, free: 35.46 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1259/1.357, allocations: 57.24 MB / 0.7011 GB, free: 9.539 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03756/1.395, allocations: 21.37 MB / 0.722 GB, free: 3.539 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01436/1.409, allocations: 7.444 MB / 0.7292 GB, free: 12.09 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000366/1.409, allocations: 71.38 kB / 0.7293 GB, free: 12.02 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.074e-05/1.409, allocations: 78.08 kB / 0.7294 GB, free: 11.94 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=448): time 8.065e-06/1.409, allocations: 0 / 0.7294 GB, free: 11.94 MB / 0.4982 GB Notification: Performance of matching and sorting (n=448): time 0.1134/1.523, allocations: 36.3 MB / 0.7648 GB, free: 7.566 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.705e-05/1.523, allocations: 102.9 kB / 0.7649 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03438/1.557, allocations: 15.18 MB / 0.7798 GB, free: 8.355 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.002333/1.56, allocations: 113.7 kB / 0.7799 GB, free: 8.238 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.01023/1.57, allocations: 6.088 MB / 0.7858 GB, free: 2.105 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00379/1.574, allocations: 1.58 MB / 0.7874 GB, free: 0.5039 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2494/1.823, allocations: 2.096 MB / 0.7894 GB, free: 173.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.863e-05/1.823, allocations: 309.5 kB / 0.7897 GB, free: 173.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01825/1.842, allocations: 7.644 MB / 0.7972 GB, free: 173.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01845/1.86, allocations: 8.84 MB / 0.8058 GB, free: 169.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03395/1.894, allocations: 14.39 MB / 0.8198 GB, free: 163.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.916e-05/1.894, allocations: 7.875 kB / 0.8199 GB, free: 163.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.127/2.021, allocations: 39.95 MB / 0.8589 GB, free: 138.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.598e-05/2.021, allocations: 19.94 kB / 0.8589 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.086e-05/2.021, allocations: 20 kB / 0.8589 GB, free: 138.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.045/2.066, allocations: 26.01 MB / 0.8843 GB, free: 112 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006742/2.073, allocations: 1.494 MB / 0.8858 GB, free: 110.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6288/2.702, allocations: 202.8 MB / 1.084 GB, free: 132.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01948/2.722, allocations: 2.561 MB / 1.086 GB, free: 130.8 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00321/2.725, allocations: 379.7 kB / 1.087 GB, free: 130.4 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.01071/2.736, allocations: 4.525 MB / 1.091 GB, free: 126 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005354/2.741, allocations: 1.156 MB / 1.092 GB, free: 125.5 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09338/2.834, allocations: 31.81 MB / 1.123 GB, free: 93.86 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.694e-05/2.834, allocations: 44 kB / 1.123 GB, free: 93.82 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/2.834, allocations: 0 / 1.123 GB, free: 93.82 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.513e-05/2.835, allocations: 23.91 kB / 1.123 GB, free: 93.8 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.132/2.967, allocations: 46.46 MB / 1.169 GB, free: 47.46 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.842e-05/2.967, allocations: 0 / 1.169 GB, free: 47.46 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/2.968, allocations: 455.4 kB / 1.169 GB, free: 47.02 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02354/2.992, allocations: 15.46 MB / 1.184 GB, free: 31.59 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001419/2.993, allocations: 115.9 kB / 1.184 GB, free: 31.48 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5465/3.54, allocations: 114.9 MB / 1.297 GB, free: 131.3 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/3.54, allocations: 4 kB / 1.297 GB, free: 131.3 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09604/3.636, allocations: 30.88 MB / 1.327 GB, free: 101.1 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01054/3.647, allocations: 2.652 MB / 1.329 GB, free: 98.52 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006127/3.653, allocations: 68 kB / 1.329 GB, free: 98.45 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01157/3.664, allocations: 1.401 MB / 1.331 GB, free: 97.05 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008508/3.665, allocations: 272.1 kB / 1.331 GB, free: 96.79 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00114/3.666, allocations: 147.9 kB / 1.331 GB, free: 96.64 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.01781/3.684, allocations: 10.49 MB / 1.341 GB, free: 86.22 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.71e-07/3.684, allocations: 0 / 1.341 GB, free: 86.22 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01825/3.702, allocations: 3.716 MB / 1.345 GB, free: 82.62 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.09711/3.8, allocations: 31.56 MB / 1.376 GB, free: 51.14 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.07635/3.876, allocations: 33.13 MB / 1.408 GB, free: 17.2 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/3.876, allocations: 4.062 kB / 1.408 GB, free: 17.19 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.05271/3.929, allocations: 17.29 MB / 1.425 GB, free: 15.88 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2339/4.163, allocations: 3.106 MB / 1.428 GB, free: 183.1 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3974/4.56, allocations: 171 MB / 1.595 GB, free: 58.09 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01253/4.573, allocations: 8.694 MB / 1.604 GB, free: 49.36 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01091/4.584, allocations: 3.776 MB / 1.607 GB, free: 45.6 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009102/4.593, allocations: 4.998 MB / 1.612 GB, free: 40.6 MB / 0.5763 GB Notification: Performance of SimCode: time 1.322e-06/4.593, allocations: 0 / 1.612 GB, free: 40.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.039/5.631, allocations: 403.5 MB / 2.006 GB, free: 53.73 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 53.19/58.82, allocations: 9.766 kB / 2.006 GB, free: 53.72 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModule.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModule.pipe 2>&1)