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: translateModel(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic") translateModel(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 182.9 kB / 15.98 MB, free: 5.77 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.18/1.18, allocations: 222.9 MB / 239.6 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009752/0.0009752, allocations: 100.6 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0241/0.0241, allocations: 5.407 MB / 345.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 60.64 kB / 410.2 MB, free: 57.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0664/0.06761, allocations: 50.63 MB / 460.9 MB, free: 6.992 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic): time 0.00377/0.07141, allocations: 3.925 MB / 464.8 MB, free: 3.035 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.0733, allocations: 1.492 MB / 466.3 MB, free: 1.539 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003327/0.07367, allocations: 7.938 kB / 466.3 MB, free: 1.531 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004907/0.07417, allocations: 210.8 kB / 466.5 MB, free: 1.324 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003267/0.0745, allocations: 166.9 kB / 466.6 MB, free: 1.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003283/0.07484, allocations: 199.7 kB / 466.8 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004192/0.07527, allocations: 0.7356 MB / 467.6 MB, free: 232 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.07549, allocations: 186.1 kB / 467.8 MB, free: 36 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.07575, allocations: 258.8 kB / 468 MB, free: 15.78 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003165/0.07608, allocations: 322.5 kB / 468.3 MB, free: 15.46 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.76e-05/0.07616, allocations: 36 kB / 468.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.07628, allocations: 51.98 kB / 468.4 MB, free: 15.38 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.47e-05/0.07638, allocations: 111.5 kB / 468.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002427/0.07663, allocations: 282.4 kB / 468.8 MB, free: 14.99 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005836/0.07722, allocations: 0.7047 MB / 469.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.07723, allocations: 0 / 469.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.07724, allocations: 0 / 469.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.07726, allocations: 0 / 469.5 MB, free: 14.29 MB / 314.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.00225/0.07951, allocations: 1.05 MB / 470.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.07956, allocations: 12.88 kB / 470.6 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.07967, allocations: 64.12 kB / 470.6 MB, free: 13.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.08076, allocations: 0.565 MB / 471.2 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-05/0.08087, allocations: 41.11 kB / 471.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.242e-05/0.08093, allocations: 32 kB / 471.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008673/0.0818, allocations: 454.1 kB / 471.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.08182, allocations: 0 / 471.7 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/0.08186, allocations: 16 kB / 471.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.08188, allocations: 8 kB / 471.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.08296, allocations: 419.6 kB / 472.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.08537, allocations: 1.574 MB / 473.7 MB, free: 9.855 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.08658, allocations: 0.551 MB / 474.3 MB, free: 9.262 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005286/0.08713, allocations: 201.2 kB / 474.5 MB, free: 9.062 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.363e-05/0.08717, allocations: 4.234 kB / 474.5 MB, free: 9.059 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000655/0.08783, allocations: 277.7 kB / 474.7 MB, free: 8.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 1.734e-06/0.08784, allocations: 0 / 474.7 MB, free: 8.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.003542/0.09139, allocations: 0.9532 MB / 475.7 MB, free: 7.789 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.09144, allocations: 85.05 kB / 475.8 MB, free: 7.688 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004323/0.09188, allocations: 437.9 kB / 476.2 MB, free: 7.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.09192, allocations: 37.69 kB / 476.2 MB, free: 7.207 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.0921, allocations: 260 kB / 476.5 MB, free: 6.949 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.911e-05/0.09217, allocations: 94.64 kB / 476.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.09231, allocations: 73.91 kB / 476.7 MB, free: 6.777 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.09244, allocations: 354.8 kB / 477 MB, free: 6.422 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005133/0.09296, allocations: 189.7 kB / 477.2 MB, free: 6.234 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005415/0.09351, allocations: 229.7 kB / 477.4 MB, free: 5.992 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009722/0.09449, allocations: 418.1 kB / 477.8 MB, free: 5.562 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.0945, allocations: 0 / 477.8 MB, free: 5.562 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002541/0.09705, allocations: 0.7614 MB / 478.6 MB, free: 4.781 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.09709, allocations: 33.7 kB / 478.6 MB, free: 4.742 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.0971, allocations: 0 / 478.6 MB, free: 4.742 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007703/0.09788, allocations: 241.5 kB / 478.8 MB, free: 4.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.09825, allocations: 75.88 kB / 478.9 MB, free: 4.426 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004466/0.1027, allocations: 3.41 MB / 482.3 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004412/0.1032, allocations: 67.66 kB / 482.4 MB, free: 0.668 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.179e-05/0.1032, allocations: 12 kB / 482.4 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005774/0.1038, allocations: 304.4 kB / 482.7 MB, free: 364 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004898/0.1043, allocations: 245.2 kB / 482.9 MB, free: 100 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.1365/0.2408, allocations: 407.2 kB / 483.3 MB, free: 32.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.396e-06/0.2408, allocations: 1.531 kB / 483.3 MB, free: 32.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization_lambda0): time 0.002768/0.2436, allocations: 0.7549 MB / 484.1 MB, free: 32.4 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.2436, allocations: 34.52 kB / 484.1 MB, free: 32.37 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2437, allocations: 1.5 kB / 484.1 MB, free: 32.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007242/0.2444, allocations: 242 kB / 484.4 MB, free: 32.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003609/0.2448, allocations: 73.72 kB / 484.4 MB, free: 32.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004081/0.2489, allocations: 3.412 MB / 487.9 MB, free: 29.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000507/0.2494, allocations: 58.94 kB / 487.9 MB, free: 29.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.585e-05/0.2494, allocations: 15.27 kB / 487.9 MB, free: 29.48 MB / 314.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 (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.0001207/0.2495, allocations: 205.2 kB / 488.1 MB, free: 29.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.792e-05/0.2496, allocations: 51.19 kB / 488.2 MB, free: 29.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002287/0.2519, allocations: 0.6439 MB / 488.8 MB, free: 29.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.2519, allocations: 4.188 kB / 488.8 MB, free: 29.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.252, allocations: 1.25 kB / 488.8 MB, free: 29.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.252, allocations: 1.266 kB / 488.8 MB, free: 29.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002701/0.2547, allocations: 1.177 MB / 490 MB, free: 28.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.2547, allocations: 3.828 kB / 490 MB, free: 28.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000289/0.255, allocations: 64.77 kB / 490.1 MB, free: 28.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002942/0.2553, allocations: 167.1 kB / 490.2 MB, free: 28.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.896e-05/0.2553, allocations: 10.08 kB / 490.2 MB, free: 28.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002652/0.258, allocations: 1.852 MB / 492.1 MB, free: 27.03 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.258, allocations: 0 / 492.1 MB, free: 27.03 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002803/0.2608, allocations: 1.555 MB / 493.7 MB, free: 26.06 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.261, allocations: 154.8 kB / 493.8 MB, free: 25.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.832e-05/0.261, allocations: 11.48 kB / 493.8 MB, free: 25.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000416/0.2615, allocations: 47.27 kB / 493.9 MB, free: 25.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.2616, allocations: 35.02 kB / 493.9 MB, free: 25.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.2616, allocations: 8.688 kB / 493.9 MB, free: 25.9 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003043/0.2619, allocations: 308.9 kB / 494.2 MB, free: 25.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2619, allocations: 0 / 494.2 MB, free: 25.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009148/0.2628, allocations: 218.9 kB / 494.4 MB, free: 25.72 MB / 314.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.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.0001169/0.263, allocations: 107.9 kB / 494.5 MB, free: 25.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002298/0.2653, allocations: 1.26 MB / 495.8 MB, free: 24.83 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2653, allocations: 0 / 495.8 MB, free: 24.83 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006158/0.2659, allocations: 332.5 kB / 496.1 MB, free: 24.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005638/0.2665, allocations: 98.52 kB / 496.2 MB, free: 24.6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.2681, allocations: 1.23 MB / 497.4 MB, free: 23.78 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.2684, allocations: 0.8428 MB / 498.3 MB, free: 23.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003607/0.2687, allocations: 66.84 kB / 498.3 MB, free: 23.05 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.2688, allocations: 35.72 kB / 498.4 MB, free: 23.04 MB / 314.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2688, allocations: 1.156 kB / 498.4 MB, free: 23.04 MB / 314.7 MB Notification: Performance of Templates: time 0.01415/0.283, allocations: 9.668 MB / 0.4961 GB, free: 18.89 MB / 314.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.makefile (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 & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellTemperatureCharacteristic.pipe 2>&1)