Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.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.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 102.2 kB / 16.27 MB, free: 6 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.001345/0.001345, allocations: 191 kB / 17.2 MB, free: 5.609 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.32/1.32, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8033/0.8033, allocations: 135.2 MB / 426.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 63.89 kB / 0.506 GB, free: 8.363 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3326/0.3344, allocations: 80.91 MB / 0.5851 GB, free: 25.51 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.004963/0.3394, allocations: 4.497 MB / 0.5894 GB, free: 21.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1633/0.5028, allocations: 150.6 MB / 0.7365 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009002/0.5037, allocations: 19.88 kB / 0.7366 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006052/0.5044, allocations: 182.2 kB / 0.7367 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001709/0.5061, allocations: 0.4916 MB / 0.7372 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.508, allocations: 0.8099 MB / 0.738 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0015/0.5095, allocations: 1.312 MB / 0.7393 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001239/0.5108, allocations: 0.9155 MB / 0.7402 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007448/0.5115, allocations: 0.5293 MB / 0.7407 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006351/0.5122, allocations: 0.5793 MB / 0.7413 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.5124, allocations: 140 kB / 0.7414 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009674/0.5133, allocations: 479.7 kB / 0.7418 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003382/0.5137, allocations: 346.8 kB / 0.7422 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005993/0.5143, allocations: 0.6527 MB / 0.7428 GB, free: 8.555 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002177/0.5165, allocations: 1.78 MB / 0.7446 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.5165, allocations: 11.98 kB / 0.7446 GB, free: 6.758 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.713e-06/0.5165, allocations: 0 / 0.7446 GB, free: 6.758 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.054e-05/0.5166, allocations: 0 / 0.7446 GB, free: 6.758 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002645/0.5192, allocations: 1.592 MB / 0.7461 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.5193, allocations: 9.109 kB / 0.7461 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009272/0.5202, allocations: 207.2 kB / 0.7463 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.5213, allocations: 0.817 MB / 0.7471 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.909e-05/0.5214, allocations: 82.3 kB / 0.7472 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.5216, allocations: 116 kB / 0.7473 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.5234, allocations: 1.13 MB / 0.7484 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/0.5234, allocations: 0 / 0.7484 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.841e-05/0.5235, allocations: 52 kB / 0.7485 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.56e-05/0.5236, allocations: 28 kB / 0.7485 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001996/0.5256, allocations: 1.234 MB / 0.7497 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2691/0.7947, allocations: 3.022 MB / 0.7526 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.796, allocations: 0.7687 MB / 0.7534 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004209/0.7965, allocations: 295.8 kB / 0.7537 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 6.631e-05/0.7965, allocations: 37.47 kB / 0.7537 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007925/0.7973, allocations: 441 kB / 0.7541 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 5.139e-06/0.7974, allocations: 6.125 kB / 0.7541 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=78): time 0.002969/0.8003, allocations: 1.135 MB / 0.7553 GB, free: 163.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.8004, allocations: 194.7 kB / 0.7554 GB, free: 162.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009618/0.8014, allocations: 0.692 MB / 0.7561 GB, free: 162.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.356e-05/0.8015, allocations: 40.59 kB / 0.7562 GB, free: 162.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000327/0.8018, allocations: 0.4984 MB / 0.7566 GB, free: 162.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.802, allocations: 257.5 kB / 0.7569 GB, free: 162 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002292/0.8022, allocations: 164.2 kB / 0.757 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.742e-05/0.8023, allocations: 391.7 kB / 0.7574 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004862/0.8028, allocations: 257.3 kB / 0.7577 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005541/0.8033, allocations: 350.2 kB / 0.758 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.8045, allocations: 0.6079 MB / 0.7586 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.8046, allocations: 0.5 kB / 0.7586 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002059/0.8066, allocations: 0.8371 MB / 0.7594 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.8066, allocations: 10.66 kB / 0.7594 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.8067, allocations: 2.094 kB / 0.7594 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005852/0.8073, allocations: 83.95 kB / 0.7595 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006397/0.8079, allocations: 163.5 kB / 0.7597 GB, free: 160.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/0.8096, allocations: 1.627 MB / 0.7612 GB, free: 159 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006607/0.8103, allocations: 92.3 kB / 0.7613 GB, free: 158.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.326e-05/0.8104, allocations: 39.25 kB / 0.7614 GB, free: 158.9 MB / 0.5762 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 (92): * Single equations (assignments): 91 * 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.0004264/0.8108, allocations: 276.4 kB / 0.7616 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/0.811, allocations: 89.72 kB / 0.7617 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002043/0.813, allocations: 1.029 MB / 0.7627 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.813, allocations: 8.938 kB / 0.7627 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.813, allocations: 0 / 0.7627 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.8131, allocations: 3.984 kB / 0.7627 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009788/0.814, allocations: 0.9823 MB / 0.7637 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.8141, allocations: 0 / 0.7637 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005546/0.8146, allocations: 161.5 kB / 0.7638 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004126/0.815, allocations: 66.61 kB / 0.7639 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.405e-05/0.8151, allocations: 24.77 kB / 0.7639 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/0.8166, allocations: 1.657 MB / 0.7656 GB, free: 155.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.8166, allocations: 3.938 kB / 0.7656 GB, free: 155.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.8185, allocations: 0.8838 MB / 0.7664 GB, free: 155.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000362/0.8189, allocations: 279.3 kB / 0.7667 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.819, allocations: 15.72 kB / 0.7667 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005086/0.8195, allocations: 55.81 kB / 0.7668 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.8196, allocations: 58.39 kB / 0.7668 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.779e-05/0.8197, allocations: 33.48 kB / 0.7668 GB, free: 154.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005488/0.8203, allocations: 498.5 kB / 0.7673 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8203, allocations: 0.6562 kB / 0.7673 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007573/0.821, allocations: 343 kB / 0.7676 GB, free: 154.3 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 (89): * Single equations (assignments): 86 * 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.001695/0.8227, allocations: 0.6042 MB / 0.7682 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001931/0.8247, allocations: 1.003 MB / 0.7692 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.8247, allocations: 0 / 0.7692 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007259/0.8254, allocations: 0.4999 MB / 0.7697 GB, free: 152.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.8265, allocations: 303.3 kB / 0.77 GB, free: 152.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003452/0.83, allocations: 2.026 MB / 0.772 GB, free: 150.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.8304, allocations: 1.082 MB / 0.773 GB, free: 149 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.8307, allocations: 115.4 kB / 0.7731 GB, free: 148.9 MB / 0.5762 GB Notification: Performance of SimCode: time 5.41e-07/0.8307, allocations: 3.938 kB / 0.7731 GB, free: 148.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.01996/0.8506, allocations: 20.06 MB / 0.7927 GB, free: 128.9 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.makefile clang++ -std=c++17 -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.Examples.DiffuseIsotropicCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropicCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.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.Examples.DiffuseIsotropicCalcHelperMain.o] Error 1