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.005205/0.005205, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001209/0.001209, allocations: 195.7 kB / 16.68 MB, free: 5.977 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.324/1.324, 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.0269/0.0269, allocations: 5.41 MB / 295.9 MB, free: 9.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001386, allocations: 59.89 kB / 412.3 MB, free: 23.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08825/0.08965, allocations: 50.62 MB / 462.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.004822/0.09451, allocations: 3.862 MB / 466.8 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.09666, allocations: 1.484 MB / 468.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.09689, allocations: 11.94 kB / 468.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005545/0.09747, allocations: 246.5 kB / 468.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003945/0.09788, allocations: 198.5 kB / 468.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.09829, allocations: 230.6 kB / 468.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006517/0.09895, allocations: 0.7591 MB / 469.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002716/0.09924, allocations: 177.9 kB / 469.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002755/0.09952, allocations: 287 kB / 470.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003414/0.09987, allocations: 338.6 kB / 470.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.998e-05/0.09997, allocations: 72 kB / 470.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.1001, allocations: 91.98 kB / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.1002, allocations: 155.4 kB / 470.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002558/0.1005, allocations: 306.5 kB / 471.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006518/0.1012, allocations: 0.7289 MB / 471.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1012, allocations: 0 / 471.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1012, allocations: 0 / 471.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.445e-06/0.1012, allocations: 0 / 471.8 MB, free: 11.51 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.002401/0.1036, allocations: 1.018 MB / 472.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.1036, allocations: 12.03 kB / 472.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.57e-05/0.1037, allocations: 66.72 kB / 472.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.1038, allocations: 60.28 kB / 473 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.1051, allocations: 0.5762 MB / 473.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.1051, allocations: 28.59 kB / 473.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.06e-05/0.1052, allocations: 32 kB / 473.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008765/0.1061, allocations: 443.4 kB / 474 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1061, allocations: 0 / 474 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/0.1062, allocations: 16 kB / 474.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.1062, allocations: 8 kB / 474.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001088/0.1073, allocations: 402.2 kB / 474.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002607/0.1099, allocations: 1.556 MB / 476 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.1113, allocations: 0.5669 MB / 476.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005047/0.1118, allocations: 200.6 kB / 476.8 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.63e-05/0.1118, allocations: 0 / 476.8 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006005/0.1124, allocations: 261.7 kB / 477 MB, free: 6.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.493e-06/0.1124, allocations: 0 / 477 MB, free: 6.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003677/0.1161, allocations: 0.9048 MB / 477.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/0.1162, allocations: 89.03 kB / 478 MB, free: 4.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005372/0.1167, allocations: 457.8 kB / 478.5 MB, free: 4.531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.438e-05/0.1168, allocations: 29.7 kB / 478.5 MB, free: 4.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.117, allocations: 264 kB / 478.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.714e-05/0.1171, allocations: 78.84 kB / 478.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.1172, allocations: 66.02 kB / 478.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1174, allocations: 358.7 kB / 479.3 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005138/0.1179, allocations: 190 kB / 479.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005224/0.1184, allocations: 229.5 kB / 479.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009532/0.1194, allocations: 389.1 kB / 480 MB, free: 2.898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1194, allocations: 4 kB / 480 MB, free: 2.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002726/0.1221, allocations: 0.7574 MB / 480.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.823e-05/0.1222, allocations: 41.62 kB / 480.8 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1222, allocations: 0 / 480.8 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008472/0.1231, allocations: 237.6 kB / 481.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003919/0.1235, allocations: 79.88 kB / 481.2 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005306/0.1288, allocations: 3.731 MB / 484.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006441/0.1295, allocations: 71.86 kB / 485 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.875e-05/0.1295, allocations: 15.98 kB / 485 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006622/0.1302, allocations: 303.9 kB / 485.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004823/0.1307, allocations: 224.7 kB / 485.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000875/0.1316, allocations: 384.7 kB / 485.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.047e-06/0.1316, allocations: 0 / 485.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.002603/0.1342, allocations: 0.757 MB / 486.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.894e-05/0.1342, allocations: 33.7 kB / 486.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.1342, allocations: 12 kB / 486.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007723/0.135, allocations: 229.5 kB / 486.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003577/0.1354, allocations: 75.88 kB / 487 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00499/0.1404, allocations: 3.735 MB / 490.7 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005679/0.141, allocations: 67.84 kB / 490.8 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.039e-05/0.141, allocations: 16 kB / 490.8 MB, free: 7.496 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.0001664/0.1412, allocations: 192.2 kB / 491 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-05/0.1413, allocations: 55.36 kB / 491 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001136/0.1414, allocations: 52.02 kB / 491.1 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.1414, allocations: 0 / 491.1 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1414, allocations: 0 / 491.1 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1414, allocations: 3.984 kB / 491.1 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002742/0.1442, allocations: 1.116 MB / 492.2 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1442, allocations: 4 kB / 492.2 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/0.1445, allocations: 47.95 kB / 492.2 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003314/0.1448, allocations: 160.8 kB / 492.4 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.1449, allocations: 8 kB / 492.4 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003195/0.1481, allocations: 2.027 MB / 494.4 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1481, allocations: 0 / 494.4 MB, free: 3.609 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0022/0.1503, allocations: 0.6768 MB / 495.1 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001856/0.1505, allocations: 148.5 kB / 495.3 MB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.745e-05/0.1505, allocations: 8 kB / 495.3 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000418/0.151, allocations: 39.95 kB / 495.3 MB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.1511, allocations: 40.03 kB / 495.3 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.639e-05/0.1511, allocations: 8 kB / 495.4 MB, free: 2.652 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003848/0.1515, allocations: 315.1 kB / 495.7 MB, free: 2.352 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1515, allocations: 0 / 495.7 MB, free: 2.352 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008334/0.1524, allocations: 223.4 kB / 495.9 MB, free: 2.133 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.002538/0.1549, allocations: 1.254 MB / 497.1 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002542/0.1575, allocations: 1.25 MB / 498.4 MB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1575, allocations: 0 / 498.4 MB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006288/0.1581, allocations: 306.4 kB / 498.7 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006473/0.1588, allocations: 105.9 kB / 498.8 MB, free: 15.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009377/0.1682, allocations: 4.662 MB / 0.4916 GB, free: 10.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.1686, allocations: 0.8236 MB / 0.4925 GB, free: 9.461 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002884/0.1689, allocations: 68.14 kB / 0.4925 GB, free: 9.391 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/0.1691, allocations: 163.4 kB / 0.4927 GB, free: 9.234 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1691, allocations: 0 / 0.4927 GB, free: 9.234 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2226/0.3917, allocations: 14.65 MB / 0.507 GB, free: 51.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.24, allocations: 4.219 kB / 0.507 GB, free: 51.15 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)