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.001776/0.001776, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.00199/0.00199, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.446/1.446, 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.8393/0.8393, allocations: 135.2 MB / 426.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001947, allocations: 67.89 kB / 0.506 GB, free: 8.359 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3329, allocations: 80.91 MB / 0.5851 GB, free: 25.17 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.BaseClasses.Examples.ZenithAngle): time 0.004998/0.3379, allocations: 4.113 MB / 0.5891 GB, free: 21.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1701/0.5081, allocations: 150.5 MB / 0.736 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009012/0.5091, allocations: 15.94 kB / 0.736 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005552/0.5097, allocations: 166.5 kB / 0.7362 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001686/0.5114, allocations: 484.9 kB / 0.7366 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001918/0.5133, allocations: 0.7861 MB / 0.7374 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00141/0.5147, allocations: 1.176 MB / 0.7386 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009247/0.5156, allocations: 0.6138 MB / 0.7392 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006173/0.5163, allocations: 430.5 kB / 0.7396 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005545/0.5168, allocations: 453.9 kB / 0.74 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.517, allocations: 100 kB / 0.7401 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009433/0.5179, allocations: 451.7 kB / 0.7405 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002847/0.5182, allocations: 267.1 kB / 0.7408 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004907/0.5187, allocations: 0.4896 MB / 0.7413 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001842/0.5206, allocations: 1.445 MB / 0.7427 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.5206, allocations: 7.938 kB / 0.7427 GB, free: 8.562 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5206, allocations: 0 / 0.7427 GB, free: 8.562 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.208e-05/0.5206, allocations: 0 / 0.7427 GB, free: 8.562 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.00233/0.523, allocations: 1.322 MB / 0.744 GB, free: 7.188 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.523, allocations: 17.03 kB / 0.744 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009273/0.524, allocations: 179.4 kB / 0.7442 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.525, allocations: 0.6956 MB / 0.7448 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.641e-05/0.5251, allocations: 58 kB / 0.7449 GB, free: 6.199 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.5252, allocations: 76 kB / 0.745 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00151/0.5267, allocations: 0.8637 MB / 0.7458 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.5267, allocations: 3.938 kB / 0.7458 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.303e-05/0.5268, allocations: 36 kB / 0.7458 GB, free: 5.18 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.019e-05/0.5268, allocations: 20 kB / 0.7459 GB, free: 5.16 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.5286, allocations: 1.065 MB / 0.7469 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004045/0.5327, allocations: 2.363 MB / 0.7492 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/0.5341, allocations: 0.7937 MB / 0.75 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00051/0.5346, allocations: 274.5 kB / 0.7502 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.028e-05/0.5347, allocations: 32.52 kB / 0.7503 GB, free: 0.543 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008329/0.5356, allocations: 427.1 kB / 0.7507 GB, free: 108 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=72): time 2.495e-06/0.5356, allocations: 0 / 0.7507 GB, free: 108 kB / 0.5762 GB Notification: Performance of matching and sorting (n=72): time 0.2497/0.7853, allocations: 1.078 MB / 0.7517 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.7854, allocations: 190.6 kB / 0.7519 GB, free: 165.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008627/0.7863, allocations: 0.5893 MB / 0.7525 GB, free: 165 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.536e-05/0.7864, allocations: 37.11 kB / 0.7525 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.7866, allocations: 375.3 kB / 0.7529 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.7868, allocations: 249.3 kB / 0.7531 GB, free: 164.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002156/0.787, allocations: 145.1 kB / 0.7533 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.659e-05/0.7871, allocations: 381.2 kB / 0.7536 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000506/0.7876, allocations: 237.7 kB / 0.7539 GB, free: 164 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005881/0.7882, allocations: 324.9 kB / 0.7542 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.7892, allocations: 0.554 MB / 0.7547 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.7892, allocations: 1 kB / 0.7547 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001917/0.7912, allocations: 0.7645 MB / 0.7555 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.7912, allocations: 4.469 kB / 0.7555 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.7912, allocations: 1.031 kB / 0.7555 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006251/0.7918, allocations: 79.25 kB / 0.7555 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000644/0.7925, allocations: 151.6 kB / 0.7557 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001808/0.7943, allocations: 1.63 MB / 0.7573 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006226/0.795, allocations: 78.12 kB / 0.7573 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.688e-05/0.795, allocations: 36.75 kB / 0.7574 GB, free: 161.7 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.0003387/0.7954, allocations: 248.5 kB / 0.7576 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000163/0.7956, allocations: 78.3 kB / 0.7577 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002477/0.798, allocations: 0.9984 MB / 0.7587 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.7981, allocations: 9.188 kB / 0.7587 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.7981, allocations: 0.7188 kB / 0.7587 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.7981, allocations: 8.141 kB / 0.7587 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003047/0.8011, allocations: 1.863 MB / 0.7605 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.8012, allocations: 2.312 kB / 0.7605 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005877/0.8018, allocations: 143.5 kB / 0.7606 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004349/0.8022, allocations: 72.47 kB / 0.7607 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.928e-05/0.8023, allocations: 24.92 kB / 0.7607 GB, free: 160.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001479/0.8037, allocations: 1.657 MB / 0.7624 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.8038, allocations: 0.6875 kB / 0.7624 GB, free: 158.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.8055, allocations: 0.9221 MB / 0.7633 GB, free: 158 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.8058, allocations: 248.2 kB / 0.7635 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.8059, allocations: 18.94 kB / 0.7635 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005616/0.8065, allocations: 53.97 kB / 0.7636 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.8066, allocations: 63.84 kB / 0.7636 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.006e-05/0.8066, allocations: 34.33 kB / 0.7637 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004356/0.8071, allocations: 427.5 kB / 0.7641 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.31e-07/0.8071, allocations: 0 / 0.7641 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007789/0.8079, allocations: 293.2 kB / 0.7643 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.001791/0.8097, allocations: 0.603 MB / 0.7649 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001843/0.8115, allocations: 0.9477 MB / 0.7659 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.8115, allocations: 2.719 kB / 0.7659 GB, free: 156.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007675/0.8123, allocations: 492.1 kB / 0.7663 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.8134, allocations: 288.7 kB / 0.7666 GB, free: 156.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003074/0.8165, allocations: 1.707 MB / 0.7683 GB, free: 154.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.8168, allocations: 1 MB / 0.7692 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002403/0.8171, allocations: 111.4 kB / 0.7694 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/0.8171, allocations: 0 / 0.7694 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.01566/0.8327, 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