Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.SkyClearness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 104.7 kB / 15.99 MB, free: 6.309 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.001566/0.001566, allocations: 196.2 kB / 16.91 MB, free: 6.152 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.54/1.54, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7883/0.7883, allocations: 132.2 MB / 422.9 MB, free: 6.809 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.001231, allocations: 63.91 kB / 0.5019 GB, free: 12.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3724, allocations: 80.18 MB / 0.5802 GB, free: 27.41 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.005172/0.3776, allocations: 4.204 MB / 0.5843 GB, free: 24.13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1578/0.5354, allocations: 148.3 MB / 0.7292 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001128/0.5366, allocations: 19.88 kB / 0.7292 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007352/0.5374, allocations: 131 kB / 0.7293 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002057/0.5395, allocations: 426.9 kB / 0.7297 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00212/0.5416, allocations: 0.7271 MB / 0.7304 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001636/0.5433, allocations: 1.199 MB / 0.7316 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001101/0.5444, allocations: 0.6788 MB / 0.7322 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008205/0.5452, allocations: 466.3 kB / 0.7327 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007215/0.5459, allocations: 481.8 kB / 0.7332 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001417/0.5461, allocations: 116 kB / 0.7333 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001151/0.5473, allocations: 487.5 kB / 0.7337 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003614/0.5476, allocations: 291 kB / 0.734 GB, free: 460 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0006609/0.5483, allocations: 0.5246 MB / 0.7345 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001609/0.5499, allocations: 1.185 MB / 0.7357 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/0.5499, allocations: 3.984 kB / 0.7357 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.653e-06/0.5499, allocations: 0 / 0.7357 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.207e-05/0.55, allocations: 0 / 0.7357 GB, free: 14.73 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.002394/0.5524, allocations: 1.395 MB / 0.737 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.5524, allocations: 8.031 kB / 0.737 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001118/0.5535, allocations: 203.4 kB / 0.7372 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/0.5546, allocations: 0.7266 MB / 0.738 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.193e-05/0.5547, allocations: 70 kB / 0.738 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.5548, allocations: 88 kB / 0.7381 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.5565, allocations: 0.9496 MB / 0.739 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.5565, allocations: 7.922 kB / 0.739 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-05/0.5566, allocations: 44 kB / 0.7391 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.056e-05/0.5566, allocations: 20 kB / 0.7391 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001903/0.5585, allocations: 1.128 MB / 0.7402 GB, free: 9.961 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004381/0.5629, allocations: 2.558 MB / 0.7427 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.5644, allocations: 0.8205 MB / 0.7435 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005299/0.565, allocations: 286.6 kB / 0.7438 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007351/0.5657, allocations: 474.2 kB / 0.7442 GB, free: 5.648 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000981/0.5667, allocations: 438.7 kB / 0.7446 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=73): time 2.525e-06/0.5667, allocations: 0 / 0.7446 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73): time 0.003084/0.5698, allocations: 1.1 MB / 0.7457 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.57, allocations: 188.6 kB / 0.7459 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008117/0.5708, allocations: 0.6018 MB / 0.7465 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.893e-05/0.5709, allocations: 41.7 kB / 0.7465 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/0.5712, allocations: 400.2 kB / 0.7469 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002032/0.5714, allocations: 252.4 kB / 0.7471 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.5716, allocations: 146.5 kB / 0.7473 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001818/0.5718, allocations: 386.7 kB / 0.7477 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004934/0.5723, allocations: 245.9 kB / 0.7479 GB, free: 1.766 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006037/0.5729, allocations: 335 kB / 0.7482 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.574, allocations: 0.5682 MB / 0.7488 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.574, allocations: 4 kB / 0.7488 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001846/0.5759, allocations: 0.7942 MB / 0.7495 GB, free: 40 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.5759, allocations: 4.094 kB / 0.7495 GB, free: 36 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.5759, allocations: 3.938 kB / 0.7496 GB, free: 32 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3245/0.9004, allocations: 79.59 kB / 0.7496 GB, free: 166.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000809/0.9012, allocations: 152 kB / 0.7498 GB, free: 166.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/0.9032, allocations: 1.625 MB / 0.7514 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007421/0.9039, allocations: 85.56 kB / 0.7514 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-05/0.904, allocations: 38.16 kB / 0.7515 GB, free: 165.3 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 (84): * Single equations (assignments): 83 * 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.0004616/0.9045, allocations: 258.8 kB / 0.7517 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.9047, allocations: 76.78 kB / 0.7518 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002427/0.9071, allocations: 0.999 MB / 0.7528 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.9071, allocations: 10.78 kB / 0.7528 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.9071, allocations: 0.5625 kB / 0.7528 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.9072, allocations: 5.453 kB / 0.7528 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003369/0.9105, allocations: 1.895 MB / 0.7546 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.9105, allocations: 3.062 kB / 0.7546 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006335/0.9112, allocations: 149.2 kB / 0.7548 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004576/0.9117, allocations: 67.19 kB / 0.7548 GB, free: 164 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-05/0.9117, allocations: 22.47 kB / 0.7549 GB, free: 164 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001625/0.9134, allocations: 1.656 MB / 0.7565 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.9134, allocations: 0.5938 kB / 0.7565 GB, free: 162.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002053/0.9154, allocations: 0.9246 MB / 0.7574 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003413/0.9158, allocations: 265.8 kB / 0.7576 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.9159, allocations: 16.94 kB / 0.7577 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000593/0.9165, allocations: 54.03 kB / 0.7577 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/0.9167, allocations: 60.53 kB / 0.7578 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.273e-05/0.9168, allocations: 36.95 kB / 0.7578 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006684/0.9174, allocations: 435.2 kB / 0.7582 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.21e-07/0.9174, allocations: 0.5 kB / 0.7582 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001157/0.9186, allocations: 319.9 kB / 0.7585 GB, free: 161.6 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 (84): * Single equations (assignments): 81 * 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.001528/0.9201, allocations: 0.6025 MB / 0.7591 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002293/0.9224, allocations: 0.9577 MB / 0.76 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.9225, allocations: 2.031 kB / 0.7601 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008322/0.9233, allocations: 496.5 kB / 0.7605 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.9245, allocations: 287.8 kB / 0.7608 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003713/0.9282, allocations: 2.199 MB / 0.7629 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004179/0.9287, allocations: 1.018 MB / 0.7639 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003295/0.929, allocations: 113.8 kB / 0.764 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of SimCode: time 4.91e-07/0.929, allocations: 0 / 0.764 GB, free: 158.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.01952/0.9485, allocations: 17.95 MB / 0.7816 GB, free: 142.6 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearnessCalcHelperMain.o] Error 1