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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.0009973/0.0009974, allocations: 182.2 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.176/1.176, allocations: 222.9 MB / 239.7 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.0009796/0.0009796, allocations: 106.2 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0242/0.0242, allocations: 5.397 MB / 345.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009158/0.0009159, allocations: 59.19 kB / 410.2 MB, free: 57.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06371/0.06464, allocations: 50.63 MB / 460.8 MB, free: 7.02 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.003405/0.06808, allocations: 3.882 MB / 464.7 MB, free: 3.105 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.06944, allocations: 1.484 MB / 466.2 MB, free: 1.617 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.06961, allocations: 7.938 kB / 466.2 MB, free: 1.609 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004287/0.07005, allocations: 206.9 kB / 466.4 MB, free: 1.406 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002586/0.07032, allocations: 162.9 kB / 466.6 MB, free: 1.246 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002649/0.07059, allocations: 193.2 kB / 466.8 MB, free: 1.059 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003862/0.07099, allocations: 0.7162 MB / 467.5 MB, free: 348 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.07118, allocations: 157.9 kB / 467.6 MB, free: 184 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.07139, allocations: 250.9 kB / 467.9 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.07169, allocations: 302.7 kB / 468.2 MB, free: 15.64 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.79e-05/0.07177, allocations: 39.94 kB / 468.2 MB, free: 15.6 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001015/0.07187, allocations: 40 kB / 468.3 MB, free: 15.56 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.07198, allocations: 123.4 kB / 468.4 MB, free: 15.44 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002211/0.07221, allocations: 270.5 kB / 468.6 MB, free: 15.17 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005322/0.07275, allocations: 0.6813 MB / 469.3 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.07276, allocations: 0 / 469.3 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.07277, allocations: 0 / 469.3 MB, free: 14.49 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.07278, allocations: 0 / 469.3 MB, free: 14.49 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0022/0.07498, allocations: 1.018 MB / 470.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.07502, allocations: 12.88 kB / 470.4 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.07513, allocations: 60.27 kB / 470.4 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.07621, allocations: 0.5606 MB / 471 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-05/0.07632, allocations: 40.77 kB / 471 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.941e-05/0.07637, allocations: 36 kB / 471.1 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008286/0.07721, allocations: 439.4 kB / 471.5 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.07723, allocations: 4 kB / 471.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.824e-05/0.07727, allocations: 19.98 kB / 471.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.485e-06/0.07729, allocations: 8 kB / 471.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.07835, allocations: 398.3 kB / 471.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002389/0.08075, allocations: 1.576 MB / 473.5 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.08206, allocations: 0.5746 MB / 474.1 MB, free: 9.527 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005028/0.08257, allocations: 192.6 kB / 474.2 MB, free: 9.336 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.08261, allocations: 4 kB / 474.2 MB, free: 9.332 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005982/0.08322, allocations: 254.9 kB / 474.5 MB, free: 9.066 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.08323, allocations: 4 kB / 474.5 MB, free: 9.062 MB / 314.7 MB Notification: Performance of matching and sorting (n=25): time 0.003422/0.08666, allocations: 0.9099 MB / 475.4 MB, free: 8.125 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.08671, allocations: 81.11 kB / 475.5 MB, free: 8.027 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004497/0.08717, allocations: 457.9 kB / 475.9 MB, free: 7.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/0.0872, allocations: 33.7 kB / 476 MB, free: 7.531 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.08737, allocations: 256 kB / 476.2 MB, free: 7.277 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.985e-05/0.08744, allocations: 82.89 kB / 476.3 MB, free: 7.195 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.08757, allocations: 77.91 kB / 476.4 MB, free: 7.113 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.08771, allocations: 354.7 kB / 476.7 MB, free: 6.758 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005076/0.08822, allocations: 194 kB / 476.9 MB, free: 6.566 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000511/0.08874, allocations: 229.1 kB / 477.1 MB, free: 6.328 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009295/0.08968, allocations: 389.3 kB / 477.5 MB, free: 5.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.08969, allocations: 0 / 477.5 MB, free: 5.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002547/0.09224, allocations: 0.7612 MB / 478.3 MB, free: 5.148 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.09228, allocations: 41.62 kB / 478.3 MB, free: 5.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.0923, allocations: 4 kB / 478.3 MB, free: 5.098 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007464/0.09305, allocations: 233.6 kB / 478.5 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.09341, allocations: 75.88 kB / 478.6 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004425/0.09784, allocations: 3.422 MB / 482 MB, free: 1.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005096/0.09836, allocations: 63.64 kB / 482.1 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.479e-05/0.09841, allocations: 15.98 kB / 482.1 MB, free: 1.012 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005847/0.099, allocations: 296.1 kB / 482.4 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000495/0.09951, allocations: 220.8 kB / 482.6 MB, free: 500 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008879/0.1004, allocations: 392.4 kB / 483 MB, free: 88 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.474e-06/0.1004, allocations: 4 kB / 483 MB, free: 84 kB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.1399/0.2403, allocations: 0.7409 MB / 483.8 MB, free: 32.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.882e-05/0.2404, allocations: 33.14 kB / 483.8 MB, free: 32.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.2404, allocations: 2.938 kB / 483.8 MB, free: 32.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007072/0.2411, allocations: 236.3 kB / 484 MB, free: 32.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003535/0.2415, allocations: 77.59 kB / 484.1 MB, free: 32.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003944/0.2454, allocations: 3.416 MB / 487.5 MB, free: 29.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006324/0.2461, allocations: 65.94 kB / 487.6 MB, free: 29.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.74e-05/0.2461, allocations: 18.5 kB / 487.6 MB, free: 29.71 MB / 314.7 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.0001336/0.2463, allocations: 202 kB / 487.8 MB, free: 29.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.082e-05/0.2464, allocations: 48.62 kB / 487.8 MB, free: 29.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.2465, allocations: 48.27 kB / 487.9 MB, free: 29.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.2465, allocations: 4.812 kB / 487.9 MB, free: 29.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2465, allocations: 0.8906 kB / 487.9 MB, free: 29.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.2465, allocations: 0.75 kB / 487.9 MB, free: 29.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00265/0.2492, allocations: 1.116 MB / 489 MB, free: 28.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2492, allocations: 4.469 kB / 489 MB, free: 28.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002602/0.2494, allocations: 54.62 kB / 489.1 MB, free: 28.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003145/0.2498, allocations: 161.1 kB / 489.2 MB, free: 28.92 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.551e-05/0.2498, allocations: 8.625 kB / 489.2 MB, free: 28.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00258/0.2524, allocations: 1.866 MB / 491.1 MB, free: 27.45 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2524, allocations: 7.766 kB / 491.1 MB, free: 27.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002598/0.255, allocations: 1.486 MB / 492.6 MB, free: 26.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.2552, allocations: 151.4 kB / 492.7 MB, free: 26.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.508e-05/0.2552, allocations: 7.078 kB / 492.7 MB, free: 26.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/0.2556, allocations: 41.53 kB / 492.8 MB, free: 26.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.507e-05/0.2557, allocations: 41.2 kB / 492.8 MB, free: 26.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.2558, allocations: 6.359 kB / 492.8 MB, free: 26.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003122/0.2561, allocations: 318.1 kB / 493.1 MB, free: 26.21 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2561, allocations: 0 / 493.1 MB, free: 26.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008729/0.257, allocations: 212.1 kB / 493.4 MB, free: 26.18 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 (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.000107/0.2571, allocations: 116.3 kB / 493.5 MB, free: 26.08 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002123/0.2592, allocations: 1.226 MB / 494.7 MB, free: 25.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.2592, allocations: 4.25 kB / 494.7 MB, free: 25.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005678/0.2598, allocations: 307.8 kB / 495 MB, free: 25.13 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005439/0.2603, allocations: 95.5 kB / 495.1 MB, free: 25.1 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.2617, allocations: 1.159 MB / 496.2 MB, free: 24.32 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.262, allocations: 0.8365 MB / 497.1 MB, free: 23.61 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003344/0.2623, allocations: 67.73 kB / 497.2 MB, free: 23.6 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.2624, allocations: 37.91 kB / 497.2 MB, free: 23.59 MB / 314.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2624, allocations: 0 / 497.2 MB, free: 23.59 MB / 314.7 MB Notification: Performance of Templates: time 0.01293/0.2754, allocations: 9.695 MB / 0.495 GB, free: 19.69 MB / 314.7 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)