Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.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.SkyBrightness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00172/0.001719, allocations: 106.6 kB / 15.99 MB, free: 6.348 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.001553/0.001553, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.377/1.377, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.801/0.801, allocations: 135.1 MB / 425.9 MB, free: 4.285 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 71.88 kB / 0.5055 GB, free: 8.684 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4282/0.4295, allocations: 80.91 MB / 0.5845 GB, free: 25.09 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness): time 0.005457/0.4349, allocations: 4.204 MB / 0.5886 GB, free: 21.81 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1729/0.6079, allocations: 148.3 MB / 0.7334 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/0.609, allocations: 15.94 kB / 0.7334 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.6101, allocations: 134.9 kB / 0.7336 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002266/0.6124, allocations: 409.8 kB / 0.7339 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002431/0.6148, allocations: 0.7167 MB / 0.7346 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001826/0.6167, allocations: 1.207 MB / 0.7358 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001277/0.6179, allocations: 0.6998 MB / 0.7365 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008365/0.6188, allocations: 470.3 kB / 0.737 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008263/0.6196, allocations: 493.8 kB / 0.7374 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003226/0.62, allocations: 112 kB / 0.7375 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001165/0.6211, allocations: 459.6 kB / 0.738 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004319/0.6216, allocations: 299 kB / 0.7383 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007649/0.6224, allocations: 0.5323 MB / 0.7388 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002032/0.6244, allocations: 1.193 MB / 0.7399 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.6244, allocations: 0 / 0.7399 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.003e-06/0.6244, allocations: 0 / 0.7399 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.101e-05/0.6245, allocations: 0 / 0.7399 GB, free: 11.23 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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.003231/0.6277, allocations: 1.396 MB / 0.7413 GB, free: 9.777 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.6278, allocations: 9.109 kB / 0.7413 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001885/0.6297, allocations: 303.2 kB / 0.7416 GB, free: 9.473 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.631, allocations: 0.7266 MB / 0.7423 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.505e-05/0.6311, allocations: 66 kB / 0.7424 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.6313, allocations: 84 kB / 0.7425 GB, free: 8.559 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/0.6333, allocations: 1.019 MB / 0.7435 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.6333, allocations: 0 / 0.7435 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-05/0.6334, allocations: 40 kB / 0.7435 GB, free: 7.465 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.285e-05/0.6334, allocations: 24 kB / 0.7435 GB, free: 7.441 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002267/0.6357, allocations: 1.221 MB / 0.7447 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004828/0.6405, allocations: 2.579 MB / 0.7472 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002569/0.6431, allocations: 0.9423 MB / 0.7481 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007439/0.6439, allocations: 330.7 kB / 0.7485 GB, free: 2.277 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-05/0.644, allocations: 32.67 kB / 0.7485 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.6451, allocations: 491.2 kB / 0.749 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=75): time 4.077e-06/0.6451, allocations: 0 / 0.749 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of matching and sorting (n=75): time 0.003656/0.6488, allocations: 1.234 MB / 0.7502 GB, free: 496 kB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.6489, allocations: 188.6 kB / 0.7503 GB, free: 264 kB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3361/0.985, allocations: 0.5942 MB / 0.7509 GB, free: 165.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001974/0.9852, allocations: 42.86 kB / 0.751 GB, free: 165 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000365/0.9856, allocations: 400.8 kB / 0.7513 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.9858, allocations: 248.7 kB / 0.7516 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002806/0.9861, allocations: 154.6 kB / 0.7517 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.9862, allocations: 386 kB / 0.7521 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007869/0.987, allocations: 294.2 kB / 0.7524 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008332/0.9879, allocations: 382.6 kB / 0.7527 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.9894, allocations: 0.6548 MB / 0.7534 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.9894, allocations: 0.6875 kB / 0.7534 GB, free: 163.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002554/0.992, allocations: 0.8877 MB / 0.7543 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.992, allocations: 6.406 kB / 0.7543 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.9921, allocations: 4.75 kB / 0.7543 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006269/0.9927, allocations: 77.56 kB / 0.7543 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008203/0.9935, allocations: 178.6 kB / 0.7545 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002081/0.9956, allocations: 1.634 MB / 0.7561 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008464/0.9965, allocations: 102.1 kB / 0.7562 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-05/0.9966, allocations: 36.55 kB / 0.7562 GB, free: 161.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 (86): * Single equations (assignments): 85 * 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.0004636/0.997, allocations: 264.3 kB / 0.7565 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.9972, allocations: 77.75 kB / 0.7566 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002966/1, allocations: 1.112 MB / 0.7576 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/1, allocations: 8.938 kB / 0.7577 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/1, allocations: 1.562 kB / 0.7577 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/1, allocations: 6.219 kB / 0.7577 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004091/1.004, allocations: 2.029 MB / 0.7596 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.004e-06/1.004, allocations: 1.031 kB / 0.7596 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007992/1.005, allocations: 176.2 kB / 0.7598 GB, free: 160.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000458/1.006, allocations: 75.38 kB / 0.7599 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.566e-05/1.006, allocations: 23.55 kB / 0.7599 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/1.007, allocations: 1.654 MB / 0.7615 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/1.007, allocations: 0.5312 kB / 0.7615 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002272/1.01, allocations: 1.023 MB / 0.7625 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003174/1.01, allocations: 262.7 kB / 0.7628 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/1.01, allocations: 16.75 kB / 0.7628 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006977/1.011, allocations: 74.14 kB / 0.7629 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/1.011, allocations: 67 kB / 0.7629 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.7e-05/1.011, allocations: 32.67 kB / 0.763 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005086/1.011, allocations: 436.4 kB / 0.7634 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.5e-07/1.011, allocations: 1.469 kB / 0.7634 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009368/1.012, allocations: 309.6 kB / 0.7637 GB, free: 157.5 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 85 * 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.00131/1.014, allocations: 0.5947 MB / 0.7642 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002644/1.016, allocations: 1.066 MB / 0.7653 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/1.016, allocations: 0 / 0.7653 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009554/1.017, allocations: 0.5349 MB / 0.7658 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/1.019, allocations: 288.7 kB / 0.7661 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003701/1.022, allocations: 2.263 MB / 0.7683 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/1.023, allocations: 1.015 MB / 0.7693 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003211/1.023, allocations: 115.4 kB / 0.7694 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of SimCode: time 5.61e-07/1.023, allocations: 0 / 0.7694 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.0203/1.043, allocations: 18.15 MB / 0.7871 GB, free: 135.2 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.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.SkyBrightnessCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightnessFunctions.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.SkyBrightnessCalcHelperMain.o] Error 1