Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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.BaseClasses.Examples.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") translateModel(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 106.9 kB / 16.27 MB, free: 6.109 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.001499/0.001499, allocations: 190.2 kB / 17.2 MB, free: 5.719 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.306/1.306, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.803/0.803, allocations: 135.2 MB / 426.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 71.88 kB / 0.5061 GB, free: 8.363 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3677/0.3696, allocations: 80.9 MB / 0.5851 GB, free: 25.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.004757/0.3744, allocations: 4.144 MB / 0.5891 GB, free: 22.02 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1679/0.5423, allocations: 150.5 MB / 0.7361 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008034/0.5431, allocations: 19.88 kB / 0.7361 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006505/0.5438, allocations: 170.5 kB / 0.7362 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001736/0.5456, allocations: 469 kB / 0.7367 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002041/0.5476, allocations: 0.7976 MB / 0.7375 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001587/0.5492, allocations: 1.18 MB / 0.7386 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.5503, allocations: 0.6905 MB / 0.7393 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007134/0.5511, allocations: 462.3 kB / 0.7397 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005535/0.5516, allocations: 473.8 kB / 0.7402 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001636/0.5518, allocations: 112 kB / 0.7403 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008816/0.5527, allocations: 459.7 kB / 0.7407 GB, free: 10.61 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.553, allocations: 295 kB / 0.741 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005028/0.5535, allocations: 0.5246 MB / 0.7415 GB, free: 9.789 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001755/0.5553, allocations: 1.527 MB / 0.743 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.5553, allocations: 0 / 0.743 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.964e-06/0.5553, allocations: 3.938 kB / 0.743 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.802e-05/0.5553, allocations: 0 / 0.743 GB, free: 8.254 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: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.002342/0.5577, allocations: 1.385 MB / 0.7444 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.5577, allocations: 9.109 kB / 0.7444 GB, free: 6.812 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001051/0.5588, allocations: 203.4 kB / 0.7446 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.5598, allocations: 0.7266 MB / 0.7453 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.813e-05/0.5599, allocations: 66 kB / 0.7453 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.56, allocations: 92 kB / 0.7454 GB, free: 5.691 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.5617, allocations: 0.941 MB / 0.7464 GB, free: 4.711 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.5617, allocations: 4 kB / 0.7464 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.236e-05/0.5618, allocations: 36 kB / 0.7464 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.371e-05/0.5619, allocations: 20 kB / 0.7464 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001896/0.5638, allocations: 1.124 MB / 0.7475 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004036/0.5678, allocations: 2.483 MB / 0.7499 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002239/0.5701, allocations: 0.8829 MB / 0.7508 GB, free: 68 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2195/0.7895, allocations: 274.9 kB / 0.7511 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.759e-05/0.7896, allocations: 38.59 kB / 0.7511 GB, free: 165.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008635/0.7905, allocations: 434.4 kB / 0.7515 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=73): time 2.474e-06/0.7905, allocations: 2.844 kB / 0.7515 GB, free: 165.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=73): time 0.002885/0.7934, allocations: 1.088 MB / 0.7526 GB, free: 164.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.7935, allocations: 191.4 kB / 0.7528 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006674/0.7942, allocations: 0.5997 MB / 0.7533 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.074e-05/0.7942, allocations: 42.14 kB / 0.7534 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002559/0.7945, allocations: 405.5 kB / 0.7538 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.7946, allocations: 240.7 kB / 0.754 GB, free: 164 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/0.7949, allocations: 149.2 kB / 0.7541 GB, free: 163.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.211e-05/0.795, allocations: 388.5 kB / 0.7545 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005051/0.7955, allocations: 239.8 kB / 0.7547 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005718/0.796, allocations: 336.9 kB / 0.7551 GB, free: 163.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.7971, allocations: 0.568 MB / 0.7556 GB, free: 163.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.7971, allocations: 4.422 kB / 0.7556 GB, free: 163.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001843/0.799, allocations: 0.7836 MB / 0.7564 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.799, allocations: 8.328 kB / 0.7564 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.799, allocations: 0.5625 kB / 0.7564 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000585/0.7996, allocations: 88.84 kB / 0.7565 GB, free: 162.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006222/0.8002, allocations: 152.8 kB / 0.7566 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.8019, allocations: 1.63 MB / 0.7582 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005896/0.8025, allocations: 80.97 kB / 0.7583 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.343e-05/0.8026, allocations: 37.38 kB / 0.7583 GB, free: 161.2 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 (84): * Single equations (assignments): 83 * 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.0003407/0.8029, allocations: 268.5 kB / 0.7586 GB, free: 161 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.8031, allocations: 78.66 kB / 0.7587 GB, free: 160.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002334/0.8054, allocations: 1 MB / 0.7596 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.8054, allocations: 16.11 kB / 0.7597 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.8054, allocations: 0.5312 kB / 0.7597 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.8054, allocations: 5.266 kB / 0.7597 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00284/0.8083, allocations: 1.894 MB / 0.7615 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.8083, allocations: 1.469 kB / 0.7615 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005359/0.8088, allocations: 143.2 kB / 0.7616 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003964/0.8092, allocations: 73.31 kB / 0.7617 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.8093, allocations: 23.39 kB / 0.7617 GB, free: 159.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001381/0.8107, allocations: 1.662 MB / 0.7634 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.8107, allocations: 0 / 0.7634 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/0.8124, allocations: 0.9285 MB / 0.7643 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.8126, allocations: 252.5 kB / 0.7645 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.8127, allocations: 17.31 kB / 0.7645 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005413/0.8133, allocations: 59.66 kB / 0.7646 GB, free: 157 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.8134, allocations: 62.19 kB / 0.7646 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.435e-05/0.8134, allocations: 32.8 kB / 0.7647 GB, free: 156.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004179/0.8139, allocations: 440.6 kB / 0.7651 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8139, allocations: 0 / 0.7651 GB, free: 156.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006602/0.8145, allocations: 296.9 kB / 0.7654 GB, free: 156.6 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 (85): * Single equations (assignments): 82 * 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.00162/0.8162, allocations: 0.603 MB / 0.766 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001785/0.818, allocations: 0.9594 MB / 0.7669 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.818, allocations: 0 / 0.7669 GB, free: 155.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006979/0.8187, allocations: 496.2 kB / 0.7674 GB, free: 155.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009739/0.8197, allocations: 286.1 kB / 0.7676 GB, free: 155 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.8225, allocations: 1.776 MB / 0.7694 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.8228, allocations: 1.019 MB / 0.7704 GB, free: 152.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.8231, allocations: 107.4 kB / 0.7705 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of SimCode: time 2.41e-07/0.8231, allocations: 0 / 0.7705 GB, free: 152.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.01485/0.8379, allocations: 17.75 MB / 0.7878 GB, free: 134.4 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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.BaseClasses.Examples.RelativeAirMassCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMassFunctions.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.BaseClasses.Examples.RelativeAirMassCalcHelperMain.o] Error 1