Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1051200,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") translateModel(PhotoVoltaics.ComponentTesting.TestIrradiance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1051200,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 172.5 kB / 15.42 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 225.7 MB / 241.9 MB, free: 416 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008449/0.0008449, allocations: 89.59 kB / 293.1 MB, free: 12.93 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02505/0.02505, allocations: 5.527 MB / 349.7 MB, free: 4.438 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003065, allocations: 12.66 kB / 412 MB, free: 90.05 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08418/0.0845, allocations: 51.6 MB / 463.6 MB, free: 45.65 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.ComponentTesting.TestIrradiance): time 0.001455/0.08603, allocations: 1.336 MB / 465 MB, free: 44.3 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.08712, allocations: 0.9796 MB / 465.9 MB, free: 43.25 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.745e-05/0.08721, allocations: 0 / 465.9 MB, free: 43.25 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.08733, allocations: 3.938 kB / 465.9 MB, free: 43.24 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.08754, allocations: 55.73 kB / 466 MB, free: 43.19 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.08775, allocations: 111.8 kB / 466.1 MB, free: 43.08 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001421/0.0879, allocations: 167.5 kB / 466.3 MB, free: 42.91 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.678e-05/0.08799, allocations: 21.44 kB / 466.3 MB, free: 42.89 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.08811, allocations: 71.8 kB / 466.4 MB, free: 42.82 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.0883, allocations: 111.6 kB / 466.5 MB, free: 42.71 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.08833, allocations: 4 kB / 466.5 MB, free: 42.7 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.719e-05/0.08843, allocations: 55.91 kB / 466.5 MB, free: 42.65 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.356e-05/0.08848, allocations: 31.89 kB / 466.6 MB, free: 42.62 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.25e-05/0.08857, allocations: 89.41 kB / 466.6 MB, free: 42.52 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.08874, allocations: 175.6 kB / 466.8 MB, free: 42.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.08876, allocations: 4 kB / 466.8 MB, free: 42.35 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.08876, allocations: 0 / 466.8 MB, free: 42.35 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.527e-06/0.08877, allocations: 0 / 466.8 MB, free: 42.35 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006785/0.08945, allocations: 436.8 kB / 467.2 MB, free: 41.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.0895, allocations: 12.03 kB / 467.3 MB, free: 41.86 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.709e-05/0.08955, allocations: 12.75 kB / 467.3 MB, free: 41.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.08973, allocations: 204.1 kB / 467.5 MB, free: 41.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.08976, allocations: 12.38 kB / 467.5 MB, free: 41.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.0898, allocations: 12.38 kB / 467.5 MB, free: 41.58 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000316/0.09012, allocations: 170.6 kB / 467.7 MB, free: 41.4 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.09014, allocations: 0 / 467.7 MB, free: 41.4 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.09017, allocations: 12 kB / 467.7 MB, free: 41.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.09018, allocations: 4 kB / 467.7 MB, free: 41.39 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003122/0.0905, allocations: 133.1 kB / 467.8 MB, free: 41.26 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005741/0.09109, allocations: 0.5906 MB / 468.4 MB, free: 40.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005363/0.09163, allocations: 202.7 kB / 468.6 MB, free: 40.4 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.09182, allocations: 88.75 kB / 468.7 MB, free: 40.31 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.113e-05/0.09191, allocations: 85.09 kB / 468.8 MB, free: 40.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003017/0.09222, allocations: 201.3 kB / 469 MB, free: 39.99 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.09223, allocations: 0 / 469 MB, free: 39.99 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007127/0.09295, allocations: 334.8 kB / 469.3 MB, free: 39.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/0.09301, allocations: 140.5 kB / 469.4 MB, free: 39.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.791e-05/0.09309, allocations: 134 kB / 469.6 MB, free: 39.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.09312, allocations: 33.7 kB / 469.6 MB, free: 39.3 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.417e-05/0.09317, allocations: 92.58 kB / 469.7 MB, free: 39.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.718e-05/0.09323, allocations: 86.83 kB / 469.8 MB, free: 39.12 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.397e-05/0.09325, allocations: 0 / 469.8 MB, free: 39.12 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.736e-05/0.09332, allocations: 326.8 kB / 470.1 MB, free: 38.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.0935, allocations: 71.95 kB / 470.2 MB, free: 38.72 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.0937, allocations: 116.2 kB / 470.3 MB, free: 38.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004184/0.09789, allocations: 0.7728 MB / 471 MB, free: 37.76 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.09791, allocations: 4 kB / 471 MB, free: 37.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000468/0.09838, allocations: 289.3 kB / 471.3 MB, free: 37.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.09842, allocations: 36.45 kB / 471.4 MB, free: 37.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.09843, allocations: 0 / 471.4 MB, free: 37.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.09845, allocations: 4 kB / 471.4 MB, free: 37.42 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002506/0.0987, allocations: 59.88 kB / 471.4 MB, free: 37.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.09872, allocations: 12.06 kB / 471.4 MB, free: 37.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.0989, allocations: 15.84 kB / 471.5 MB, free: 37.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.09893, allocations: 11.98 kB / 471.5 MB, free: 37.32 MB / 330.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: irradiance.Jprime = /*Real*/(PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) / /*Real*/(PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear)) * 2.0 * 3.141592653589793. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.irradiance.year,irradiance.year,$whenCondition1,$whenCondition2,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.09906, allocations: 180 kB / 471.6 MB, free: 37.13 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.592e-05/0.09909, allocations: 15.84 kB / 471.7 MB, free: 37.12 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000751/0.09985, allocations: 445 kB / 472.1 MB, free: 36.67 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.09987, allocations: 4 kB / 472.1 MB, free: 36.67 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.09987, allocations: 0 / 472.1 MB, free: 36.67 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.09988, allocations: 3.984 kB / 472.1 MB, free: 36.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001998/0.1001, allocations: 305.2 kB / 472.4 MB, free: 36.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1001, allocations: 0 / 472.4 MB, free: 36.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.1004, allocations: 63.89 kB / 472.5 MB, free: 36.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.1004, allocations: 7.938 kB / 472.5 MB, free: 36.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.1004, allocations: 11.98 kB / 472.5 MB, free: 36.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.1004, allocations: 4 kB / 472.5 MB, free: 36.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1004, allocations: 4 kB / 472.5 MB, free: 36.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007021/0.1011, allocations: 0.4887 MB / 473 MB, free: 35.71 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.3e-05/0.1012, allocations: 100.8 kB / 473.1 MB, free: 35.6 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.854e-05/0.1012, allocations: 12 kB / 473.1 MB, free: 35.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.1014, allocations: 15.89 kB / 473.1 MB, free: 35.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.502e-05/0.1015, allocations: 35.95 kB / 473.1 MB, free: 35.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.1015, allocations: 12 kB / 473.1 MB, free: 35.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.614e-05/0.1015, allocations: 109.1 kB / 473.3 MB, free: 35.42 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1015, allocations: 0 / 473.3 MB, free: 35.42 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002607/0.1018, allocations: 68 kB / 473.3 MB, free: 35.35 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 6 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition2,irradiance.dayOfYear,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001385/0.102, allocations: 123.7 kB / 473.4 MB, free: 35.22 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005182/0.1025, allocations: 283.5 kB / 473.7 MB, free: 34.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1025, allocations: 0 / 473.7 MB, free: 34.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.1027, allocations: 239.7 kB / 474 MB, free: 34.69 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.103, allocations: 35.84 kB / 474 MB, free: 34.65 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006824/0.1037, allocations: 0.5384 MB / 474.5 MB, free: 34.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.1038, allocations: 0.729 MB / 475.3 MB, free: 33.33 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001523/0.104, allocations: 45.92 kB / 475.3 MB, free: 33.29 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.959e-05/0.1041, allocations: 39.41 kB / 475.3 MB, free: 33.25 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1041, allocations: 0 / 475.3 MB, free: 33.25 MB / 330.7 MB Notification: Performance of Templates: time 0.004992/0.1091, allocations: 3.102 MB / 478.4 MB, free: 30.16 MB / 330.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.makefile (rm -f PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.sim & ./PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.ComponentTesting.TestIrradiance.pipe 2>&1)