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.0007069/0.0007068, allocations: 92.31 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008097/0.0008098, allocations: 178.8 kB / 16.92 MB, free: 6.652 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.291/1.291, allocations: 223.3 MB / 241 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8826/0.8826, allocations: 135.3 MB / 427.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.000323, allocations: 8 kB / 0.5082 GB, free: 4.77 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1476, allocations: 82.31 MB / 0.5886 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.004265/0.152, allocations: 3.714 MB / 0.5922 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.3949/0.5469, allocations: 146.5 MB / 0.7354 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005649/0.5475, allocations: 17.88 kB / 0.7354 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0004904/0.548, allocations: 135.5 kB / 0.7355 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001258/0.5493, allocations: 400.5 kB / 0.7359 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002/0.5513, allocations: 0.6846 MB / 0.7366 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001229/0.5525, allocations: 1.104 MB / 0.7376 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008861/0.5534, allocations: 0.5722 MB / 0.7382 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005685/0.554, allocations: 305.5 kB / 0.7385 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004607/0.5545, allocations: 333.6 kB / 0.7388 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.245e-05/0.5545, allocations: 21.34 kB / 0.7388 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009343/0.5555, allocations: 359.7 kB / 0.7392 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002252/0.5557, allocations: 178.5 kB / 0.7393 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004122/0.5561, allocations: 413.8 kB / 0.7397 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.5573, allocations: 1.063 MB / 0.7408 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.5573, allocations: 0 / 0.7408 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.512e-06/0.5573, allocations: 0 / 0.7408 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.258e-05/0.5573, allocations: 2.156 kB / 0.7408 GB, free: 12.2 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.001957/0.5593, allocations: 1.119 MB / 0.7419 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.5593, allocations: 9.125 kB / 0.7419 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000879/0.5602, allocations: 196.7 kB / 0.7421 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009536/0.5612, allocations: 0.7076 MB / 0.7427 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.859e-05/0.5612, allocations: 56.25 kB / 0.7428 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.677e-05/0.5613, allocations: 76.12 kB / 0.7429 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.5628, allocations: 0.8696 MB / 0.7437 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.5628, allocations: 5.281 kB / 0.7437 GB, free: 10.41 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-05/0.5629, allocations: 36.44 kB / 0.7438 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.5629, allocations: 19.25 kB / 0.7438 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.5646, allocations: 1.079 MB / 0.7448 GB, free: 9.91 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003774/0.5684, allocations: 2.398 MB / 0.7472 GB, free: 8.102 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.5696, allocations: 0.809 MB / 0.748 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004626/0.5701, allocations: 282.1 kB / 0.7482 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 6.976e-05/0.5702, allocations: 31.59 kB / 0.7483 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007547/0.5709, allocations: 430 kB / 0.7487 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=72): time 2.034e-06/0.5709, allocations: 7.938 kB / 0.7487 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72): time 0.002714/0.5737, allocations: 1.086 MB / 0.7497 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.978e-05/0.5738, allocations: 187.3 kB / 0.7499 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006805/0.5745, allocations: 0.5871 MB / 0.7505 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.955e-05/0.5745, allocations: 40.52 kB / 0.7505 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002626/0.5748, allocations: 371.2 kB / 0.7509 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.575, allocations: 236.4 kB / 0.7511 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.513e-05/0.5751, allocations: 75.8 kB / 0.7512 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001615/0.5753, allocations: 373.6 kB / 0.7515 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004367/0.5757, allocations: 240.3 kB / 0.7518 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005308/0.5763, allocations: 325.5 kB / 0.7521 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009599/0.5772, allocations: 0.5628 MB / 0.7526 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.5772, allocations: 0 / 0.7526 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001666/0.5789, allocations: 0.7744 MB / 0.7534 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.5789, allocations: 4 kB / 0.7534 GB, free: 3.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.5789, allocations: 0 / 0.7534 GB, free: 3.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005899/0.5795, allocations: 92.8 kB / 0.7535 GB, free: 3.246 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006009/0.5802, allocations: 147.8 kB / 0.7536 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001922/0.5821, allocations: 1.518 MB / 0.7551 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006444/0.5827, allocations: 89.64 kB / 0.7552 GB, free: 1.363 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.035e-05/0.5828, allocations: 31.97 kB / 0.7552 GB, free: 1.332 MB / 0.5606 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.0004318/0.5832, allocations: 253.9 kB / 0.7555 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.5834, allocations: 75.06 kB / 0.7555 GB, free: 1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002227/0.5856, allocations: 1.017 MB / 0.7565 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.5856, allocations: 11.94 kB / 0.7565 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.5856, allocations: 0 / 0.7565 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.5856, allocations: 3.984 kB / 0.7565 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002976/0.5886, allocations: 1.862 MB / 0.7584 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.5886, allocations: 3.938 kB / 0.7584 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005473/0.5892, allocations: 147.8 kB / 0.7585 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005099/0.5897, allocations: 80.77 kB / 0.7586 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.902e-05/0.5898, allocations: 35.86 kB / 0.7586 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001749/0.5915, allocations: 1.54 MB / 0.7601 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.5916, allocations: 0 / 0.7601 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.5934, allocations: 0.9259 MB / 0.761 GB, free: 11.15 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003579/0.5938, allocations: 271.7 kB / 0.7613 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.617e-05/0.5939, allocations: 16 kB / 0.7613 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005643/0.5944, allocations: 71.94 kB / 0.7614 GB, free: 10.78 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.5946, allocations: 52.92 kB / 0.7614 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.098e-05/0.5946, allocations: 36.05 kB / 0.7615 GB, free: 10.69 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005237/0.5952, allocations: 431 kB / 0.7619 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5952, allocations: 0 / 0.7619 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008631/0.596, allocations: 287.3 kB / 0.7621 GB, free: 9.996 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.001306/0.5974, allocations: 0.6134 MB / 0.7627 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001458/0.5988, allocations: 0.7627 MB / 0.7635 GB, free: 8.812 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.5988, allocations: 0 / 0.7635 GB, free: 8.812 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008507/0.5997, allocations: 496.3 kB / 0.764 GB, free: 8.312 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.6009, allocations: 252.5 kB / 0.7642 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003878/0.6048, allocations: 2.155 MB / 0.7663 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005752/0.6054, allocations: 0.9996 MB / 0.7673 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003447/0.6058, allocations: 115.3 kB / 0.7674 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of SimCode: time 7.21e-07/0.6058, allocations: 0 / 0.7674 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of Templates: time 0.02163/0.6274, allocations: 16.91 MB / 0.7839 GB, free: 3.879 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