Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.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: translateModel(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic") translateModel(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007576/0.007576, allocations: 102.2 kB / 15.73 MB, free: 6.031 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.001738/0.001738, allocations: 194.4 kB / 16.67 MB, free: 5.969 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1632/0.1632, allocations: 5.385 MB / 295.9 MB, free: 2.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002461/0.002461, allocations: 63.89 kB / 412.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2909, allocations: 50.62 MB / 463.4 MB, free: 21.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.004095/0.2951, allocations: 3.856 MB / 467.3 MB, free: 18.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.2969, allocations: 1.498 MB / 468.8 MB, free: 17.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.2971, allocations: 6.25 kB / 468.8 MB, free: 17.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005569/0.2977, allocations: 233.5 kB / 469 MB, free: 17.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003627/0.2981, allocations: 177.4 kB / 469.2 MB, free: 17.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.2985, allocations: 225.2 kB / 469.4 MB, free: 17.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006415/0.2991, allocations: 0.759 MB / 470.2 MB, free: 17.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.2994, allocations: 172.5 kB / 470.3 MB, free: 17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.2997, allocations: 294.4 kB / 470.6 MB, free: 16.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003456/0.3, allocations: 341.5 kB / 470.9 MB, free: 16.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.3001, allocations: 73.44 kB / 471 MB, free: 16.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.3003, allocations: 84.16 kB / 471.1 MB, free: 16.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.3004, allocations: 148.9 kB / 471.2 MB, free: 16.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000251/0.3007, allocations: 312.7 kB / 471.5 MB, free: 16.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007258/0.3014, allocations: 0.7227 MB / 472.3 MB, free: 16.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3014, allocations: 5.219 kB / 472.3 MB, free: 16.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3014, allocations: 0 / 472.3 MB, free: 16.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.3014, allocations: 0 / 472.3 MB, free: 16.06 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.002398/0.3038, allocations: 1.014 MB / 473.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.3039, allocations: 8.531 kB / 473.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.304, allocations: 66.06 kB / 473.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.3052, allocations: 0.5634 MB / 473.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.3052, allocations: 29.88 kB / 474 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-05/0.3053, allocations: 35.02 kB / 474 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009397/0.3063, allocations: 442.5 kB / 474.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.3063, allocations: 5.375 kB / 474.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/0.3063, allocations: 10.53 kB / 474.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.3063, allocations: 13.16 kB / 474.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.3075, allocations: 405.2 kB / 474.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.3101, allocations: 1.564 MB / 476.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.3115, allocations: 0.5679 MB / 477 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.3121, allocations: 186.3 kB / 477.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.452e-05/0.3121, allocations: 12.55 kB / 477.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006099/0.3128, allocations: 258.3 kB / 477.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.984e-06/0.3128, allocations: 1.156 kB / 477.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.00385/0.3166, allocations: 0.9137 MB / 478.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.3167, allocations: 80.23 kB / 478.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006645/0.3174, allocations: 456 kB / 478.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.657e-05/0.3174, allocations: 31.92 kB / 478.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.3176, allocations: 265.9 kB / 479.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.832e-05/0.3177, allocations: 82.03 kB / 479.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.3178, allocations: 63.36 kB / 479.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.852e-05/0.3179, allocations: 365.1 kB / 479.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005172/0.3184, allocations: 184.1 kB / 479.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005454/0.319, allocations: 230.1 kB / 480.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.32, allocations: 391.4 kB / 480.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.32, allocations: 0 / 480.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002827/0.3228, allocations: 0.7566 MB / 481.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.343e-05/0.3229, allocations: 39.44 kB / 481.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.3229, allocations: 5.062 kB / 481.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009777/0.3239, allocations: 239 kB / 481.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004449/0.3244, allocations: 75.91 kB / 481.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00493/0.3293, allocations: 3.738 MB / 485.3 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007663/0.3301, allocations: 71.55 kB / 485.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-05/0.3301, allocations: 20.45 kB / 485.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007886/0.3309, allocations: 306.1 kB / 485.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005195/0.3315, allocations: 218.6 kB / 485.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009365/0.3324, allocations: 382.8 kB / 486.3 MB, free: 6.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.685e-06/0.3324, allocations: 5.188 kB / 486.3 MB, free: 6.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.002615/0.3351, allocations: 0.7511 MB / 487 MB, free: 5.867 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.3351, allocations: 32.2 kB / 487.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.3351, allocations: 1.219 kB / 487.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006923/0.3358, allocations: 238.3 kB / 487.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003705/0.3362, allocations: 75.66 kB / 487.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004333/0.3405, allocations: 3.736 MB / 491.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006471/0.3412, allocations: 70.34 kB / 491.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.3412, allocations: 12.97 kB / 491.2 MB, free: 2.145 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (36): * Single equations (assignments): 33 * 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.0001636/0.3414, allocations: 196.5 kB / 491.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.742e-05/0.3415, allocations: 56.58 kB / 491.4 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.3416, allocations: 43.67 kB / 491.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3416, allocations: 3.625 kB / 491.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3416, allocations: 0 / 491.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3416, allocations: 3.984 kB / 491.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002789/0.3444, allocations: 1.121 MB / 492.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3445, allocations: 0 / 492.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/0.3447, allocations: 48.17 kB / 492.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003252/0.3451, allocations: 163.2 kB / 492.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.3451, allocations: 6.75 kB / 492.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00316/0.3483, allocations: 2.019 MB / 494.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3483, allocations: 0 / 494.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002432/0.3507, allocations: 0.6789 MB / 495.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.351, allocations: 155.3 kB / 495.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.308e-05/0.3511, allocations: 7.375 kB / 495.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004301/0.3515, allocations: 42.73 kB / 495.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.3516, allocations: 37.08 kB / 495.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.3516, allocations: 5.25 kB / 495.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003785/0.352, allocations: 319 kB / 496.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.352, allocations: 0 / 496.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009134/0.353, allocations: 216.1 kB / 496.3 MB, free: 14.34 MB / 366.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 (23): * Single equations (assignments): 20 * 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.0001859/0.3532, allocations: 124.3 kB / 496.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002778/0.3559, allocations: 1.257 MB / 497.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.356, allocations: 0 / 497.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006755/0.3566, allocations: 299.7 kB / 497.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006044/0.3573, allocations: 103 kB / 498 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.3588, allocations: 0.7914 MB / 498.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.3592, allocations: 0.8275 MB / 499.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002822/0.3595, allocations: 68.12 kB / 499.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.3596, allocations: 35.44 kB / 499.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3596, allocations: 0 / 499.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of Templates: time 0.01642/0.3761, allocations: 10.45 MB / 0.4983 GB, free: 1.129 MB / 366.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe 2>&1)