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.0007695/0.0007695, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.004782/0.004782, allocations: 170.5 kB / 16.27 MB, free: 6.648 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.272/1.272, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1322/0.1322, allocations: 5.371 MB / 296.8 MB, free: 3.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003729/0.0003729, allocations: 8 kB / 362.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09076/0.09116, allocations: 51.61 MB / 414.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModule): time 0.00414/0.09533, allocations: 4.003 MB / 418.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002025/0.09737, allocations: 1.554 MB / 419.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001988/0.09758, allocations: 11.94 kB / 419.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008442/0.09844, allocations: 323.4 kB / 420.2 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004066/0.09886, allocations: 210.7 kB / 420.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003032/0.09917, allocations: 195.7 kB / 420.6 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1659/0.265, allocations: 23.55 MB / 444.1 MB, free: 32.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007106/0.2722, allocations: 7.221 MB / 451.4 MB, free: 29.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007607/0.2798, allocations: 6.264 MB / 457.6 MB, free: 26.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01284/0.2927, allocations: 8.122 MB / 465.7 MB, free: 23.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003829/0.2965, allocations: 0.8145 MB / 466.6 MB, free: 23.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005849/0.3024, allocations: 0.819 MB / 467.4 MB, free: 23.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004387/0.3068, allocations: 2.837 MB / 470.2 MB, free: 21.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01538/0.3222, allocations: 7.206 MB / 477.4 MB, free: 17.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02694/0.3492, allocations: 26.33 MB / 0.4919 GB, free: 13.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3492, allocations: 0 / 0.4919 GB, free: 13.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3492, allocations: 0 / 0.4919 GB, free: 13.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006541/0.3499, allocations: 0 / 0.4919 GB, free: 13.68 MB / 366.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.08638/0.4363, allocations: 28.01 MB / 0.5193 GB, free: 1.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.4363, allocations: 8.031 kB / 0.5193 GB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005554/0.4419, allocations: 1.122 MB / 0.5204 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006985/0.4489, allocations: 1.452 MB / 0.5218 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04977/0.4987, allocations: 19.1 MB / 0.5405 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006717/0.4994, allocations: 0.6334 MB / 0.5411 GB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00385/0.5032, allocations: 0.8163 MB / 0.5419 GB, free: 10.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03618/0.5394, allocations: 15.88 MB / 0.5574 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001774/0.5396, allocations: 23.81 kB / 0.5574 GB, free: 10.1 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001561/0.5412, allocations: 344 kB / 0.5577 GB, free: 9.766 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001767/0.5414, allocations: 212 kB / 0.5579 GB, free: 9.559 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03833/0.5797, allocations: 18.01 MB / 0.5755 GB, free: 7.527 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.404/0.9837, allocations: 57.9 MB / 0.6321 GB, free: 71.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03182/1.016, allocations: 21.98 MB / 0.6535 GB, free: 61.08 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0107/1.026, allocations: 7.656 MB / 0.661 GB, free: 58.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000159/1.027, allocations: 69.11 kB / 0.6611 GB, free: 58.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/1.027, allocations: 83.39 kB / 0.6612 GB, free: 58.53 MB / 446.1 MB Notification: Performance of pre-optimization done (n=448): time 5.24e-06/1.027, allocations: 0 / 0.6612 GB, free: 58.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=448): time 0.09634/1.123, allocations: 37.91 MB / 0.6982 GB, free: 27.08 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/1.123, allocations: 98.92 kB / 0.6983 GB, free: 26.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02244/1.145, allocations: 15.18 MB / 0.7131 GB, free: 11.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001429/1.147, allocations: 109.7 kB / 0.7132 GB, free: 11.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004858/1.152, allocations: 6.094 MB / 0.7192 GB, free: 5.914 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00179/1.154, allocations: 1.58 MB / 0.7207 GB, free: 4.348 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001944/1.156, allocations: 0.7829 MB / 0.7215 GB, free: 3.555 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.495e-05/1.156, allocations: 309.1 kB / 0.7218 GB, free: 3.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01372/1.169, allocations: 7.847 MB / 0.7294 GB, free: 11.39 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01606/1.185, allocations: 9.042 MB / 0.7382 GB, free: 2.008 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03046/1.216, allocations: 14.81 MB / 0.7527 GB, free: 2.805 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.588e-05/1.216, allocations: 12 kB / 0.7527 GB, free: 2.793 MB / 478.1 MB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.3071/1.523, allocations: 41.35 MB / 0.7931 GB, free: 129.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.152e-05/1.523, allocations: 14.12 kB / 0.7931 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.595e-05/1.523, allocations: 23.94 kB / 0.7931 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04907/1.572, allocations: 26.41 MB / 0.8189 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006633/1.579, allocations: 1.498 MB / 0.8204 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5287/2.108, allocations: 195 MB / 1.011 GB, free: 102.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.017/2.125, allocations: 2.666 MB / 1.013 GB, free: 102.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002018/2.127, allocations: 381.2 kB / 1.014 GB, free: 102.3 MB / 494.1 MB 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.008369/2.135, allocations: 4.518 MB / 1.018 GB, free: 100.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002564/2.138, allocations: 1.162 MB / 1.019 GB, free: 99.99 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08834/2.226, allocations: 33.21 MB / 1.052 GB, free: 79.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-05/2.226, allocations: 44 kB / 1.052 GB, free: 78.98 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/2.226, allocations: 0 / 1.052 GB, free: 78.98 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.708e-05/2.226, allocations: 22.83 kB / 1.052 GB, free: 78.96 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1206/2.347, allocations: 48.24 MB / 1.099 GB, free: 30.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-05/2.347, allocations: 3.984 kB / 1.099 GB, free: 30.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001833/2.349, allocations: 455.4 kB / 1.099 GB, free: 30.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02378/2.373, allocations: 15.86 MB / 1.115 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001309/2.374, allocations: 115.9 kB / 1.115 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4749/2.849, allocations: 112.8 MB / 1.225 GB, free: 103.7 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/2.849, allocations: 3.75 kB / 1.225 GB, free: 103.7 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0882/2.937, allocations: 32.28 MB / 1.257 GB, free: 71.66 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006797/2.944, allocations: 2.697 MB / 1.259 GB, free: 68.99 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003107/2.947, allocations: 76.62 kB / 1.259 GB, free: 68.92 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01016/2.957, allocations: 1.506 MB / 1.261 GB, free: 67.41 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005909/2.958, allocations: 268.1 kB / 1.261 GB, free: 67.15 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006288/2.958, allocations: 147.9 kB / 1.261 GB, free: 67 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.01668/2.975, allocations: 10.49 MB / 1.272 GB, free: 56.59 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.353e-06/2.975, allocations: 0 / 1.272 GB, free: 56.59 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01643/2.992, allocations: 3.709 MB / 1.275 GB, free: 52.98 MB / 0.4982 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.08982/3.081, allocations: 32.97 MB / 1.307 GB, free: 20.13 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.2565/3.338, allocations: 34.06 MB / 1.341 GB, free: 129.3 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/3.338, allocations: 0 / 1.341 GB, free: 129.3 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.05255/3.39, allocations: 18.28 MB / 1.358 GB, free: 127.7 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01836/3.409, allocations: 2.978 MB / 1.361 GB, free: 127.4 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.687/5.096, allocations: 248.9 MB / 1.604 GB, free: 79.67 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006981/5.103, allocations: 8.687 MB / 1.613 GB, free: 73.3 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.009807/5.113, allocations: 3.592 MB / 1.616 GB, free: 70.25 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006324/5.119, allocations: 4.998 MB / 1.621 GB, free: 65.25 MB / 0.4982 GB Notification: Performance of SimCode: time 1.713e-06/5.12, allocations: 0 / 1.621 GB, free: 65.25 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8049/5.924, allocations: 378.7 MB / 1.991 GB, free: 79.29 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/5.925, allocations: 215.5 kB / 1.991 GB, free: 79.04 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/16.97, allocations: 0 / 1.991 GB, free: 79.04 MB / 0.5138 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)