Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.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.SimpleCellTemperatureCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic",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.000937/0.000937, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0008802/0.0008802, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1574/0.1574, allocations: 5.384 MB / 296.4 MB, free: 3.984 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003193, allocations: 11.98 kB / 361.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1014, allocations: 51.6 MB / 413.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic): time 0.003619/0.1051, allocations: 3.195 MB / 416.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002243/0.1073, allocations: 1.403 MB / 418.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002499/0.1076, allocations: 4 kB / 418.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000484/0.1081, allocations: 187 kB / 418.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004339/0.1086, allocations: 187.5 kB / 418.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004282/0.109, allocations: 151.6 kB / 418.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005611/0.1096, allocations: 475 kB / 419.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002808/0.1099, allocations: 158.1 kB / 419.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002554/0.1101, allocations: 239.1 kB / 419.5 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003152/0.1104, allocations: 282.8 kB / 419.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.096e-05/0.1105, allocations: 32 kB / 419.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.79e-05/0.1106, allocations: 43.98 kB / 419.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.202e-05/0.1107, allocations: 103.5 kB / 419.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.1108, allocations: 125.4 kB / 420 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004606/0.1113, allocations: 0.5376 MB / 420.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1113, allocations: 0 / 420.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1113, allocations: 0 / 420.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.1113, allocations: 0 / 420.6 MB, free: 3.414 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: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.002289/0.1136, allocations: 0.9762 MB / 421.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.1137, allocations: 8.031 kB / 421.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.864e-05/0.1138, allocations: 78.52 kB / 421.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.1139, allocations: 63.25 kB / 421.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.1151, allocations: 0.56 MB / 422.3 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.749e-05/0.1152, allocations: 44.98 kB / 422.3 MB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.48e-05/0.1153, allocations: 39.95 kB / 422.3 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008989/0.1162, allocations: 474 kB / 422.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.1162, allocations: 0 / 422.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.049e-05/0.1162, allocations: 16 kB / 422.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.1163, allocations: 8 kB / 422.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001094/0.1174, allocations: 463.7 kB / 423.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1819/0.2993, allocations: 1.656 MB / 424.9 MB, free: 44.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.3007, allocations: 0.578 MB / 425.5 MB, free: 43.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.3007, allocations: 8.203 kB / 425.5 MB, free: 43.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000632/0.3013, allocations: 302.7 kB / 425.8 MB, free: 43.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.914e-06/0.3014, allocations: 0 / 425.8 MB, free: 43.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.003491/0.3049, allocations: 1.096 MB / 426.9 MB, free: 43.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.3049, allocations: 83.7 kB / 427 MB, free: 43.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004425/0.3054, allocations: 433.6 kB / 427.4 MB, free: 43.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/0.3054, allocations: 32.48 kB / 427.5 MB, free: 43.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.3056, allocations: 261.4 kB / 427.7 MB, free: 43.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.066e-05/0.3056, allocations: 95.19 kB / 427.8 MB, free: 43.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/0.3057, allocations: 3.438 kB / 427.8 MB, free: 43.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.52e-05/0.3057, allocations: 359.5 kB / 428.2 MB, free: 42.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000475/0.3062, allocations: 206.4 kB / 428.4 MB, free: 42.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004838/0.3067, allocations: 256.6 kB / 428.6 MB, free: 42.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004976/0.3072, allocations: 240.4 kB / 428.8 MB, free: 42.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3072, allocations: 0 / 428.8 MB, free: 42.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002406/0.3096, allocations: 0.8586 MB / 429.7 MB, free: 42.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.899e-05/0.3097, allocations: 480 kB / 430.2 MB, free: 42.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.3098, allocations: 3.156 kB / 430.2 MB, free: 42.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007409/0.3105, allocations: 248 kB / 430.4 MB, free: 42.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003662/0.3109, allocations: 86.48 kB / 430.5 MB, free: 42.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004164/0.3151, allocations: 3.553 MB / 434.1 MB, free: 39.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005705/0.3156, allocations: 89.23 kB / 434.1 MB, free: 39.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.052e-05/0.3157, allocations: 14.38 kB / 434.2 MB, free: 39.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.926e-06/0.3157, allocations: 3.906 kB / 434.2 MB, free: 39.45 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002382/0.3181, allocations: 0.7885 MB / 434.9 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3181, allocations: 3.188 kB / 434.9 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000671/0.3188, allocations: 252.4 kB / 435.2 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003409/0.3191, allocations: 85.41 kB / 435.3 MB, free: 39.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00396/0.3231, allocations: 3.542 MB / 438.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005229/0.3236, allocations: 81.08 kB / 438.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.3237, allocations: 12.59 kB / 438.9 MB, free: 36.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,triangleAndStep.realToInteger.y,$PRE.triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.T_start,$PRE.triangleAndStep.trapezoid.count,triangleAndStep.trapezoid.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002823/0.324, allocations: 255.7 kB / 439.2 MB, free: 36.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.947e-05/0.324, allocations: 42.84 kB / 439.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00223/0.3263, allocations: 0.7264 MB / 439.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3263, allocations: 4.203 kB / 439.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.3263, allocations: 6.734 kB / 439.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3263, allocations: 4 kB / 439.9 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00278/0.3291, allocations: 1.263 MB / 441.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.3291, allocations: 8.078 kB / 441.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002999/0.3294, allocations: 75.52 kB / 441.3 MB, free: 35.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003424/0.3298, allocations: 175.3 kB / 441.5 MB, free: 35.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.958e-05/0.3298, allocations: 11.41 kB / 441.5 MB, free: 35.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002674/0.3325, allocations: 1.992 MB / 443.5 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3325, allocations: 0 / 443.5 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002106/0.3346, allocations: 0.8201 MB / 444.3 MB, free: 34.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.3348, allocations: 151.6 kB / 444.4 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.186e-05/0.3349, allocations: 15.03 kB / 444.4 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004111/0.3353, allocations: 56.19 kB / 444.5 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.3354, allocations: 40.52 kB / 444.5 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.3354, allocations: 10.28 kB / 444.5 MB, free: 33.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002989/0.3357, allocations: 304 kB / 444.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3358, allocations: 0 / 444.8 MB, free: 33.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008068/0.3366, allocations: 220.2 kB / 445.1 MB, free: 33.71 MB / 350.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 (29): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002331/0.3389, allocations: 1.441 MB / 446.5 MB, free: 32.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002293/0.3412, allocations: 1.335 MB / 447.8 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.3412, allocations: 256 / 447.8 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005693/0.3418, allocations: 354.7 kB / 448.2 MB, free: 31.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.3423, allocations: 89.8 kB / 448.3 MB, free: 31.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.3441, allocations: 1.976 MB / 450.2 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.3444, allocations: 0.8501 MB / 451.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003103/0.3447, allocations: 66.75 kB / 451.2 MB, free: 29.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.3449, allocations: 172 kB / 451.3 MB, free: 29.37 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3449, allocations: 3.938 kB / 451.3 MB, free: 29.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02557/0.3705, allocations: 12.93 MB / 464.3 MB, free: 28.49 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.3707, allocations: 221.5 kB / 464.5 MB, free: 28.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.245, allocations: 0 / 464.5 MB, free: 28.25 MB / 350.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellTemperatureCharacteristic.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe 2>&1) Environment - environmentSimulation: