Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.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.SimpleCellIrradianceCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic",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.005249/0.005253, allocations: 104.6 kB / 15.74 MB, free: 5.984 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.001133/0.001133, allocations: 197.5 kB / 16.67 MB, free: 5.91 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02795/0.02795, allocations: 5.406 MB / 295.9 MB, free: 9.449 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 63.88 kB / 412.3 MB, free: 22.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08568/0.08699, allocations: 50.63 MB / 462.9 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.005405/0.09246, allocations: 3.859 MB / 466.8 MB, free: 352 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.09513, allocations: 1.484 MB / 468.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004697/0.09563, allocations: 11.94 kB / 468.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007511/0.0964, allocations: 230.5 kB / 468.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007579/0.09724, allocations: 182.6 kB / 468.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007937/0.09806, allocations: 226.8 kB / 468.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009745/0.09905, allocations: 0.763 MB / 469.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003357/0.09941, allocations: 177.9 kB / 469.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004187/0.09983, allocations: 283 kB / 470.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004506/0.1003, allocations: 342.6 kB / 470.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001324/0.1004, allocations: 80 kB / 470.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001644/0.1006, allocations: 76 kB / 470.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.1008, allocations: 159.4 kB / 470.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003163/0.1011, allocations: 306.5 kB / 471.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007841/0.1019, allocations: 0.7211 MB / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1019, allocations: 0 / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.48e-06/0.1019, allocations: 3.984 kB / 471.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.275e-05/0.1019, allocations: 7.938 kB / 471.8 MB, free: 11.31 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.003014/0.1049, allocations: 1.018 MB / 472.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.105, allocations: 8.031 kB / 472.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.1051, allocations: 70.72 kB / 472.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.1053, allocations: 60.28 kB / 472.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/0.1066, allocations: 0.5723 MB / 473.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.45e-05/0.1067, allocations: 32.59 kB / 473.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.319e-05/0.1068, allocations: 31.98 kB / 473.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009672/0.1077, allocations: 439.5 kB / 474 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.1078, allocations: 3.984 kB / 474 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.181e-05/0.1078, allocations: 16 kB / 474 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.1078, allocations: 8 kB / 474 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.109, allocations: 406.2 kB / 474.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003093/0.1121, allocations: 1.552 MB / 476 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.1136, allocations: 0.5708 MB / 476.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005426/0.1142, allocations: 192.7 kB / 476.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.245e-05/0.1142, allocations: 4 kB / 476.8 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006997/0.1149, allocations: 257.7 kB / 477 MB, free: 5.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.454e-06/0.115, allocations: 0 / 477 MB, free: 5.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.004056/0.119, allocations: 0.9045 MB / 477.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.309e-05/0.1191, allocations: 85.41 kB / 478 MB, free: 4.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007329/0.1199, allocations: 457.8 kB / 478.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.254e-05/0.12, allocations: 33.69 kB / 478.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002356/0.1202, allocations: 264 kB / 478.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.719e-05/0.1203, allocations: 78.86 kB / 478.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.1205, allocations: 70 kB / 478.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.1207, allocations: 366.7 kB / 479.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005683/0.1213, allocations: 182 kB / 479.4 MB, free: 3.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005663/0.1218, allocations: 225.5 kB / 479.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.1231, allocations: 397.1 kB / 480 MB, free: 2.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.1231, allocations: 0 / 480 MB, free: 2.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002942/0.126, allocations: 0.7574 MB / 480.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.742e-05/0.1261, allocations: 37.7 kB / 480.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.1261, allocations: 8 kB / 480.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009077/0.127, allocations: 233.5 kB / 481 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004088/0.1274, allocations: 79.86 kB / 481.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005507/0.133, allocations: 3.727 MB / 484.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006273/0.1336, allocations: 75.72 kB / 484.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.1337, allocations: 15.98 kB / 484.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007474/0.1344, allocations: 299.9 kB / 485.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005188/0.1349, allocations: 228.7 kB / 485.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009303/0.1359, allocations: 376.7 kB / 485.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.099e-06/0.1359, allocations: 0 / 485.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.003035/0.139, allocations: 0.7609 MB / 486.6 MB, free: 11.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.562e-05/0.139, allocations: 41.7 kB / 486.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.139, allocations: 0 / 486.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000753/0.1398, allocations: 241.6 kB / 486.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003773/0.1402, allocations: 71.88 kB / 486.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005262/0.1454, allocations: 3.739 MB / 490.7 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005982/0.1461, allocations: 67.72 kB / 490.7 MB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.728e-05/0.1461, allocations: 8 kB / 490.7 MB, free: 7.305 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (triangleAndStep.trapezoid.count,$PRE.triangleAndStep.trapezoid.count,triangleAndStep.trapezoid.T_start,$PRE.triangleAndStep.trapezoid.T_start,triangleAndStep.realToInteger.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001833/0.1463, allocations: 202.6 kB / 490.9 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.937e-05/0.1464, allocations: 51.38 kB / 491 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.1465, allocations: 52 kB / 491 MB, free: 6.996 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1465, allocations: 4 kB / 491.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1465, allocations: 0 / 491.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.1465, allocations: 0 / 491.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002975/0.1495, allocations: 1.114 MB / 492.2 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1495, allocations: 0 / 492.2 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002866/0.1498, allocations: 55.88 kB / 492.2 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000339/0.1502, allocations: 168.8 kB / 492.4 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/0.1502, allocations: 0 / 492.4 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003464/0.1537, allocations: 2.027 MB / 494.4 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.1537, allocations: 0 / 494.4 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.1561, allocations: 0.6768 MB / 495.1 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002159/0.1563, allocations: 152.5 kB / 495.2 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.806e-05/0.1564, allocations: 4 kB / 495.2 MB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004456/0.1569, allocations: 43.95 kB / 495.3 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.157, allocations: 39.89 kB / 495.3 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.157, allocations: 8 kB / 495.3 MB, free: 2.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004211/0.1575, allocations: 319.1 kB / 495.6 MB, free: 2.148 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1575, allocations: 0 / 495.6 MB, free: 2.148 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008302/0.1583, allocations: 215.4 kB / 495.9 MB, free: 1.938 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,triangleAndStep.realToInteger.y,triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.count) * Number of discrete states: 1 (triangleAndStep.trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002738/0.161, allocations: 1.249 MB / 497.1 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002848/0.1639, allocations: 1.246 MB / 498.3 MB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.164, allocations: 3.938 kB / 498.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007146/0.1647, allocations: 309.2 kB / 498.7 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008407/0.1655, allocations: 110 kB / 498.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.1768, allocations: 4.657 MB / 0.4916 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.1772, allocations: 0.8275 MB / 0.4924 GB, free: 9.262 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000314/0.1776, allocations: 64.14 kB / 0.4925 GB, free: 9.195 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002451/0.1778, allocations: 163.4 kB / 0.4926 GB, free: 9.039 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1778, allocations: 0 / 0.4926 GB, free: 9.039 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2568/0.4347, allocations: 15 MB / 0.5073 GB, free: 50.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.73, allocations: 10.62 kB / 0.5073 GB, free: 50.55 MB / 382.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe 2>&1)