Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs.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.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs") translateModel(IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 105.1 kB / 16.27 MB, free: 6.398 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.001482/0.001483, allocations: 191.8 kB / 17.2 MB, free: 5.969 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.394/1.394, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8453/0.8453, allocations: 135.2 MB / 426.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 67.88 kB / 0.506 GB, free: 8.363 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.366, allocations: 80.91 MB / 0.585 GB, free: 25.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs): time 0.007916/0.3739, allocations: 7.11 MB / 0.592 GB, free: 19.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1912/0.5652, allocations: 155.5 MB / 0.7439 GB, free: 7.523 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001988/0.5672, allocations: 31.81 kB / 0.7439 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.5683, allocations: 277.2 kB / 0.7442 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002973/0.5714, allocations: 0.717 MB / 0.7449 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003467/0.5748, allocations: 1.21 MB / 0.746 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00544/0.5803, allocations: 4.028 MB / 0.75 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3378/0.9181, allocations: 2.637 MB / 0.7526 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003087/0.9212, allocations: 1.632 MB / 0.7541 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002605/0.9239, allocations: 1.728 MB / 0.7558 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0008838/0.9248, allocations: 343.7 kB / 0.7562 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002283/0.9271, allocations: 0.9144 MB / 0.7571 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001048/0.9281, allocations: 0.8903 MB / 0.7579 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.003063/0.9312, allocations: 1.715 MB / 0.7596 GB, free: 2.117 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007366/0.9386, allocations: 4.5 MB / 0.764 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.9386, allocations: 3.906 kB / 0.764 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.613e-06/0.9386, allocations: 0 / 0.764 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0002111/0.9388, allocations: 0 / 0.764 GB, free: 1.504 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: 774 * Number of variables: 774 Notification: Performance of Generate backend data structure: time 0.01177/0.9506, allocations: 3.863 MB / 0.7678 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.9507, allocations: 9.984 kB / 0.7678 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/0.9609, allocations: 1.292 MB / 0.769 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004471/0.9654, allocations: 1.885 MB / 0.7709 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001725/0.9657, allocations: 229.4 kB / 0.7711 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008781/0.9665, allocations: 292.8 kB / 0.7714 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009859/0.9764, allocations: 4.215 MB / 0.7755 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.167e-05/0.9765, allocations: 5.875 kB / 0.7755 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000365/0.9769, allocations: 126.6 kB / 0.7756 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.006e-05/0.977, allocations: 74.47 kB / 0.7757 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01096/0.9879, allocations: 4.566 MB / 0.7801 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02443/1.012, allocations: 12.86 MB / 0.7927 GB, free: 9.348 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01039/1.023, allocations: 3.764 MB / 0.7964 GB, free: 9.277 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003845/1.027, allocations: 1.557 MB / 0.7979 GB, free: 9.254 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001375/1.028, allocations: 1.087 MB / 0.799 GB, free: 8.121 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004968/1.033, allocations: 1.942 MB / 0.8009 GB, free: 7.781 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=223): time 5.51e-06/1.033, allocations: 0 / 0.8009 GB, free: 7.781 MB / 0.5919 GB Notification: Performance of matching and sorting (n=223): time 0.01392/1.047, allocations: 4.901 MB / 0.8056 GB, free: 6.488 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000172/1.047, allocations: 260.9 kB / 0.8059 GB, free: 6.199 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003384/1.051, allocations: 1.906 MB / 0.8078 GB, free: 5.617 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0007334/1.051, allocations: 62.8 kB / 0.8078 GB, free: 5.586 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001185/1.053, allocations: 1.222 MB / 0.809 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.00134/1.054, allocations: 0.7462 MB / 0.8097 GB, free: 4.344 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009727/1.055, allocations: 0.5242 MB / 0.8103 GB, free: 4.195 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001303/1.055, allocations: 305.1 kB / 0.8105 GB, free: 3.895 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003585/1.059, allocations: 1.449 MB / 0.812 GB, free: 3.559 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004184/1.063, allocations: 1.762 MB / 0.8137 GB, free: 2.949 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008526/1.071, allocations: 3.183 MB / 0.8168 GB, free: 1.387 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-05/1.072, allocations: 0 / 0.8168 GB, free: 1.387 MB / 0.5919 GB Notification: Performance of matching and sorting (n=284) (initialization): time 0.01202/1.084, allocations: 3.736 MB / 0.8204 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/1.084, allocations: 8 kB / 0.8204 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/1.084, allocations: 8 kB / 0.8205 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000628/1.084, allocations: 92.98 kB / 0.8205 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004191/1.088, allocations: 0.7192 MB / 0.8212 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002577/1.091, allocations: 1.653 MB / 0.8229 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004267/1.095, allocations: 441.3 kB / 0.8233 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008417/1.096, allocations: 135.8 kB / 0.8234 GB, free: 10.62 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 14 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,radSol[1].solAzi.outsidePolarCircle,radSol[2].solAzi.outsidePolarCircle,radSol[3].solAzi.outsidePolarCircle,radSol[4].solAzi.outsidePolarCircle,radSol[5].solAzi.outsidePolarCircle,radSol[6].solAzi.outsidePolarCircle,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 (282): * Single equations (assignments): 281 * 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.002784/1.099, allocations: 0.7904 MB / 0.8242 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001099/1.1, allocations: 229.2 kB / 0.8244 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01183/1.112, allocations: 4.027 MB / 0.8283 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.132e-05/1.112, allocations: 24 kB / 0.8284 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/1.112, allocations: 0 / 0.8284 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.365e-05/1.112, allocations: 23.89 kB / 0.8284 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01847/1.131, allocations: 7.204 MB / 0.8354 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/1.131, allocations: 0 / 0.8354 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003544/1.134, allocations: 0.5969 MB / 0.836 GB, free: 13.65 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005455/1.135, allocations: 80.78 kB / 0.8361 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006164/1.135, allocations: 67.94 kB / 0.8361 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/1.138, allocations: 1.66 MB / 0.8378 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/1.138, allocations: 3.938 kB / 0.8378 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0113/1.149, allocations: 3.32 MB / 0.841 GB, free: 8.359 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002252/1.151, allocations: 0.6809 MB / 0.8417 GB, free: 7.656 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001182/1.153, allocations: 67.69 kB / 0.8417 GB, free: 7.59 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003399/1.156, allocations: 275.6 kB / 0.842 GB, free: 7.32 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000662/1.157, allocations: 156.7 kB / 0.8421 GB, free: 7.168 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005277/1.157, allocations: 94.09 kB / 0.8422 GB, free: 7.078 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.003535/1.161, allocations: 1.43 MB / 0.8436 GB, free: 5.629 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.5e-07/1.161, allocations: 0 / 0.8436 GB, free: 5.629 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.004508/1.165, allocations: 0.8878 MB / 0.8445 GB, free: 4.738 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (251): * Single equations (assignments): 248 * 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.003182/1.169, allocations: 0.6822 MB / 0.8452 GB, free: 4.309 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01659/1.185, allocations: 5.752 MB / 0.8508 GB, free: 14.61 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/1.185, allocations: 4.375 kB / 0.8508 GB, free: 14.61 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.005126/1.19, allocations: 1.718 MB / 0.8525 GB, free: 12.93 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00413/1.195, allocations: 453.9 kB / 0.8529 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01843/1.213, allocations: 6.35 MB / 0.8591 GB, free: 6.133 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003336/1.216, allocations: 2.189 MB / 0.8612 GB, free: 3.91 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002386/1.219, allocations: 334.6 kB / 0.8616 GB, free: 3.586 MB / 0.6387 GB Notification: Performance of SimCode: time 7.62e-07/1.219, allocations: 0 / 0.8616 GB, free: 3.586 MB / 0.6387 GB Notification: Performance of Templates: time 0.08746/1.306, allocations: 55.87 MB / 0.9161 GB, free: 11.81 MB / 0.7012 GB make -j1 -f IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs.makefile make -j1 -f IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs.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.LIDEAS.Examples.BaseClasses.SimInfoManagerInputsCalcHelperMain.o OMCppIDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputsCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputsCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputsFunctions.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.LIDEAS.Examples.BaseClasses.SimInfoManagerInputsCalcHelperMain.o] Error 1