Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 110.5 kB / 16.41 MB, free: 5.977 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.001258/0.001259, allocations: 188.3 kB / 17.34 MB, free: 5.586 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.234/1.234, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7403/0.7403, allocations: 135.1 MB / 426.3 MB, free: 4.098 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 74.73 kB / 0.5863 GB, free: 21.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1318, allocations: 80.92 MB / 0.6653 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.005856/0.1377, allocations: 4.923 MB / 0.6701 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4449/0.5826, allocations: 150.8 MB / 0.8174 GB, free: 7.965 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006237/0.5833, allocations: 24.62 kB / 0.8174 GB, free: 7.957 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005028/0.5838, allocations: 190.2 kB / 0.8176 GB, free: 7.852 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001352/0.5852, allocations: 0.5704 MB / 0.8181 GB, free: 7.574 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001668/0.5869, allocations: 0.9241 MB / 0.819 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001088/0.588, allocations: 1.563 MB / 0.8205 GB, free: 6.777 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/0.589, allocations: 1.157 MB / 0.8217 GB, free: 6.25 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006109/0.5897, allocations: 0.6886 MB / 0.8223 GB, free: 5.805 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006042/0.5903, allocations: 0.7296 MB / 0.8231 GB, free: 5.246 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001617/0.5905, allocations: 192.5 kB / 0.8232 GB, free: 5.242 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007257/0.5912, allocations: 0.5488 MB / 0.8238 GB, free: 5.059 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000298/0.5915, allocations: 440 kB / 0.8242 GB, free: 4.703 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005153/0.592, allocations: 0.8161 MB / 0.825 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001749/0.5938, allocations: 2.312 MB / 0.8273 GB, free: 2.328 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.5938, allocations: 0 / 0.8273 GB, free: 2.328 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.123e-06/0.5938, allocations: 0 / 0.8273 GB, free: 2.328 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.607e-05/0.5938, allocations: 0 / 0.8273 GB, free: 2.328 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: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.002417/0.5962, allocations: 1.815 MB / 0.829 GB, free: 0.9258 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.5963, allocations: 8.703 kB / 0.829 GB, free: 0.9258 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008506/0.5971, allocations: 244.5 kB / 0.8293 GB, free: 0.8086 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.5982, allocations: 0.9154 MB / 0.8302 GB, free: 60 kB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.5984, allocations: 141.5 kB / 0.8303 GB, free: 15.97 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.5985, allocations: 149.2 kB / 0.8304 GB, free: 15.92 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002055/0.6006, allocations: 1.46 MB / 0.8319 GB, free: 15.02 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.6006, allocations: 0 / 0.8319 GB, free: 15.02 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.6007, allocations: 63.25 kB / 0.8319 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.6008, allocations: 39.94 kB / 0.832 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002011/0.6028, allocations: 1.493 MB / 0.8334 GB, free: 14.24 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004899/0.6077, allocations: 3.863 MB / 0.8372 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/0.609, allocations: 0.9149 MB / 0.8381 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005189/0.6095, allocations: 366.7 kB / 0.8384 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.381e-05/0.6096, allocations: 42.67 kB / 0.8385 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008418/0.6105, allocations: 0.5515 MB / 0.839 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=93): time 2.304e-06/0.6105, allocations: 0 / 0.839 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93): time 0.003146/0.6137, allocations: 1.37 MB / 0.8404 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.6138, allocations: 190.9 kB / 0.8405 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008059/0.6146, allocations: 0.7663 MB / 0.8413 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.781e-05/0.6147, allocations: 42.23 kB / 0.8413 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003579/0.615, allocations: 0.5736 MB / 0.8419 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.6152, allocations: 311.5 kB / 0.8422 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.6155, allocations: 195.2 kB / 0.8424 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.6156, allocations: 349.5 kB / 0.8427 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005424/0.6162, allocations: 330.6 kB / 0.843 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006304/0.6168, allocations: 432.6 kB / 0.8434 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.618, allocations: 0.7725 MB / 0.8442 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.618, allocations: 0 / 0.8442 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001955/0.62, allocations: 1.023 MB / 0.8452 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.62, allocations: 5.719 kB / 0.8452 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.62, allocations: 2.125 kB / 0.8452 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005267/0.6205, allocations: 90.2 kB / 0.8453 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007603/0.6213, allocations: 196.9 kB / 0.8455 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/0.6232, allocations: 1.632 MB / 0.8471 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006922/0.6239, allocations: 112 kB / 0.8472 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.008e-05/0.624, allocations: 43.95 kB / 0.8472 GB, free: 4.32 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (111): * Single equations (assignments): 110 * 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.0004564/0.6244, allocations: 329.1 kB / 0.8475 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.6246, allocations: 94.78 kB / 0.8476 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002561/0.6272, allocations: 1.291 MB / 0.8489 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.6272, allocations: 8 kB / 0.8489 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.6272, allocations: 3.938 kB / 0.8489 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.6272, allocations: 7.984 kB / 0.8489 GB, free: 2.578 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003451/0.6307, allocations: 2.481 MB / 0.8513 GB, free: 36 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.6307, allocations: 0 / 0.8513 GB, free: 36 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006949/0.6314, allocations: 187.7 kB / 0.8515 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003861/0.6318, allocations: 76.72 kB / 0.8516 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.83e-05/0.6318, allocations: 27.97 kB / 0.8516 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.6335, allocations: 1.666 MB / 0.8532 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.6335, allocations: 4.031 kB / 0.8532 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.6354, allocations: 1.115 MB / 0.8543 GB, free: 12.8 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003541/0.6358, allocations: 311.5 kB / 0.8546 GB, free: 12.47 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.6359, allocations: 31.84 kB / 0.8546 GB, free: 12.44 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006241/0.6365, allocations: 65.97 kB / 0.8547 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.6367, allocations: 76.64 kB / 0.8548 GB, free: 12.31 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.189e-05/0.6368, allocations: 40.05 kB / 0.8548 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006023/0.6374, allocations: 0.5576 MB / 0.8554 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6374, allocations: 0 / 0.8554 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0008582/0.6382, allocations: 398.6 kB / 0.8557 GB, free: 11.33 MB / 0.6231 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 (107): * Single equations (assignments): 104 * 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.00121/0.6395, allocations: 0.6081 MB / 0.8563 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001718/0.6412, allocations: 0.9762 MB / 0.8573 GB, free: 9.906 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.6412, allocations: 3.938 kB / 0.8573 GB, free: 9.902 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0008903/0.6421, allocations: 0.5783 MB / 0.8579 GB, free: 9.309 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.6432, allocations: 302.3 kB / 0.8581 GB, free: 9.031 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004118/0.6474, allocations: 2.356 MB / 0.8604 GB, free: 6.645 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006279/0.648, allocations: 1.165 MB / 0.8616 GB, free: 5.453 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003536/0.6484, allocations: 139.4 kB / 0.8617 GB, free: 5.32 MB / 0.6231 GB Notification: Performance of SimCode: time 3.61e-07/0.6484, allocations: 3.938 kB / 0.8617 GB, free: 5.316 MB / 0.6231 GB Notification: Performance of Templates: time 0.02525/0.6736, allocations: 24.03 MB / 0.8852 GB, free: 13.3 MB / 0.6544 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurfaceFunctions.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.Examples.DirectTiltedSurfaceCalcHelperMain.o] Error 1