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.00184/0.00184, allocations: 104.9 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.00191/0.00191, 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.363/1.363, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8188/0.8188, allocations: 135.2 MB / 426.2 MB, free: 4.129 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 63.91 kB / 0.506 GB, free: 8.344 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3602, allocations: 80.92 MB / 0.5851 GB, free: 25.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs): time 0.008165/0.3684, allocations: 7.11 MB / 0.592 GB, free: 19.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.1853/0.5537, allocations: 155.5 MB / 0.7439 GB, free: 7.316 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001967/0.5557, allocations: 31.88 kB / 0.7439 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.557, allocations: 281.1 kB / 0.7442 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003207/0.5603, allocations: 0.712 MB / 0.7449 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00355/0.5639, allocations: 1.211 MB / 0.746 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005352/0.5692, allocations: 4.032 MB / 0.75 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3368/0.9061, allocations: 2.636 MB / 0.7526 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003099/0.9092, allocations: 1.625 MB / 0.7541 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002007/0.9112, allocations: 1.73 MB / 0.7558 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0006074/0.9118, allocations: 341.8 kB / 0.7562 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.9138, allocations: 0.917 MB / 0.7571 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0009198/0.9148, allocations: 0.8914 MB / 0.7579 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002354/0.9171, allocations: 1.714 MB / 0.7596 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007142/0.9243, allocations: 4.505 MB / 0.764 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.9243, allocations: 0 / 0.764 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.375e-06/0.9243, allocations: 1.094 kB / 0.764 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001429/0.9245, allocations: 0 / 0.764 GB, free: 1.461 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.008749/0.9332, allocations: 3.857 MB / 0.7678 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.9333, allocations: 11.42 kB / 0.7678 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009482/0.9428, allocations: 1.294 MB / 0.769 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005603/0.9484, allocations: 1.88 MB / 0.7709 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.9487, allocations: 232.4 kB / 0.7711 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006113/0.9493, allocations: 295.8 kB / 0.7714 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008347/0.9577, allocations: 4.213 MB / 0.7755 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.024e-05/0.9577, allocations: 1.688 kB / 0.7755 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003099/0.958, allocations: 125.8 kB / 0.7756 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.115e-05/0.9581, allocations: 74.69 kB / 0.7757 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009635/0.9677, allocations: 4.565 MB / 0.7801 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02172/0.9895, allocations: 12.87 MB / 0.7927 GB, free: 9.305 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009466/0.999, allocations: 3.763 MB / 0.7964 GB, free: 9.23 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003505/1.003, allocations: 1.561 MB / 0.7979 GB, free: 9.203 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001282/1.004, allocations: 1.087 MB / 0.799 GB, free: 8.066 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004139/1.008, allocations: 1.931 MB / 0.8009 GB, free: 7.695 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=223): time 4.118e-06/1.008, allocations: 3.938 kB / 0.8009 GB, free: 7.691 MB / 0.5919 GB Notification: Performance of matching and sorting (n=223): time 0.01302/1.021, allocations: 4.909 MB / 0.8057 GB, free: 6.395 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001857/1.021, allocations: 259.9 kB / 0.8059 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003373/1.025, allocations: 1.899 MB / 0.8078 GB, free: 5.527 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0005133/1.025, allocations: 66.48 kB / 0.8078 GB, free: 5.496 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001137/1.026, allocations: 1.223 MB / 0.809 GB, free: 4.797 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009497/1.027, allocations: 0.7453 MB / 0.8097 GB, free: 4.254 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008314/1.028, allocations: 0.5259 MB / 0.8103 GB, free: 4.105 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001406/1.028, allocations: 305.1 kB / 0.8106 GB, free: 3.805 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003417/1.032, allocations: 1.447 MB / 0.812 GB, free: 3.469 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003836/1.036, allocations: 1.761 MB / 0.8137 GB, free: 2.859 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007666/1.043, allocations: 3.186 MB / 0.8168 GB, free: 1.086 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.445e-05/1.043, allocations: 4 kB / 0.8168 GB, free: 1.082 MB / 0.5919 GB Notification: Performance of matching and sorting (n=284) (initialization): time 0.0106/1.054, allocations: 3.736 MB / 0.8204 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.903e-05/1.054, allocations: 11.98 kB / 0.8205 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-05/1.054, allocations: 4 kB / 0.8205 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006619/1.055, allocations: 92.22 kB / 0.8206 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003962/1.059, allocations: 0.7185 MB / 0.8213 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/1.061, allocations: 1.647 MB / 0.8229 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004165/1.065, allocations: 441.4 kB / 0.8233 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006219/1.066, allocations: 131.8 kB / 0.8234 GB, free: 10.23 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.002271/1.068, allocations: 0.7902 MB / 0.8242 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008731/1.069, allocations: 225.2 kB / 0.8244 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/1.08, allocations: 4.034 MB / 0.8283 GB, free: 5.188 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.279e-05/1.08, allocations: 24 kB / 0.8284 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/1.08, allocations: 4 kB / 0.8284 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.806e-05/1.08, allocations: 15.89 kB / 0.8284 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01607/1.096, allocations: 7.211 MB / 0.8354 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/1.096, allocations: 0 / 0.8354 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003101/1.099, allocations: 0.6023 MB / 0.836 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004801/1.1, allocations: 76.78 kB / 0.8361 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002219/1.1, allocations: 71.94 kB / 0.8361 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002128/1.102, allocations: 1.651 MB / 0.8378 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.194e-05/1.102, allocations: 7.938 kB / 0.8378 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008786/1.111, allocations: 3.322 MB / 0.841 GB, free: 7.973 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001777/1.113, allocations: 0.677 MB / 0.8417 GB, free: 7.273 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006165/1.113, allocations: 67.69 kB / 0.8417 GB, free: 7.207 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002669/1.116, allocations: 275.6 kB / 0.842 GB, free: 6.938 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003536/1.116, allocations: 149.8 kB / 0.8421 GB, free: 6.789 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002074/1.117, allocations: 87.88 kB / 0.8422 GB, free: 6.703 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.002423/1.119, allocations: 1.438 MB / 0.8436 GB, free: 5.246 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/1.119, allocations: 0 / 0.8436 GB, free: 5.246 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003021/1.122, allocations: 0.88 MB / 0.8445 GB, free: 4.363 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.002274/1.124, allocations: 0.6854 MB / 0.8452 GB, free: 3.934 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01583/1.14, allocations: 5.754 MB / 0.8508 GB, free: 14.23 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/1.14, allocations: 4.062 kB / 0.8508 GB, free: 14.23 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.004293/1.145, allocations: 1.716 MB / 0.8525 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/1.147, allocations: 454.4 kB / 0.8529 GB, free: 12.12 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/1.162, allocations: 6.364 MB / 0.8591 GB, free: 5.742 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001983/1.164, allocations: 2.178 MB / 0.8612 GB, free: 3.531 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002027/1.166, allocations: 339.2 kB / 0.8616 GB, free: 3.199 MB / 0.6387 GB Notification: Performance of SimCode: time 1.202e-06/1.166, allocations: 0 / 0.8616 GB, free: 3.199 MB / 0.6387 GB Notification: Performance of Templates: time 0.08783/1.254, allocations: 55.89 MB / 0.9161 GB, free: 11.41 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