Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008738/0.0008738, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009669/0.0009668, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.268/1.268, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9098/0.9098, allocations: 135.3 MB / 427.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003396/0.0003396, allocations: 8 kB / 0.5082 GB, free: 4.793 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1522, allocations: 82.31 MB / 0.5886 GB, free: 2.652 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic): time 0.004321/0.1565, allocations: 3.71 MB / 0.5922 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.3963/0.5529, allocations: 146.5 MB / 0.7353 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000574/0.5535, allocations: 18.06 kB / 0.7354 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004894/0.554, allocations: 135.3 kB / 0.7355 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001212/0.5552, allocations: 393.3 kB / 0.7359 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001839/0.557, allocations: 0.685 MB / 0.7365 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001149/0.5582, allocations: 1.085 MB / 0.7376 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008065/0.559, allocations: 0.5684 MB / 0.7381 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004505/0.5595, allocations: 295.3 kB / 0.7384 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004268/0.5599, allocations: 322.6 kB / 0.7387 GB, free: 13 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.816e-05/0.56, allocations: 21.28 kB / 0.7388 GB, free: 13 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007875/0.5608, allocations: 361.6 kB / 0.7391 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002164/0.561, allocations: 171.3 kB / 0.7393 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003886/0.5614, allocations: 413.5 kB / 0.7397 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.5625, allocations: 1.048 MB / 0.7407 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.5625, allocations: 1.125 kB / 0.7407 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.363e-06/0.5625, allocations: 0 / 0.7407 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.24e-05/0.5626, allocations: 0 / 0.7407 GB, free: 12.25 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.001792/0.5644, allocations: 1.119 MB / 0.7418 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.5644, allocations: 8.438 kB / 0.7418 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008636/0.5653, allocations: 185.4 kB / 0.742 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009192/0.5662, allocations: 0.704 MB / 0.7426 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.573e-05/0.5663, allocations: 65.22 kB / 0.7427 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.756e-05/0.5664, allocations: 74.56 kB / 0.7428 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.5678, allocations: 0.8564 MB / 0.7436 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.5678, allocations: 0 / 0.7436 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.555e-05/0.5679, allocations: 31.97 kB / 0.7436 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.5679, allocations: 18.94 kB / 0.7437 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00163/0.5696, allocations: 1.074 MB / 0.7447 GB, free: 9.98 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003558/0.5731, allocations: 2.379 MB / 0.747 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.5743, allocations: 0.7125 MB / 0.7477 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004408/0.5747, allocations: 271.6 kB / 0.748 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-05/0.5748, allocations: 36.3 kB / 0.748 GB, free: 7.676 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006991/0.5755, allocations: 423.3 kB / 0.7484 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=71): time 2.184e-06/0.5755, allocations: 0 / 0.7484 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of matching and sorting (n=71): time 0.0027/0.5782, allocations: 1.081 MB / 0.7495 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.067e-05/0.5783, allocations: 191 kB / 0.7497 GB, free: 6.602 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006677/0.579, allocations: 0.5898 MB / 0.7502 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.903e-05/0.5791, allocations: 42.58 kB / 0.7503 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000256/0.5793, allocations: 374.1 kB / 0.7506 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.5795, allocations: 228.8 kB / 0.7509 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.523e-05/0.5796, allocations: 67.05 kB / 0.7509 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.5798, allocations: 379 kB / 0.7513 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004344/0.5802, allocations: 238.6 kB / 0.7515 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004995/0.5807, allocations: 334.8 kB / 0.7518 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009424/0.5817, allocations: 0.552 MB / 0.7524 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5817, allocations: 0 / 0.7524 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001656/0.5833, allocations: 0.7743 MB / 0.7531 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.5834, allocations: 4 kB / 0.7531 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.5834, allocations: 4 kB / 0.7531 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005904/0.584, allocations: 80.84 kB / 0.7532 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005767/0.5846, allocations: 151.7 kB / 0.7534 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002044/0.5866, allocations: 1.517 MB / 0.7548 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006722/0.5873, allocations: 83.45 kB / 0.7549 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.089e-05/0.5874, allocations: 31.98 kB / 0.7549 GB, free: 1.609 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 prepare postOptimizeDAE: time 0.0004475/0.5878, allocations: 255.4 kB / 0.7552 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.5879, allocations: 75.06 kB / 0.7553 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002213/0.5902, allocations: 0.9736 MB / 0.7562 GB, free: 300 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.5902, allocations: 8 kB / 0.7562 GB, free: 292 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.5902, allocations: 0 / 0.7562 GB, free: 292 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.5902, allocations: 7.984 kB / 0.7562 GB, free: 284 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.5913, allocations: 0.8139 MB / 0.757 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.5913, allocations: 3.938 kB / 0.757 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005496/0.5919, allocations: 139.8 kB / 0.7572 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005121/0.5924, allocations: 84.77 kB / 0.7572 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.887e-05/0.5924, allocations: 23.98 kB / 0.7573 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/0.5941, allocations: 1.552 MB / 0.7588 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5941, allocations: 7.875 kB / 0.7588 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.5958, allocations: 0.8342 MB / 0.7596 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000334/0.5961, allocations: 267.8 kB / 0.7599 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.096e-05/0.5962, allocations: 16 kB / 0.7599 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005207/0.5968, allocations: 75.62 kB / 0.7599 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.5969, allocations: 56.86 kB / 0.76 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.179e-05/0.597, allocations: 31.98 kB / 0.76 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005024/0.5975, allocations: 427 kB / 0.7604 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5975, allocations: 4 kB / 0.7604 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007897/0.5983, allocations: 283.4 kB / 0.7607 GB, free: 11.47 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001273/0.5995, allocations: 0.5961 MB / 0.7613 GB, free: 11.08 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001444/0.601, allocations: 0.7505 MB / 0.762 GB, free: 10.31 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.601, allocations: 0 / 0.762 GB, free: 10.31 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008061/0.6018, allocations: 488.9 kB / 0.7625 GB, free: 9.82 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.603, allocations: 255.4 kB / 0.7627 GB, free: 9.578 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003746/0.6067, allocations: 2.117 MB / 0.7648 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005182/0.6072, allocations: 0.9917 MB / 0.7658 GB, free: 6.41 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002766/0.6075, allocations: 107.4 kB / 0.7659 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of SimCode: time 4.7e-07/0.6075, allocations: 0 / 0.7659 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of Templates: time 0.02123/0.6288, allocations: 16.79 MB / 0.7823 GB, free: 5.559 MB / 0.5919 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.makefile clang++ -std=c++14 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources/getTimeSpan.c:27:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *' char *result = malloc(len1 + len2 + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [: OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropicCalcHelperMain.o] Error 1