Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.SolarGeometry.BaseClasses.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001592/0.001592, allocations: 107.9 kB / 16.41 MB, free: 6.492 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.00156/0.00156, allocations: 188.1 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.434/1.434, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8831/0.8831, allocations: 135.2 MB / 426.4 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001894/0.001894, allocations: 67.77 kB / 0.5863 GB, free: 21.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.1855, allocations: 80.93 MB / 0.6654 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.01064/0.1961, allocations: 4.107 MB / 0.6694 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.6595/0.8556, allocations: 150.9 MB / 0.8167 GB, free: 8.227 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008254/0.8564, allocations: 14.94 kB / 0.8167 GB, free: 8.223 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006254/0.857, allocations: 171.5 kB / 0.8169 GB, free: 8.133 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001764/0.8588, allocations: 487.9 kB / 0.8174 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002053/0.8608, allocations: 0.8009 MB / 0.8182 GB, free: 7.676 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001279/0.8621, allocations: 1.186 MB / 0.8193 GB, free: 7.352 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006841/0.8628, allocations: 458.7 kB / 0.8198 GB, free: 7.211 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005848/0.8634, allocations: 442.4 kB / 0.8202 GB, free: 7.07 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005044/0.8639, allocations: 438.8 kB / 0.8206 GB, free: 6.875 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001216/0.864, allocations: 102.8 kB / 0.8207 GB, free: 6.875 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009201/0.8649, allocations: 478.7 kB / 0.8211 GB, free: 6.777 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002628/0.8652, allocations: 271 kB / 0.8214 GB, free: 6.656 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004707/0.8657, allocations: 0.4946 MB / 0.8219 GB, free: 6.281 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002132/0.8678, allocations: 1.497 MB / 0.8233 GB, free: 5.195 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.8678, allocations: 2.688 kB / 0.8234 GB, free: 5.195 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.833e-06/0.8678, allocations: 0 / 0.8234 GB, free: 5.195 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.673e-05/0.8678, allocations: 0 / 0.8234 GB, free: 5.195 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.002551/0.8704, allocations: 1.353 MB / 0.8247 GB, free: 4.105 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.8704, allocations: 11.55 kB / 0.8247 GB, free: 4.105 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000976/0.8714, allocations: 183.2 kB / 0.8249 GB, free: 4.016 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001272/0.8727, allocations: 0.725 MB / 0.8256 GB, free: 3.414 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.282e-05/0.8727, allocations: 60.41 kB / 0.8256 GB, free: 3.387 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.8728, allocations: 79.06 kB / 0.8257 GB, free: 3.359 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001542/0.8744, allocations: 0.8659 MB / 0.8265 GB, free: 2.793 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.8744, allocations: 0 / 0.8265 GB, free: 2.793 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.8745, allocations: 34.09 kB / 0.8266 GB, free: 2.77 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.011e-05/0.8745, allocations: 20.41 kB / 0.8266 GB, free: 2.77 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.8763, allocations: 1.063 MB / 0.8276 GB, free: 2.266 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004169/0.8805, allocations: 2.35 MB / 0.8299 GB, free: 456 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.8818, allocations: 0.7481 MB / 0.8307 GB, free: 12 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005272/0.8824, allocations: 254.5 kB / 0.8309 GB, free: 15.88 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.942e-05/0.8825, allocations: 28.89 kB / 0.8309 GB, free: 15.87 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008426/0.8833, allocations: 427 kB / 0.8313 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=72): time 2.034e-06/0.8833, allocations: 0 / 0.8313 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=72): time 0.003119/0.8864, allocations: 1.077 MB / 0.8324 GB, free: 15 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/0.8866, allocations: 187.9 kB / 0.8326 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008725/0.8874, allocations: 0.596 MB / 0.8332 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.8876, allocations: 39.8 kB / 0.8332 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/0.8879, allocations: 380.4 kB / 0.8336 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002452/0.8882, allocations: 248.5 kB / 0.8338 GB, free: 13.83 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002412/0.8884, allocations: 153.8 kB / 0.8339 GB, free: 13.74 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002097/0.8886, allocations: 378.5 kB / 0.8343 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000465/0.8891, allocations: 232.9 kB / 0.8345 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005883/0.8897, allocations: 329.9 kB / 0.8348 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.8907, allocations: 0.5507 MB / 0.8354 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.8907, allocations: 0 / 0.8354 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001886/0.8926, allocations: 0.7737 MB / 0.8361 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.8926, allocations: 7.625 kB / 0.8361 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.8926, allocations: 2.156 kB / 0.8361 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005983/0.8932, allocations: 84.36 kB / 0.8362 GB, free: 12.33 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005929/0.8938, allocations: 145.3 kB / 0.8364 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00251/0.8963, allocations: 1.63 MB / 0.8379 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000699/0.897, allocations: 79.16 kB / 0.838 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.701e-05/0.8971, allocations: 36.03 kB / 0.8381 GB, free: 10.62 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.0005432/0.8977, allocations: 257.7 kB / 0.8383 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.8978, allocations: 82.95 kB / 0.8384 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002359/0.9002, allocations: 0.9922 MB / 0.8394 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.9002, allocations: 11.72 kB / 0.8394 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.9002, allocations: 0 / 0.8394 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.9002, allocations: 3.984 kB / 0.8394 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003291/0.9035, allocations: 1.859 MB / 0.8412 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.9035, allocations: 0 / 0.8412 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005393/0.904, allocations: 151.6 kB / 0.8413 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004371/0.9045, allocations: 72.12 kB / 0.8414 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.626e-05/0.9045, allocations: 26.23 kB / 0.8414 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00222/0.9067, allocations: 1.645 MB / 0.843 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.9068, allocations: 3.984 kB / 0.843 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.9087, allocations: 0.9152 MB / 0.8439 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004037/0.9091, allocations: 261.5 kB / 0.8442 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.9092, allocations: 21.22 kB / 0.8442 GB, free: 6.086 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005471/0.9098, allocations: 57.66 kB / 0.8442 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.9099, allocations: 56.42 kB / 0.8443 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/0.9101, allocations: 34.42 kB / 0.8443 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005758/0.9106, allocations: 427 kB / 0.8447 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.9106, allocations: 2.781 kB / 0.8447 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000807/0.9114, allocations: 295.1 kB / 0.845 GB, free: 5.676 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.001902/0.9133, allocations: 0.6096 MB / 0.8456 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001627/0.915, allocations: 0.7238 MB / 0.8463 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.915, allocations: 4 kB / 0.8463 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008505/0.9158, allocations: 467.3 kB / 0.8468 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.9171, allocations: 285 kB / 0.847 GB, free: 4.559 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004247/0.9213, allocations: 1.712 MB / 0.8487 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007093/0.922, allocations: 0.9993 MB / 0.8497 GB, free: 1.781 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003422/0.9224, allocations: 107.4 kB / 0.8498 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of SimCode: time 1.212e-06/0.9224, allocations: 0 / 0.8498 GB, free: 1.68 MB / 0.6075 GB Notification: Performance of Templates: time 0.02595/0.9483, allocations: 17.17 MB / 0.8666 GB, free: 0.5195 MB / 0.6231 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle.makefile make -j1 -f IDEAS_dev_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-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.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngleFunctions.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.SolarGeometry.BaseClasses.Examples.ZenithAngleCalcHelperMain.o] Error 1