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.001328/0.001328, allocations: 108 kB / 15.61 MB, free: 152 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.001321/0.001321, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.451/1.451, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1863/0.1863, allocations: 5.378 MB / 295.8 MB, free: 2.934 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 64.14 kB / 361 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1047, allocations: 50.61 MB / 411.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic): time 0.005323/0.11, allocations: 3.89 MB / 415.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002508/0.1126, allocations: 1.503 MB / 417 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000416/0.113, allocations: 11.94 kB / 417 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000666/0.1137, allocations: 226.6 kB / 417.3 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005592/0.1143, allocations: 190.5 kB / 417.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005066/0.1148, allocations: 235.5 kB / 417.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008482/0.1156, allocations: 0.7786 MB / 418.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003505/0.116, allocations: 210.5 kB / 418.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003878/0.1164, allocations: 294.9 kB / 418.9 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004559/0.1169, allocations: 350.5 kB / 419.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001397/0.117, allocations: 76 kB / 419.4 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001717/0.1172, allocations: 83.98 kB / 419.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.1173, allocations: 155.5 kB / 419.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003364/0.1177, allocations: 322.4 kB / 419.9 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007561/0.1185, allocations: 0.7359 MB / 420.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1185, allocations: 0 / 420.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1185, allocations: 0 / 420.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.958e-05/0.1185, allocations: 0 / 420.7 MB, free: 2.297 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.003289/0.1218, allocations: 1.054 MB / 421.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.1219, allocations: 8.031 kB / 421.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.122, allocations: 74.72 kB / 421.8 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001694/0.1222, allocations: 60.19 kB / 421.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.1236, allocations: 0.5611 MB / 422.4 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.1237, allocations: 44.92 kB / 422.4 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.311e-05/0.1238, allocations: 32 kB / 422.5 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1743/0.298, allocations: 452 kB / 422.9 MB, free: 48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.87e-05/0.2981, allocations: 2.031 kB / 422.9 MB, free: 48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-05/0.2982, allocations: 15.69 kB / 422.9 MB, free: 48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.2982, allocations: 6.781 kB / 422.9 MB, free: 48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.2994, allocations: 416.8 kB / 423.4 MB, free: 48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002546/0.3019, allocations: 1.576 MB / 424.9 MB, free: 47.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.3031, allocations: 0.5398 MB / 425.5 MB, free: 47.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005097/0.3037, allocations: 204.5 kB / 425.7 MB, free: 47.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.17e-05/0.3037, allocations: 6.906 kB / 425.7 MB, free: 47.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006627/0.3044, allocations: 280.7 kB / 425.9 MB, free: 47.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.064e-06/0.3044, allocations: 0 / 425.9 MB, free: 47.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.003564/0.3079, allocations: 0.9515 MB / 426.9 MB, free: 46.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.308, allocations: 82.11 kB / 427 MB, free: 46.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003969/0.3084, allocations: 438.1 kB / 427.4 MB, free: 46.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.3084, allocations: 32.58 kB / 427.4 MB, free: 46.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.3086, allocations: 261.1 kB / 427.7 MB, free: 46.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.733e-05/0.3086, allocations: 100.9 kB / 427.8 MB, free: 46.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.3088, allocations: 68.38 kB / 427.9 MB, free: 46.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.797e-05/0.3088, allocations: 357.2 kB / 428.2 MB, free: 45.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004872/0.3093, allocations: 187.8 kB / 428.4 MB, free: 45.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004928/0.3098, allocations: 234.4 kB / 428.6 MB, free: 45.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009442/0.3108, allocations: 422.6 kB / 429 MB, free: 45.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.3108, allocations: 0 / 429 MB, free: 45.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00257/0.3134, allocations: 0.7654 MB / 429.8 MB, free: 45.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.3134, allocations: 37.17 kB / 429.8 MB, free: 45.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3134, allocations: 6.375 kB / 429.8 MB, free: 45.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007451/0.3142, allocations: 237.7 kB / 430.1 MB, free: 45.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003732/0.3146, allocations: 80.91 kB / 430.2 MB, free: 45.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00429/0.3189, allocations: 3.726 MB / 433.9 MB, free: 41.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005231/0.3194, allocations: 71.38 kB / 433.9 MB, free: 41.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/0.3195, allocations: 18.86 kB / 434 MB, free: 41.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005699/0.32, allocations: 298.6 kB / 434.3 MB, free: 41.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004605/0.3205, allocations: 235.2 kB / 434.5 MB, free: 41.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008624/0.3214, allocations: 409.2 kB / 434.9 MB, free: 41.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.275e-06/0.3214, allocations: 3.938 kB / 434.9 MB, free: 41.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization_lambda0): time 0.002443/0.3238, allocations: 0.7609 MB / 435.7 MB, free: 41.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.3239, allocations: 32.08 kB / 435.7 MB, free: 41.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.3239, allocations: 0 / 435.7 MB, free: 41.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006635/0.3245, allocations: 239.2 kB / 435.9 MB, free: 41.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003373/0.3249, allocations: 74.62 kB / 436 MB, free: 41.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004065/0.329, allocations: 3.736 MB / 439.7 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004965/0.3295, allocations: 67.77 kB / 439.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.887e-05/0.3295, allocations: 16.89 kB / 439.8 MB, free: 37.86 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 (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 (37): * Single equations (assignments): 34 * 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.0001331/0.3297, allocations: 198.3 kB / 440 MB, free: 37.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-05/0.3297, allocations: 49.34 kB / 440.1 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002218/0.332, allocations: 0.6499 MB / 440.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.332, allocations: 3.25 kB / 440.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.332, allocations: 3.656 kB / 440.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.332, allocations: 0 / 440.7 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002698/0.3347, allocations: 1.184 MB / 441.9 MB, free: 36.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.758e-06/0.3347, allocations: 3.938 kB / 441.9 MB, free: 36.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003005/0.335, allocations: 61.84 kB / 442 MB, free: 36.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003081/0.3353, allocations: 166.2 kB / 442.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.3354, allocations: 14.77 kB / 442.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002837/0.3382, allocations: 1.995 MB / 444.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3382, allocations: 3.422 kB / 444.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002217/0.3405, allocations: 0.7172 MB / 444.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001846/0.3407, allocations: 153.9 kB / 445 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.682e-05/0.3407, allocations: 14.81 kB / 445 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/0.3412, allocations: 39.36 kB / 445.1 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.3413, allocations: 41.61 kB / 445.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.3413, allocations: 6.281 kB / 445.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002804/0.3416, allocations: 304.9 kB / 445.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3416, allocations: 0 / 445.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007938/0.3424, allocations: 222.7 kB / 445.6 MB, free: 34.56 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 (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.002353/0.3448, allocations: 1.273 MB / 446.9 MB, free: 33.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002244/0.347, allocations: 1.294 MB / 448.2 MB, free: 32.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.347, allocations: 0 / 448.2 MB, free: 32.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005801/0.3476, allocations: 324.1 kB / 448.5 MB, free: 32.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.3482, allocations: 99.28 kB / 448.6 MB, free: 32.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008671/0.3569, allocations: 4.799 MB / 453.4 MB, free: 30.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.3572, allocations: 0.844 MB / 454.2 MB, free: 29.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003488/0.3575, allocations: 63.47 kB / 454.3 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002039/0.3577, allocations: 170.3 kB / 454.5 MB, free: 29.33 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3577, allocations: 3.156 kB / 454.5 MB, free: 29.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03922/0.397, allocations: 14.46 MB / 468.9 MB, free: 27.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.7, allocations: 13.31 kB / 468.9 MB, free: 27.87 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/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)