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.0008212/0.0008212, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.00459/0.00459, allocations: 170.6 kB / 16.27 MB, free: 6.66 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.286/1.286, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1523/0.1523, allocations: 5.379 MB / 296.8 MB, free: 3.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003624, allocations: 12 kB / 362.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.0903, allocations: 51.61 MB / 414.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic): time 0.003685/0.09403, allocations: 3.528 MB / 417.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001998/0.09605, allocations: 1.472 MB / 419.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000199/0.09627, allocations: 7.938 kB / 419.3 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004961/0.09677, allocations: 214.9 kB / 419.5 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003477/0.09713, allocations: 166.8 kB / 419.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.09751, allocations: 191.8 kB / 419.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006152/0.09813, allocations: 0.7239 MB / 420.6 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002859/0.09843, allocations: 190.1 kB / 420.8 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.0987, allocations: 246.8 kB / 421 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003359/0.09904, allocations: 298.6 kB / 421.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.33e-05/0.09911, allocations: 32 kB / 421.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.727e-05/0.09921, allocations: 35.98 kB / 421.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.406e-05/0.09932, allocations: 107.4 kB / 421.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002288/0.09955, allocations: 296.1 kB / 421.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005437/0.1001, allocations: 0.6849 MB / 422.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1001, allocations: 0 / 422.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1001, allocations: 0 / 422.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1001, allocations: 0 / 422.5 MB, free: 1.836 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.002226/0.1024, allocations: 0.9685 MB / 423.4 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.1024, allocations: 15.97 kB / 423.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.688e-05/0.1025, allocations: 74.72 kB / 423.5 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.1026, allocations: 56.28 kB / 423.6 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.1038, allocations: 0.5844 MB / 424.2 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1682/0.2721, allocations: 51.3 kB / 424.2 MB, free: 45.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.2722, allocations: 33.75 kB / 424.2 MB, free: 45.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.2733, allocations: 476.2 kB / 424.7 MB, free: 45.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.2734, allocations: 1.812 kB / 424.7 MB, free: 45.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.111e-05/0.2734, allocations: 14.81 kB / 424.7 MB, free: 45.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.2734, allocations: 8.469 kB / 424.7 MB, free: 45.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.2747, allocations: 466.7 kB / 425.2 MB, free: 45.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002601/0.2773, allocations: 1.614 MB / 426.8 MB, free: 44.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.2785, allocations: 0.5725 MB / 427.4 MB, free: 44.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000538/0.279, allocations: 231.3 kB / 427.6 MB, free: 44.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.2791, allocations: 5.391 kB / 427.6 MB, free: 44.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006427/0.2797, allocations: 295.6 kB / 427.9 MB, free: 44.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.874e-06/0.2797, allocations: 7.219 kB / 427.9 MB, free: 44.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.003647/0.2834, allocations: 1.104 MB / 429 MB, free: 44.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.2834, allocations: 84.11 kB / 429.1 MB, free: 44.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004397/0.2839, allocations: 439.1 kB / 429.5 MB, free: 43.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.2839, allocations: 31.98 kB / 429.5 MB, free: 43.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.2841, allocations: 255.3 kB / 429.8 MB, free: 43.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.3e-05/0.2842, allocations: 95.17 kB / 429.9 MB, free: 43.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.476e-05/0.2842, allocations: 41.7 kB / 429.9 MB, free: 43.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.35e-05/0.2843, allocations: 358.2 kB / 430.3 MB, free: 43.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005495/0.2848, allocations: 207 kB / 430.5 MB, free: 43.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005571/0.2854, allocations: 261.9 kB / 430.7 MB, free: 43.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009991/0.2864, allocations: 460.7 kB / 431.2 MB, free: 43.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2864, allocations: 4 kB / 431.2 MB, free: 43.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002685/0.2891, allocations: 0.859 MB / 432 MB, free: 43.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.573e-05/0.2892, allocations: 150.3 kB / 432.2 MB, free: 42.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.2892, allocations: 1.594 kB / 432.2 MB, free: 42.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007722/0.29, allocations: 251.6 kB / 432.4 MB, free: 42.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003792/0.2904, allocations: 86.19 kB / 432.5 MB, free: 42.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004083/0.2945, allocations: 3.504 MB / 436 MB, free: 40.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005175/0.295, allocations: 81.12 kB / 436.1 MB, free: 40.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.2951, allocations: 17.2 kB / 436.1 MB, free: 40.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.011e-06/0.2951, allocations: 3.062 kB / 436.1 MB, free: 40.18 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002531/0.2976, allocations: 0.8035 MB / 436.9 MB, free: 40.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.2976, allocations: 3.188 kB / 436.9 MB, free: 40.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006367/0.2983, allocations: 244.5 kB / 437.2 MB, free: 39.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003374/0.2986, allocations: 89.31 kB / 437.3 MB, free: 39.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003968/0.3026, allocations: 3.497 MB / 440.8 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006205/0.3032, allocations: 85.34 kB / 440.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.3033, allocations: 7.859 kB / 440.8 MB, free: 36.95 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.0002927/0.3036, allocations: 249.5 kB / 441.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.618e-05/0.3037, allocations: 46.97 kB / 441.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002358/0.306, allocations: 0.73 MB / 441.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.306, allocations: 9 kB / 441.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.3061, allocations: 0 / 441.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.3061, allocations: 7.922 kB / 441.9 MB, free: 36.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.3089, allocations: 1.276 MB / 443.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3089, allocations: 0 / 443.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003019/0.3092, allocations: 71.16 kB / 443.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003175/0.3095, allocations: 178.8 kB / 443.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/0.3096, allocations: 3.25 kB / 443.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002744/0.3123, allocations: 1.951 MB / 445.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3123, allocations: 0 / 445.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.3145, allocations: 0.817 MB / 446.2 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.3147, allocations: 156.5 kB / 446.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.593e-05/0.3147, allocations: 6.75 kB / 446.3 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004405/0.3152, allocations: 67.47 kB / 446.4 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.49e-05/0.3153, allocations: 38.2 kB / 446.4 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.3153, allocations: 7.188 kB / 446.4 MB, free: 33.85 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002664/0.3156, allocations: 303.9 kB / 446.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3156, allocations: 0 / 446.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007191/0.3163, allocations: 216.9 kB / 447 MB, free: 33.66 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.002368/0.3187, allocations: 1.353 MB / 448.3 MB, free: 32.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002255/0.321, allocations: 1.344 MB / 449.6 MB, free: 32.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.321, allocations: 4.062 kB / 449.7 MB, free: 32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006057/0.3216, allocations: 358.2 kB / 450 MB, free: 31.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006083/0.3222, allocations: 94.73 kB / 450.1 MB, free: 31.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0089/0.3311, allocations: 5.209 MB / 455.3 MB, free: 29.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.3314, allocations: 0.8374 MB / 456.1 MB, free: 28.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003506/0.3318, allocations: 66.41 kB / 456.2 MB, free: 28.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.332, allocations: 170.6 kB / 456.4 MB, free: 28.18 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.332, allocations: 0 / 456.4 MB, free: 28.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04178/0.3738, allocations: 13.45 MB / 469.8 MB, free: 27.27 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/0.374, allocations: 242.4 kB / 470.1 MB, free: 27.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.994/2.368, allocations: 3.094 kB / 470.1 MB, free: 27.01 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)