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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00594/0.00594, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 223.2 MB / 239 MB, free: 1.789 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009799/0.0009803, allocations: 94.95 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02474/0.02474, allocations: 5.384 MB / 346.7 MB, free: 5.566 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003397/0.0003397, allocations: 12.03 kB / 412.2 MB, free: 90.12 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09705/0.09741, allocations: 51.6 MB / 463.8 MB, free: 44.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3312/0.4287, allocations: 85.66 MB / 0.5366 GB, free: 19.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001804/0.4289, allocations: 78.09 kB / 0.5367 GB, free: 19.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04239/0.4713, allocations: 15.46 MB / 0.5518 GB, free: 17.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.908e-06/0.4714, allocations: 0 / 0.5518 GB, free: 17.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.509e-05/0.4714, allocations: 6.312 kB / 0.5518 GB, free: 17.61 MB / 362.7 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.003352/0.4748, allocations: 0.9369 MB / 0.5527 GB, free: 17.01 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.856e-05/0.4749, allocations: 13.16 kB / 0.5527 GB, free: 17 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002678/0.4752, allocations: 73.52 kB / 0.5528 GB, free: 16.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003635/0.4755, allocations: 61.38 kB / 0.5528 GB, free: 16.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.4768, allocations: 423.1 kB / 0.5532 GB, free: 16.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.542e-05/0.4769, allocations: 26.97 kB / 0.5533 GB, free: 16.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.477, allocations: 41.61 kB / 0.5533 GB, free: 16.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.4787, allocations: 0.5329 MB / 0.5538 GB, free: 16.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.341e-05/0.4787, allocations: 0 / 0.5538 GB, free: 16.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.369e-05/0.4788, allocations: 14.03 kB / 0.5538 GB, free: 16.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.4788, allocations: 12.22 kB / 0.5539 GB, free: 16.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.4807, allocations: 0.6301 MB / 0.5545 GB, free: 16.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004211/0.485, allocations: 1.787 MB / 0.5562 GB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.4866, allocations: 0.6826 MB / 0.5569 GB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-05/0.4867, allocations: 5.047 kB / 0.5569 GB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007942/0.4875, allocations: 345.6 kB / 0.5572 GB, free: 15.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 3.987e-06/0.4875, allocations: 3.938 kB / 0.5572 GB, free: 15.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.007292/0.4948, allocations: 1.575 MB / 0.5588 GB, free: 15.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.4949, allocations: 107.1 kB / 0.5589 GB, free: 15.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007585/0.4956, allocations: 420.8 kB / 0.5593 GB, free: 15.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.393e-05/0.4957, allocations: 30.98 kB / 0.5593 GB, free: 15.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.4959, allocations: 256.8 kB / 0.5595 GB, free: 14.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.4961, allocations: 97.12 kB / 0.5596 GB, free: 14.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.4961, allocations: 12.84 kB / 0.5596 GB, free: 14.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.556e-05/0.4962, allocations: 353.9 kB / 0.56 GB, free: 14.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005946/0.4968, allocations: 251.3 kB / 0.5602 GB, free: 14.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000582/0.4974, allocations: 317.1 kB / 0.5605 GB, free: 14.49 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006212/0.498, allocations: 285.2 kB / 0.5608 GB, free: 14.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.498, allocations: 3.938 kB / 0.5608 GB, free: 14.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.004116/0.5022, allocations: 1.08 MB / 0.5619 GB, free: 14.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.5023, allocations: 481 kB / 0.5623 GB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.5023, allocations: 5.531 kB / 0.5623 GB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002842/0.5052, allocations: 0.5906 MB / 0.5629 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00052/0.5057, allocations: 94.61 kB / 0.563 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007447/0.5132, allocations: 4.187 MB / 0.5671 GB, free: 27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008992/0.5141, allocations: 98.11 kB / 0.5672 GB, free: 26.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.5142, allocations: 16.47 kB / 0.5672 GB, free: 26.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.5143, allocations: 11.09 kB / 0.5672 GB, free: 26.97 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004281/0.5185, allocations: 0.984 MB / 0.5682 GB, free: 26.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.5186, allocations: 1.5 kB / 0.5682 GB, free: 26.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002944/0.5215, allocations: 0.5931 MB / 0.5687 GB, free: 26.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004945/0.522, allocations: 83.66 kB / 0.5688 GB, free: 26.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007345/0.5294, allocations: 4.189 MB / 0.5729 GB, free: 23.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008423/0.5303, allocations: 84.97 kB / 0.573 GB, free: 23.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.72e-05/0.5304, allocations: 25.45 kB / 0.573 GB, free: 23.66 MB / 378.7 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.integerToReal.u,$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 (38): * Single equations (assignments): 35 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004763/0.5309, allocations: 249.2 kB / 0.5732 GB, free: 23.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.531, allocations: 45.44 kB / 0.5733 GB, free: 23.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003926/0.535, allocations: 0.9412 MB / 0.5742 GB, free: 23.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.535, allocations: 12.08 kB / 0.5742 GB, free: 23.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.535, allocations: 0 / 0.5742 GB, free: 23.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.535, allocations: 1.062 kB / 0.5742 GB, free: 23.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005115/0.5401, allocations: 1.552 MB / 0.5757 GB, free: 22.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.5402, allocations: 0 / 0.5757 GB, free: 22.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003671/0.5406, allocations: 79 kB / 0.5758 GB, free: 22.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002431/0.543, allocations: 0.5135 MB / 0.5763 GB, free: 22.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.291e-05/0.5431, allocations: 11.48 kB / 0.5763 GB, free: 22.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005563/0.5486, allocations: 2.556 MB / 0.5788 GB, free: 20.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.5487, allocations: 1.062 kB / 0.5788 GB, free: 20.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004117/0.5528, allocations: 1.031 MB / 0.5798 GB, free: 20.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004372/0.5533, allocations: 172.3 kB / 0.58 GB, free: 20.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/0.5535, allocations: 9.812 kB / 0.58 GB, free: 20.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006147/0.5541, allocations: 66.66 kB / 0.5801 GB, free: 20.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.5542, allocations: 38.66 kB / 0.5801 GB, free: 20.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.029e-05/0.5543, allocations: 18.88 kB / 0.5801 GB, free: 20.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005132/0.5548, allocations: 322.6 kB / 0.5804 GB, free: 19.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5548, allocations: 1.031 kB / 0.5804 GB, free: 19.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001391/0.5562, allocations: 283.2 kB / 0.5807 GB, free: 19.85 MB / 378.7 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.integerToReal.u,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 (30): * Single equations (assignments): 27 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.004711/0.561, allocations: 1.692 MB / 0.5824 GB, free: 18.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003079/0.5641, allocations: 1.517 MB / 0.5838 GB, free: 18.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.5641, allocations: 4.125 kB / 0.5838 GB, free: 18.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007696/0.5649, allocations: 423 kB / 0.5842 GB, free: 17.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000702/0.5656, allocations: 86.66 kB / 0.5843 GB, free: 17.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002828/0.5684, allocations: 2.012 MB / 0.5863 GB, free: 16.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.5689, allocations: 0.8446 MB / 0.5871 GB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003453/0.5692, allocations: 62.44 kB / 0.5872 GB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002354/0.5695, allocations: 165.4 kB / 0.5873 GB, free: 15.41 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5695, allocations: 0 / 0.5873 GB, free: 15.41 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03335/0.6028, allocations: 17.68 MB / 0.6046 GB, free: 6.711 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000194/0.6031, allocations: 212.4 kB / 0.6048 GB, free: 6.477 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.461/3.065, allocations: 3.938 kB / 0.6048 GB, free: 6.473 MB / 378.7 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)