Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.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.SolarGeometry.BaseClasses.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 107.3 kB / 16.41 MB, free: 6.5 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.001192/0.001192, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.312/1.312, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7903/0.7903, allocations: 132.2 MB / 423.4 MB, free: 6.629 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 62.38 kB / 0.582 GB, free: 23.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.168, allocations: 80.21 MB / 0.6603 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.006207/0.1742, allocations: 4.117 MB / 0.6643 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5583/0.7326, allocations: 150.5 MB / 0.8113 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008441/0.7335, allocations: 20.88 kB / 0.8113 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005645/0.7341, allocations: 164.9 kB / 0.8115 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001564/0.7356, allocations: 480.9 kB / 0.8119 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001915/0.7376, allocations: 0.7968 MB / 0.8127 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001189/0.7388, allocations: 1.193 MB / 0.8139 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007724/0.7396, allocations: 0.5983 MB / 0.8144 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005807/0.7401, allocations: 446 kB / 0.8149 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004649/0.7406, allocations: 444.6 kB / 0.8153 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.7408, allocations: 102.9 kB / 0.8154 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008792/0.7417, allocations: 478.6 kB / 0.8158 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002608/0.7419, allocations: 264.7 kB / 0.8161 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003924/0.7424, allocations: 0.495 MB / 0.8166 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001502/0.7439, allocations: 1.482 MB / 0.818 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.7439, allocations: 0 / 0.818 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7439, allocations: 0 / 0.818 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.348e-05/0.7439, allocations: 0 / 0.818 GB, free: 10.43 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.002096/0.746, allocations: 1.323 MB / 0.8193 GB, free: 9.371 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.7461, allocations: 8.688 kB / 0.8193 GB, free: 9.371 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008871/0.7469, allocations: 175.1 kB / 0.8195 GB, free: 9.289 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.7481, allocations: 0.7243 MB / 0.8202 GB, free: 8.699 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.498e-05/0.7481, allocations: 59.81 kB / 0.8203 GB, free: 8.676 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.671e-05/0.7482, allocations: 77.81 kB / 0.8203 GB, free: 8.648 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.7496, allocations: 0.8632 MB / 0.8212 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.7496, allocations: 5.438 kB / 0.8212 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.723e-05/0.7497, allocations: 36.09 kB / 0.8212 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.7497, allocations: 20.97 kB / 0.8212 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001568/0.7513, allocations: 1.06 MB / 0.8223 GB, free: 7.551 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003476/0.7548, allocations: 2.343 MB / 0.8246 GB, free: 5.766 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.7561, allocations: 0.7963 MB / 0.8253 GB, free: 5.312 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.7566, allocations: 276.6 kB / 0.8256 GB, free: 5.176 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.965e-05/0.7566, allocations: 33.58 kB / 0.8256 GB, free: 5.164 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007336/0.7574, allocations: 426.4 kB / 0.826 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=72): time 1.783e-06/0.7574, allocations: 0 / 0.826 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of matching and sorting (n=72): time 0.002746/0.7601, allocations: 1.076 MB / 0.8271 GB, free: 4.297 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.7603, allocations: 192.2 kB / 0.8273 GB, free: 4.074 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006852/0.761, allocations: 0.5912 MB / 0.8279 GB, free: 3.727 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.442e-05/0.761, allocations: 39.08 kB / 0.8279 GB, free: 3.688 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002919/0.7613, allocations: 371.2 kB / 0.8282 GB, free: 3.359 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/0.7615, allocations: 239.7 kB / 0.8285 GB, free: 3.156 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002216/0.7617, allocations: 153.6 kB / 0.8286 GB, free: 3.062 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001798/0.7619, allocations: 376.7 kB / 0.829 GB, free: 2.703 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004486/0.7624, allocations: 236.5 kB / 0.8292 GB, free: 2.586 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005405/0.7629, allocations: 325.2 kB / 0.8295 GB, free: 2.395 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009717/0.7639, allocations: 0.5504 MB / 0.8301 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.7639, allocations: 0 / 0.8301 GB, free: 2.098 MB / 0.5919 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001704/0.7656, allocations: 0.7724 MB / 0.8308 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.7657, allocations: 4.938 kB / 0.8308 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.7657, allocations: 1.812 kB / 0.8308 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005692/0.7663, allocations: 83.92 kB / 0.8309 GB, free: 1.66 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005872/0.7669, allocations: 149.7 kB / 0.831 GB, free: 1.625 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002116/0.769, allocations: 1.628 MB / 0.8326 GB, free: 28 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000634/0.7696, allocations: 85.16 kB / 0.8327 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.42e-05/0.7697, allocations: 34.16 kB / 0.8327 GB, free: 15.96 MB / 0.6075 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.0003952/0.7701, allocations: 253.7 kB / 0.833 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.7703, allocations: 78.25 kB / 0.8331 GB, free: 15.71 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002121/0.7724, allocations: 0.9927 MB / 0.834 GB, free: 15.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.7724, allocations: 8 kB / 0.834 GB, free: 15.16 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.7724, allocations: 4 kB / 0.834 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.7724, allocations: 6.078 kB / 0.834 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.7754, allocations: 1.855 MB / 0.8359 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.7754, allocations: 0 / 0.8359 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000522/0.7759, allocations: 146.9 kB / 0.836 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004176/0.7764, allocations: 74.16 kB / 0.8361 GB, free: 13.85 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.748e-05/0.7764, allocations: 23.27 kB / 0.8361 GB, free: 13.83 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001874/0.7783, allocations: 1.665 MB / 0.8377 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.7783, allocations: 0 / 0.8377 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.7801, allocations: 0.914 MB / 0.8386 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003699/0.7805, allocations: 253.1 kB / 0.8388 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.7806, allocations: 18.69 kB / 0.8389 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005506/0.7812, allocations: 55.53 kB / 0.8389 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.7813, allocations: 56.42 kB / 0.839 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-05/0.7814, allocations: 38.22 kB / 0.839 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005141/0.7819, allocations: 423.3 kB / 0.8394 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7819, allocations: 2.969 kB / 0.8394 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0008616/0.7828, allocations: 288.3 kB / 0.8397 GB, free: 11.05 MB / 0.6075 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 (86): * Single equations (assignments): 83 * 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.001326/0.7841, allocations: 0.6015 MB / 0.8403 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001513/0.7856, allocations: 0.7606 MB / 0.841 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/0.7856, allocations: 0 / 0.841 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008114/0.7865, allocations: 497.8 kB / 0.8415 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.7877, allocations: 286.3 kB / 0.8418 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003626/0.7913, allocations: 1.686 MB / 0.8434 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005812/0.7919, allocations: 0.9936 MB / 0.8444 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002983/0.7922, allocations: 115.4 kB / 0.8445 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of SimCode: time 9.62e-07/0.7922, allocations: 0 / 0.8445 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of Templates: time 0.02483/0.8171, allocations: 17.24 MB / 0.8613 GB, free: 6.734 MB / 0.6231 GB make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.makefile make -j1 -f IDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.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/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.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.o OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleFunctions.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.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.o] Error 1