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.001968/0.001969, allocations: 108 kB / 15.6 MB, free: 132 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.00235/0.00235, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1526/0.1526, allocations: 5.387 MB / 295.8 MB, free: 2.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 63.84 kB / 361 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1198, allocations: 50.61 MB / 411.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModule): time 0.006607/0.1265, allocations: 4.378 MB / 416 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003197/0.1297, allocations: 1.597 MB / 417.6 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006217/0.1304, allocations: 11.94 kB / 417.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.1314, allocations: 297 kB / 417.9 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006901/0.1321, allocations: 222.4 kB / 418.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000421/0.1326, allocations: 215.6 kB / 418.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2236/0.3562, allocations: 25.59 MB / 443.9 MB, free: 32.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009863/0.3661, allocations: 7.949 MB / 451.9 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01888/0.3851, allocations: 9.318 MB / 461.2 MB, free: 24.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01943/0.4045, allocations: 10.82 MB / 472 MB, free: 19.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009275/0.4139, allocations: 2.705 MB / 474.7 MB, free: 19.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01306/0.4269, allocations: 2.716 MB / 477.4 MB, free: 19.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008394/0.4354, allocations: 5.119 MB / 482.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03131/0.4667, allocations: 9.534 MB / 492.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04121/0.508, allocations: 28.7 MB / 0.5086 GB, free: 12.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.508, allocations: 0 / 0.5086 GB, free: 12.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.508, allocations: 0 / 0.5086 GB, free: 12.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007306/0.5088, allocations: 0 / 0.5086 GB, free: 12.4 MB / 382.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.1218/0.6306, allocations: 30.81 MB / 0.5387 GB, free: 13.51 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.329e-05/0.6307, allocations: 8.031 kB / 0.5387 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008325/0.639, allocations: 1.118 MB / 0.5398 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00985/0.6489, allocations: 1.452 MB / 0.5412 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06494/0.7138, allocations: 18.8 MB / 0.5595 GB, free: 8.203 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008055/0.7147, allocations: 0.6295 MB / 0.5602 GB, free: 7.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005684/0.7204, allocations: 0.8125 MB / 0.561 GB, free: 6.758 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05176/0.7722, allocations: 15.68 MB / 0.5763 GB, free: 6.562 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005486/0.7728, allocations: 19.81 kB / 0.5763 GB, free: 6.543 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005216/0.778, allocations: 348 kB / 0.5766 GB, free: 6.203 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002367/0.7783, allocations: 215.9 kB / 0.5768 GB, free: 5.992 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4863/1.265, allocations: 17.59 MB / 0.594 GB, free: 95.99 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1411/1.406, allocations: 57.53 MB / 0.6502 GB, free: 67.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03379/1.44, allocations: 21.37 MB / 0.671 GB, free: 53.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01228/1.452, allocations: 7.448 MB / 0.6783 GB, free: 48.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000384/1.452, allocations: 74.38 kB / 0.6784 GB, free: 48.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.853e-05/1.452, allocations: 86.02 kB / 0.6785 GB, free: 48.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=448): time 6.723e-06/1.452, allocations: 0 / 0.6785 GB, free: 48.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=448): time 0.1034/1.556, allocations: 36.3 MB / 0.7139 GB, free: 12.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.776e-05/1.556, allocations: 101.2 kB / 0.714 GB, free: 12.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0346/1.591, allocations: 15.18 MB / 0.7288 GB, free: 13.09 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002396/1.593, allocations: 113.7 kB / 0.729 GB, free: 12.97 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.009316/1.602, allocations: 6.091 MB / 0.7349 GB, free: 6.973 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004213/1.607, allocations: 1.58 MB / 0.7364 GB, free: 5.371 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01221/1.619, allocations: 2.097 MB / 0.7385 GB, free: 3.258 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/1.619, allocations: 305.1 kB / 0.7388 GB, free: 2.957 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01714/1.636, allocations: 7.648 MB / 0.7463 GB, free: 11.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01915/1.655, allocations: 8.835 MB / 0.7549 GB, free: 2.121 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03372/1.689, allocations: 14.4 MB / 0.7689 GB, free: 3.324 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-05/1.689, allocations: 4 kB / 0.7689 GB, free: 3.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.346/2.035, allocations: 39.95 MB / 0.808 GB, free: 131.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.525e-05/2.035, allocations: 15.69 kB / 0.808 GB, free: 131.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.39e-05/2.035, allocations: 23.12 kB / 0.808 GB, free: 131.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05226/2.088, allocations: 26.04 MB / 0.8334 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00766/2.095, allocations: 1.497 MB / 0.8349 GB, free: 126.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6344/2.73, allocations: 203 MB / 1.033 GB, free: 91.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02251/2.752, allocations: 2.56 MB / 1.036 GB, free: 90.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003891/2.756, allocations: 376.5 kB / 1.036 GB, free: 90.58 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.01501/2.771, allocations: 4.522 MB / 1.04 GB, free: 87.96 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006052/2.777, allocations: 1.158 MB / 1.042 GB, free: 87.41 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1011/2.878, allocations: 31.81 MB / 1.073 GB, free: 59.18 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.635e-05/2.879, allocations: 44 kB / 1.073 GB, free: 59.14 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/2.879, allocations: 0 / 1.073 GB, free: 59.14 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001456/2.879, allocations: 19.92 kB / 1.073 GB, free: 59.12 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1428/3.022, allocations: 46.64 MB / 1.118 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.094e-05/3.022, allocations: 2.016 kB / 1.118 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/3.023, allocations: 454.6 kB / 1.119 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0254/3.049, allocations: 15.48 MB / 1.134 GB, free: 12.76 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001452/3.05, allocations: 107.9 kB / 1.134 GB, free: 12.65 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.52/3.57, allocations: 115 MB / 1.246 GB, free: 84.63 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/3.57, allocations: 0 / 1.246 GB, free: 84.63 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09413/3.665, allocations: 30.87 MB / 1.276 GB, free: 53.93 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008613/3.673, allocations: 2.657 MB / 1.279 GB, free: 51.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005309/3.679, allocations: 76 kB / 1.279 GB, free: 51.23 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01193/3.691, allocations: 1.397 MB / 1.28 GB, free: 49.84 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001025/3.692, allocations: 276.1 kB / 1.281 GB, free: 49.57 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001325/3.693, allocations: 143.9 kB / 1.281 GB, free: 49.43 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.02117/3.714, allocations: 10.49 MB / 1.291 GB, free: 39.01 MB / 0.4982 GB Notification: Performance of sort global known variables: time 3.81e-07/3.714, allocations: 0 / 1.291 GB, free: 39.01 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0188/3.733, allocations: 3.715 MB / 1.295 GB, free: 35.39 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.3021/4.035, allocations: 31.55 MB / 1.325 GB, free: 123.3 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.09549/4.131, allocations: 39.92 MB / 1.364 GB, free: 116.9 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/4.131, allocations: 0 / 1.364 GB, free: 116.9 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.05451/4.185, allocations: 17.28 MB / 1.381 GB, free: 113 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02123/4.206, allocations: 3.12 MB / 1.384 GB, free: 111.9 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7163/4.923, allocations: 242.2 MB / 1.621 GB, free: 87.9 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01424/4.937, allocations: 8.679 MB / 1.629 GB, free: 84.92 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01296/4.95, allocations: 3.889 MB / 1.633 GB, free: 83.04 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009194/4.959, allocations: 5.006 MB / 1.638 GB, free: 78.04 MB / 0.5138 GB Notification: Performance of SimCode: time 1.052e-06/4.959, allocations: 2.516 kB / 1.638 GB, free: 78.04 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.072/6.032, allocations: 395.1 MB / 2.024 GB, free: 65.42 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.1/28.13, allocations: 7.672 kB / 2.024 GB, free: 65.42 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)