Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 100.1 kB / 15.88 MB, free: 12 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.001434/0.001434, allocations: 198.5 kB / 16.79 MB, free: 6.809 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.415/1.415, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9854/0.9854, allocations: 135.1 MB / 425.7 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 60.31 kB / 0.5053 GB, free: 5.816 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.194/0.1955, allocations: 80.93 MB / 0.5843 GB, free: 5.055 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.006569/0.2021, allocations: 4.154 MB / 0.5884 GB, free: 0.875 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.5309/0.7331, allocations: 148.2 MB / 0.7331 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009815/0.7341, allocations: 19.22 kB / 0.7331 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006153/0.7347, allocations: 137.6 kB / 0.7332 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001736/0.7365, allocations: 392.2 kB / 0.7336 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002232/0.7388, allocations: 0.6951 MB / 0.7343 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001582/0.7403, allocations: 1.114 MB / 0.7354 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.7415, allocations: 0.6585 MB / 0.736 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007739/0.7423, allocations: 400.2 kB / 0.7364 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006175/0.7429, allocations: 459.3 kB / 0.7368 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.7431, allocations: 60.81 kB / 0.7369 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.7442, allocations: 406.4 kB / 0.7373 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002792/0.7445, allocations: 242.9 kB / 0.7375 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004946/0.745, allocations: 480.9 kB / 0.738 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.7464, allocations: 1.149 MB / 0.7391 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.7464, allocations: 0 / 0.7391 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.956e-06/0.7464, allocations: 0 / 0.7391 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.529e-05/0.7465, allocations: 2.25 kB / 0.7391 GB, free: 11.34 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: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.002479/0.7489, allocations: 1.382 MB / 0.7405 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.749, allocations: 9.75 kB / 0.7405 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001188/0.7502, allocations: 204.8 kB / 0.7407 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.7513, allocations: 0.7298 MB / 0.7414 GB, free: 9.566 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.369e-05/0.7513, allocations: 65.97 kB / 0.7414 GB, free: 9.535 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.7515, allocations: 85.34 kB / 0.7415 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001858/0.7533, allocations: 0.9446 MB / 0.7424 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.7534, allocations: 0 / 0.7424 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.493e-05/0.7535, allocations: 36.78 kB / 0.7425 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.715e-05/0.7535, allocations: 22.84 kB / 0.7425 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001995/0.7555, allocations: 1.133 MB / 0.7436 GB, free: 8.336 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004419/0.7599, allocations: 2.478 MB / 0.746 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002372/0.7623, allocations: 0.8735 MB / 0.7469 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000633/0.763, allocations: 287.5 kB / 0.7472 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.563e-05/0.7631, allocations: 30.95 kB / 0.7472 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001411/0.7645, allocations: 442.7 kB / 0.7476 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=73): time 3.957e-06/0.7645, allocations: 0 / 0.7476 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73): time 0.00397/0.7685, allocations: 1.092 MB / 0.7487 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.7687, allocations: 195.7 kB / 0.7489 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009694/0.7696, allocations: 0.6017 MB / 0.7494 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.076e-05/0.7697, allocations: 41.7 kB / 0.7495 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003436/0.7701, allocations: 392.2 kB / 0.7499 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002021/0.7703, allocations: 244.4 kB / 0.7501 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/0.7705, allocations: 154.5 kB / 0.7502 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001655/0.7707, allocations: 382.7 kB / 0.7506 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005167/0.7712, allocations: 241.9 kB / 0.7508 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007144/0.7719, allocations: 339.1 kB / 0.7512 GB, free: 2.16 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.773, allocations: 0.5643 MB / 0.7517 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.7731, allocations: 0 / 0.7517 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002042/0.7751, allocations: 0.7902 MB / 0.7525 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.7751, allocations: 8 kB / 0.7525 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.7752, allocations: 0 / 0.7525 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006381/0.7758, allocations: 88.8 kB / 0.7526 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007283/0.7765, allocations: 147.8 kB / 0.7527 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/0.7787, allocations: 1.521 MB / 0.7542 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007826/0.7795, allocations: 84.52 kB / 0.7543 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.112e-05/0.7796, allocations: 31.98 kB / 0.7543 GB, free: 14.78 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.0005371/0.7801, allocations: 261.6 kB / 0.7546 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.7803, allocations: 75.06 kB / 0.7546 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002712/0.783, allocations: 0.9964 MB / 0.7556 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.7831, allocations: 8.047 kB / 0.7556 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.7831, allocations: 7.984 kB / 0.7556 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.7831, allocations: 7.969 kB / 0.7556 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003944/0.787, allocations: 1.888 MB / 0.7575 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.79e-06/0.7871, allocations: 0 / 0.7575 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006144/0.7877, allocations: 151.5 kB / 0.7576 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005383/0.7882, allocations: 84.72 kB / 0.7577 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.99e-05/0.7883, allocations: 23.98 kB / 0.7577 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002119/0.7905, allocations: 1.546 MB / 0.7592 GB, free: 9.52 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.7905, allocations: 3.984 kB / 0.7592 GB, free: 9.516 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/0.7925, allocations: 0.9218 MB / 0.7601 GB, free: 8.578 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004676/0.793, allocations: 255.8 kB / 0.7604 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001595/0.7932, allocations: 12 kB / 0.7604 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006434/0.7938, allocations: 59.94 kB / 0.7604 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.794, allocations: 60.86 kB / 0.7605 GB, free: 8.18 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.206e-05/0.7941, allocations: 31.98 kB / 0.7605 GB, free: 8.148 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006144/0.7947, allocations: 435 kB / 0.7609 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7947, allocations: 0 / 0.7609 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001037/0.7958, allocations: 307.1 kB / 0.7612 GB, free: 7.43 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 (85): * Single equations (assignments): 82 * 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.001535/0.7973, allocations: 0.6085 MB / 0.7618 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001738/0.7991, allocations: 0.7643 MB / 0.7626 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.7991, allocations: 0 / 0.7626 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009451/0.8, allocations: 496.8 kB / 0.7631 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.8013, allocations: 269.6 kB / 0.7633 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004403/0.8057, allocations: 2.18 MB / 0.7654 GB, free: 3.297 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008318/0.8065, allocations: 1.011 MB / 0.7664 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003267/0.8069, allocations: 119.3 kB / 0.7665 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of SimCode: time 5.71e-07/0.8069, allocations: 0 / 0.7665 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of Templates: time 0.02779/0.8347, allocations: 17.72 MB / 0.7838 GB, free: 472 kB / 0.5919 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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.RelativeAirMassCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassFunctions.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.RelativeAirMassCalcHelperMain.o] Error 1