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.006572/0.006572, allocations: 101 kB / 15.87 MB, free: 5.871 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.001438/0.001438, allocations: 192.1 kB / 16.79 MB, free: 5.816 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.46/1.46, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9908/0.9908, allocations: 135.1 MB / 425.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 61.66 kB / 0.5053 GB, free: 5.73 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.2111, allocations: 80.94 MB / 0.5844 GB, free: 4.961 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.006716/0.2179, allocations: 4.116 MB / 0.5884 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.5888/0.8067, allocations: 148.2 MB / 0.7331 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008216/0.8076, allocations: 15.44 kB / 0.7331 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005779/0.8082, allocations: 137.2 kB / 0.7332 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001448/0.8097, allocations: 401 kB / 0.7336 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001834/0.8115, allocations: 0.6886 MB / 0.7343 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001226/0.8127, allocations: 1.1 MB / 0.7353 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009086/0.8137, allocations: 0.5868 MB / 0.7359 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006381/0.8143, allocations: 380.8 kB / 0.7363 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005101/0.8148, allocations: 422.1 kB / 0.7367 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.815, allocations: 51.28 kB / 0.7367 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009064/0.8159, allocations: 394.9 kB / 0.7371 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002477/0.8161, allocations: 221.8 kB / 0.7373 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004514/0.8166, allocations: 450.1 kB / 0.7377 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001076/0.8177, allocations: 1.089 MB / 0.7388 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.8177, allocations: 4.844 kB / 0.7388 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of FrontEnd: time 8.32e-07/0.8177, allocations: 4 kB / 0.7388 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.208e-05/0.8177, allocations: 0 / 0.7388 GB, free: 11.39 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.002266/0.82, allocations: 1.317 MB / 0.7401 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.82, allocations: 9.688 kB / 0.7401 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009142/0.821, allocations: 173.8 kB / 0.7403 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009813/0.822, allocations: 0.7101 MB / 0.741 GB, free: 9.77 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.574e-05/0.822, allocations: 60.28 kB / 0.741 GB, free: 9.742 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.657e-05/0.8221, allocations: 73.31 kB / 0.7411 GB, free: 9.719 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.8237, allocations: 0.8687 MB / 0.7419 GB, free: 9.156 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.8237, allocations: 0 / 0.7419 GB, free: 9.156 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.883e-05/0.8238, allocations: 32.06 kB / 0.742 GB, free: 9.133 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.105e-05/0.8238, allocations: 20.06 kB / 0.742 GB, free: 9.133 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.8255, allocations: 1.066 MB / 0.743 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0036/0.8291, allocations: 2.368 MB / 0.7453 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.8304, allocations: 0.7928 MB / 0.7461 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004584/0.8309, allocations: 274.8 kB / 0.7464 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-05/0.831, allocations: 33.42 kB / 0.7464 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000817/0.8318, allocations: 424.9 kB / 0.7468 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=72): time 1.954e-06/0.8318, allocations: 2.562 kB / 0.7468 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72): time 0.00283/0.8346, allocations: 1.077 MB / 0.7479 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.8348, allocations: 192.1 kB / 0.7481 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007672/0.8355, allocations: 0.5894 MB / 0.7486 GB, free: 4.652 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.07e-05/0.8356, allocations: 37.7 kB / 0.7487 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/0.8359, allocations: 376.3 kB / 0.749 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002059/0.8362, allocations: 236.5 kB / 0.7492 GB, free: 4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002279/0.8364, allocations: 154.5 kB / 0.7494 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001724/0.8366, allocations: 374.8 kB / 0.7498 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004808/0.8371, allocations: 237.9 kB / 0.75 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005612/0.8376, allocations: 322.8 kB / 0.7503 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.8387, allocations: 0.555 MB / 0.7508 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.8387, allocations: 0 / 0.7508 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001835/0.8405, allocations: 0.7773 MB / 0.7516 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.8406, allocations: 4 kB / 0.7516 GB, free: 1.551 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.8406, allocations: 7.75 kB / 0.7516 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006093/0.8412, allocations: 80.86 kB / 0.7517 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006189/0.8418, allocations: 151.8 kB / 0.7518 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002104/0.8439, allocations: 1.512 MB / 0.7533 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006673/0.8446, allocations: 79.39 kB / 0.7534 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.461e-05/0.8447, allocations: 31.98 kB / 0.7534 GB, free: 15.56 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.0004227/0.8451, allocations: 249.7 kB / 0.7536 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.8453, allocations: 79 kB / 0.7537 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002282/0.8476, allocations: 1.003 MB / 0.7547 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.8476, allocations: 8 kB / 0.7547 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.8476, allocations: 3.938 kB / 0.7547 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.8476, allocations: 3.984 kB / 0.7547 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003143/0.8508, allocations: 1.866 MB / 0.7565 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.8508, allocations: 0 / 0.7565 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005679/0.8514, allocations: 147.8 kB / 0.7567 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005249/0.8519, allocations: 76.78 kB / 0.7567 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.377e-05/0.852, allocations: 23.98 kB / 0.7568 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001852/0.8538, allocations: 1.543 MB / 0.7583 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.8538, allocations: 4.062 kB / 0.7583 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/0.8558, allocations: 0.9179 MB / 0.7592 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000376/0.8562, allocations: 247.9 kB / 0.7594 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.8563, allocations: 23.91 kB / 0.7594 GB, free: 9.125 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005716/0.8569, allocations: 51.94 kB / 0.7595 GB, free: 9.074 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.857, allocations: 57.05 kB / 0.7595 GB, free: 9.016 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.441e-05/0.8571, allocations: 35.98 kB / 0.7596 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005598/0.8577, allocations: 427.1 kB / 0.76 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8577, allocations: 0 / 0.76 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009058/0.8586, allocations: 291.3 kB / 0.7603 GB, free: 8.285 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.001416/0.86, allocations: 0.6006 MB / 0.7608 GB, free: 7.883 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001584/0.8616, allocations: 0.7587 MB / 0.7616 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.8616, allocations: 0 / 0.7616 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009671/0.8626, allocations: 0.4885 MB / 0.7621 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001262/0.8639, allocations: 253.7 kB / 0.7623 GB, free: 6.371 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004045/0.8679, allocations: 2.082 MB / 0.7643 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007745/0.8687, allocations: 1.007 MB / 0.7653 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003626/0.8691, allocations: 107.4 kB / 0.7654 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of SimCode: time 9.52e-07/0.8691, allocations: 0 / 0.7654 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of Templates: time 0.02489/0.894, allocations: 17.01 MB / 0.782 GB, free: 2.156 MB / 0.5919 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++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.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