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.0008722/0.0008724, allocations: 98.8 kB / 16.02 MB, free: 76 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.0007658/0.0007658, allocations: 187.8 kB / 16.92 MB, free: 6.75 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.279/1.279, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9075/0.9075, allocations: 135.3 MB / 427.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.0003101, allocations: 8.281 kB / 0.5082 GB, free: 4.746 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1445, allocations: 82.31 MB / 0.5886 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.004325/0.1488, allocations: 3.749 MB / 0.5923 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4031/0.552, allocations: 146.6 MB / 0.7354 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007109/0.5527, allocations: 18.06 kB / 0.7354 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005003/0.5532, allocations: 140.4 kB / 0.7355 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001392/0.5547, allocations: 396.2 kB / 0.7359 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002104/0.5568, allocations: 0.6974 MB / 0.7366 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001299/0.5581, allocations: 1.102 MB / 0.7377 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001027/0.5591, allocations: 0.6591 MB / 0.7383 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005539/0.5597, allocations: 308.3 kB / 0.7386 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004919/0.5602, allocations: 339.2 kB / 0.7389 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.491e-05/0.5603, allocations: 21.62 kB / 0.739 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008458/0.5611, allocations: 369.8 kB / 0.7393 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001873/0.5613, allocations: 181 kB / 0.7395 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003603/0.5617, allocations: 428 kB / 0.7399 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.5629, allocations: 1.126 MB / 0.741 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.5629, allocations: 0 / 0.741 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.873e-06/0.5629, allocations: 0 / 0.741 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.459e-05/0.5629, allocations: 0 / 0.741 GB, free: 12.06 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: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.001949/0.5649, allocations: 1.165 MB / 0.7421 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.5649, allocations: 9.156 kB / 0.7421 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/0.5659, allocations: 214.4 kB / 0.7424 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009385/0.5669, allocations: 0.7307 MB / 0.7431 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.342e-05/0.5669, allocations: 66.62 kB / 0.7431 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.5671, allocations: 85.66 kB / 0.7432 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.5687, allocations: 0.9498 MB / 0.7441 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.5687, allocations: 3.938 kB / 0.7441 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.691e-05/0.5688, allocations: 41.61 kB / 0.7442 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.962e-05/0.5689, allocations: 22 kB / 0.7442 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001814/0.5707, allocations: 1.133 MB / 0.7453 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003777/0.5745, allocations: 2.504 MB / 0.7478 GB, free: 7.691 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002091/0.5766, allocations: 0.8884 MB / 0.7486 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004979/0.5771, allocations: 288.5 kB / 0.7489 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.321e-05/0.5772, allocations: 31.47 kB / 0.7489 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007645/0.5779, allocations: 445.7 kB / 0.7494 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=73): time 2.144e-06/0.5779, allocations: 0 / 0.7494 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73): time 0.002816/0.5808, allocations: 1.106 MB / 0.7504 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.762e-05/0.5809, allocations: 187 kB / 0.7506 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007058/0.5816, allocations: 0.6056 MB / 0.7512 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.159e-05/0.5817, allocations: 45.05 kB / 0.7512 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/0.582, allocations: 396.5 kB / 0.7516 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001975/0.5822, allocations: 244.5 kB / 0.7519 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.872e-05/0.5823, allocations: 61.69 kB / 0.7519 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002222/0.5825, allocations: 382.7 kB / 0.7523 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005164/0.583, allocations: 249.9 kB / 0.7525 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005762/0.5836, allocations: 335.1 kB / 0.7528 GB, free: 3.867 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.5847, allocations: 0.576 MB / 0.7534 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5847, allocations: 4 kB / 0.7534 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001897/0.5866, allocations: 0.798 MB / 0.7542 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.5866, allocations: 4 kB / 0.7542 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.5866, allocations: 7.938 kB / 0.7542 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005995/0.5872, allocations: 76.88 kB / 0.7543 GB, free: 2.383 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/0.5878, allocations: 155.7 kB / 0.7544 GB, free: 2.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/0.5898, allocations: 1.525 MB / 0.7559 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006711/0.5905, allocations: 91.39 kB / 0.756 GB, free: 496 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.798e-05/0.5906, allocations: 39.97 kB / 0.756 GB, free: 456 kB / 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 (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.0005074/0.5911, allocations: 253.6 kB / 0.7563 GB, free: 196 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.5912, allocations: 86.98 kB / 0.7564 GB, free: 108 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002243/0.5935, allocations: 0.9996 MB / 0.7573 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.5935, allocations: 8 kB / 0.7573 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.5935, allocations: 0.875 kB / 0.7573 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.5935, allocations: 7.922 kB / 0.7573 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/0.5968, allocations: 1.915 MB / 0.7592 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.5968, allocations: 0 / 0.7592 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006379/0.5974, allocations: 147.8 kB / 0.7594 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005064/0.5979, allocations: 88.7 kB / 0.7594 GB, free: 12.87 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.84e-05/0.598, allocations: 28.05 kB / 0.7595 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001724/0.5997, allocations: 1.54 MB / 0.761 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5997, allocations: 0 / 0.761 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/0.6016, allocations: 0.9336 MB / 0.7619 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003352/0.6019, allocations: 271.7 kB / 0.7621 GB, free: 9.922 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.91e-05/0.602, allocations: 15.98 kB / 0.7622 GB, free: 9.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006069/0.6026, allocations: 73.47 kB / 0.7622 GB, free: 9.836 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.6028, allocations: 60.86 kB / 0.7623 GB, free: 9.777 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-05/0.6028, allocations: 31.98 kB / 0.7623 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000539/0.6034, allocations: 435 kB / 0.7627 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6034, allocations: 0 / 0.7627 GB, free: 9.328 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009844/0.6044, allocations: 307.1 kB / 0.763 GB, free: 9.027 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.001501/0.6059, allocations: 0.602 MB / 0.7636 GB, free: 8.625 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001623/0.6075, allocations: 0.776 MB / 0.7644 GB, free: 7.836 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.6075, allocations: 0 / 0.7644 GB, free: 7.836 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00086/0.6084, allocations: 0.4968 MB / 0.7649 GB, free: 7.328 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.6096, allocations: 248.8 kB / 0.7651 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003982/0.6136, allocations: 2.246 MB / 0.7673 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005692/0.6142, allocations: 1.022 MB / 0.7683 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002812/0.6145, allocations: 111.4 kB / 0.7684 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of SimCode: time 1.032e-06/0.6145, allocations: 0 / 0.7684 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of Templates: time 0.02124/0.6357, allocations: 17.61 MB / 0.7856 GB, free: 2.098 MB / 0.5919 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++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.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