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.001519/0.001524, allocations: 101.1 kB / 16.27 MB, free: 5.965 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.001445/0.001445, allocations: 191.9 kB / 17.2 MB, free: 5.59 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.309/1.309, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7961/0.7961, allocations: 135.2 MB / 426.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 63.89 kB / 0.506 GB, free: 8.348 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3175, allocations: 80.92 MB / 0.5851 GB, free: 25.35 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.004659/0.3222, allocations: 4.115 MB / 0.5891 GB, free: 22.13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1624/0.4847, allocations: 150.5 MB / 0.736 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008335/0.4856, allocations: 23.88 kB / 0.736 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005568/0.4862, allocations: 166.5 kB / 0.7362 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001517/0.4877, allocations: 478.5 kB / 0.7367 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001815/0.4895, allocations: 0.7849 MB / 0.7374 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001191/0.4907, allocations: 1.176 MB / 0.7386 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000884/0.4916, allocations: 0.6137 MB / 0.7392 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005388/0.4922, allocations: 430.5 kB / 0.7396 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005016/0.4927, allocations: 446 kB / 0.74 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001487/0.4928, allocations: 104 kB / 0.7401 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000831/0.4937, allocations: 443.6 kB / 0.7405 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002722/0.494, allocations: 275.1 kB / 0.7408 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004497/0.4944, allocations: 0.4974 MB / 0.7413 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001654/0.4961, allocations: 1.437 MB / 0.7427 GB, free: 8.605 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.4961, allocations: 7.938 kB / 0.7427 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4961, allocations: 0 / 0.7427 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.577e-05/0.4961, allocations: 0 / 0.7427 GB, free: 8.598 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.002226/0.4984, allocations: 1.318 MB / 0.744 GB, free: 7.227 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.4984, allocations: 13.11 kB / 0.744 GB, free: 7.215 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008982/0.4993, allocations: 187.4 kB / 0.7442 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009735/0.5003, allocations: 0.6879 MB / 0.7448 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.667e-05/0.5004, allocations: 61.94 kB / 0.7449 GB, free: 6.242 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.5005, allocations: 83.92 kB / 0.745 GB, free: 6.16 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.5019, allocations: 0.8607 MB / 0.7458 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.5019, allocations: 0 / 0.7458 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.681e-05/0.502, allocations: 35.98 kB / 0.7458 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.502, allocations: 24 kB / 0.7459 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001683/0.5037, allocations: 1.061 MB / 0.7469 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003664/0.5074, allocations: 2.385 MB / 0.7492 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.5088, allocations: 0.7782 MB / 0.75 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005021/0.5093, allocations: 289.2 kB / 0.7503 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.412e-05/0.5094, allocations: 28.59 kB / 0.7503 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000819/0.5102, allocations: 423.2 kB / 0.7507 GB, free: 144 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=72): time 2.374e-06/0.5102, allocations: 0 / 0.7507 GB, free: 144 kB / 0.5762 GB Notification: Performance of matching and sorting (n=72): time 0.2479/0.7581, allocations: 1.072 MB / 0.7517 GB, free: 165.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/0.7582, allocations: 196.2 kB / 0.7519 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006859/0.7589, allocations: 0.5887 MB / 0.7525 GB, free: 165 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.646e-05/0.7589, allocations: 38.02 kB / 0.7525 GB, free: 165 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.7592, allocations: 370.8 kB / 0.7529 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.7593, allocations: 242.9 kB / 0.7531 GB, free: 164.6 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/0.7595, allocations: 153.4 kB / 0.7533 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.279e-05/0.7596, allocations: 381 kB / 0.7536 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004505/0.76, allocations: 234.5 kB / 0.7539 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005313/0.7606, allocations: 325.3 kB / 0.7542 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009607/0.7616, allocations: 0.556 MB / 0.7547 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.7616, allocations: 0 / 0.7547 GB, free: 163.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001715/0.7633, allocations: 0.766 MB / 0.7555 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.7633, allocations: 7.875 kB / 0.7555 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.7633, allocations: 0 / 0.7555 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000582/0.7639, allocations: 82.39 kB / 0.7556 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006038/0.7645, allocations: 147 kB / 0.7557 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/0.7663, allocations: 1.629 MB / 0.7573 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005529/0.7669, allocations: 83.91 kB / 0.7574 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.651e-05/0.767, allocations: 32.25 kB / 0.7574 GB, free: 161.8 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 (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.0003162/0.7673, allocations: 250.4 kB / 0.7576 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.7674, allocations: 75.31 kB / 0.7577 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002298/0.7698, allocations: 1.004 MB / 0.7587 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.7698, allocations: 11.02 kB / 0.7587 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.7698, allocations: 0.6562 kB / 0.7587 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.7698, allocations: 3.656 kB / 0.7587 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003039/0.7728, allocations: 1.862 MB / 0.7605 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.7729, allocations: 1.719 kB / 0.7605 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005123/0.7734, allocations: 142 kB / 0.7607 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004406/0.7738, allocations: 74.48 kB / 0.7607 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.91e-05/0.7739, allocations: 24.64 kB / 0.7608 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001603/0.7755, allocations: 1.662 MB / 0.7624 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.7755, allocations: 0 / 0.7624 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.7774, allocations: 0.9208 MB / 0.7633 GB, free: 158.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.7776, allocations: 252.6 kB / 0.7635 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.938e-05/0.7777, allocations: 16.97 kB / 0.7635 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005256/0.7783, allocations: 57.25 kB / 0.7636 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.7784, allocations: 59.14 kB / 0.7636 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.812e-05/0.7785, allocations: 33.02 kB / 0.7637 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004504/0.7789, allocations: 425.9 kB / 0.7641 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.122e-06/0.7789, allocations: 0 / 0.7641 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008208/0.7797, allocations: 294.7 kB / 0.7644 GB, free: 157.4 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 (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.001713/0.7815, allocations: 0.5993 MB / 0.7649 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001833/0.7833, allocations: 0.9534 MB / 0.7659 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7833, allocations: 0 / 0.7659 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006812/0.784, allocations: 492.8 kB / 0.7663 GB, free: 156.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.7851, allocations: 284 kB / 0.7666 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002986/0.7881, allocations: 1.703 MB / 0.7683 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.7884, allocations: 1.011 MB / 0.7693 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002309/0.7886, allocations: 111.4 kB / 0.7694 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of SimCode: time 6.51e-07/0.7886, allocations: 0 / 0.7694 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.01562/0.8043, allocations: 17.03 MB / 0.786 GB, free: 136.4 MB / 0.5762 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