Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs") translateModel(IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001149/0.001149, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.001261/0.001261, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7852/0.7852, allocations: 132.2 MB / 423.4 MB, free: 6.664 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 58.53 kB / 0.5822 GB, free: 23.55 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1467, allocations: 80.23 MB / 0.6605 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs): time 0.008737/0.1555, allocations: 7.105 MB / 0.6675 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4923/0.6479, allocations: 155.5 MB / 0.8193 GB, free: 9.301 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001527/0.6494, allocations: 33.25 kB / 0.8194 GB, free: 9.289 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/BoundaryConditions/Interfaces/PartialSimInfoManager.mo:151:3-154:55:writable] Warning: Connector weaBus is not balanced: The number of potential variables (20) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.001064/0.6505, allocations: 284.4 kB / 0.8196 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002468/0.653, allocations: 0.728 MB / 0.8204 GB, free: 8.598 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003062/0.6561, allocations: 1.21 MB / 0.8215 GB, free: 7.898 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004336/0.6604, allocations: 4.068 MB / 0.8255 GB, free: 5.41 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003029/0.6635, allocations: 2.472 MB / 0.8279 GB, free: 3.996 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003096/0.6666, allocations: 1.677 MB / 0.8296 GB, free: 3.039 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002297/0.6689, allocations: 1.746 MB / 0.8313 GB, free: 1.812 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0005568/0.6695, allocations: 344.1 kB / 0.8316 GB, free: 1.812 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001884/0.6714, allocations: 0.9442 MB / 0.8325 GB, free: 1.496 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0007535/0.6721, allocations: 0.8955 MB / 0.8334 GB, free: 0.7812 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002037/0.6742, allocations: 1.729 MB / 0.8351 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.005315/0.6795, allocations: 4.667 MB / 0.8396 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.6795, allocations: 0 / 0.8396 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.984e-06/0.6796, allocations: 0 / 0.8396 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001253/0.6797, allocations: 0 / 0.8396 GB, free: 12.21 MB / 0.6075 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.008504/0.6882, allocations: 3.907 MB / 0.8435 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.6883, allocations: 9.875 kB / 0.8435 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009475/0.6977, allocations: 1.301 MB / 0.8447 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003718/0.7015, allocations: 1.946 MB / 0.8466 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001716/0.7017, allocations: 226.1 kB / 0.8469 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005332/0.7022, allocations: 292 kB / 0.8471 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008772/0.711, allocations: 4.216 MB / 0.8512 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.103e-05/0.7111, allocations: 3.938 kB / 0.8513 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003261/0.7114, allocations: 127.9 kB / 0.8514 GB, free: 2.352 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.283e-05/0.7115, allocations: 76 kB / 0.8514 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01033/0.7218, allocations: 4.588 MB / 0.8559 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01984/0.7417, allocations: 12.78 MB / 0.8684 GB, free: 156 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009974/0.7517, allocations: 3.767 MB / 0.8721 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003612/0.7553, allocations: 1.561 MB / 0.8736 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001129/0.7565, allocations: 1.081 MB / 0.8747 GB, free: 9.5 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0043/0.7608, allocations: 1.94 MB / 0.8766 GB, free: 7.539 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=223): time 4.288e-06/0.7608, allocations: 0 / 0.8766 GB, free: 7.539 MB / 0.6387 GB Notification: Performance of matching and sorting (n=223): time 0.01324/0.7741, allocations: 4.905 MB / 0.8814 GB, free: 2.605 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.7742, allocations: 265.2 kB / 0.8816 GB, free: 2.289 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003175/0.7774, allocations: 1.951 MB / 0.8835 GB, free: 300 kB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0003401/0.7778, allocations: 65.7 kB / 0.8836 GB, free: 228 kB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.7789, allocations: 1.232 MB / 0.8848 GB, free: 14.97 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008299/0.7797, allocations: 0.747 MB / 0.8855 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/0.7807, allocations: 0.523 MB / 0.886 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.33e-05/0.7808, allocations: 305.1 kB / 0.8863 GB, free: 13.38 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003718/0.7846, allocations: 1.448 MB / 0.8877 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004082/0.7887, allocations: 1.764 MB / 0.8894 GB, free: 10.07 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007814/0.7965, allocations: 3.189 MB / 0.8926 GB, free: 6.809 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/0.7965, allocations: 0 / 0.8926 GB, free: 6.809 MB / 0.6544 GB Notification: Performance of matching and sorting (n=284) (initialization): time 0.01009/0.8066, allocations: 3.743 MB / 0.8962 GB, free: 3.051 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.099e-05/0.8067, allocations: 8 kB / 0.8962 GB, free: 3.043 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/0.8067, allocations: 4 kB / 0.8962 GB, free: 3.039 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006519/0.8074, allocations: 97.23 kB / 0.8963 GB, free: 2.941 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003756/0.8111, allocations: 0.7175 MB / 0.897 GB, free: 2.223 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002323/0.8135, allocations: 1.632 MB / 0.8986 GB, free: 456 kB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003664/0.8171, allocations: 441.4 kB / 0.899 GB, free: 12 kB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004661/0.8176, allocations: 131.8 kB / 0.8992 GB, free: 15.88 MB / 0.67 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.002016/0.8197, allocations: 0.8112 MB / 0.9 GB, free: 15.06 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008115/0.8205, allocations: 237.1 kB / 0.9002 GB, free: 14.82 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01073/0.8312, allocations: 4.016 MB / 0.9041 GB, free: 10.79 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-05/0.8313, allocations: 27.98 kB / 0.9041 GB, free: 10.76 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.8313, allocations: 0 / 0.9041 GB, free: 10.76 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.85e-05/0.8313, allocations: 11.95 kB / 0.9041 GB, free: 10.75 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01494/0.8463, allocations: 7.189 MB / 0.9112 GB, free: 3.383 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.8463, allocations: 0 / 0.9112 GB, free: 3.383 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003156/0.8495, allocations: 0.5968 MB / 0.9117 GB, free: 2.785 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000494/0.85, allocations: 72.8 kB / 0.9118 GB, free: 2.711 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002609/0.8503, allocations: 67.94 kB / 0.9119 GB, free: 2.645 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/0.8522, allocations: 1.662 MB / 0.9135 GB, free: 0.8359 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.8522, allocations: 0 / 0.9135 GB, free: 0.8359 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008351/0.8606, allocations: 3.333 MB / 0.9168 GB, free: 13.48 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001511/0.8621, allocations: 0.6731 MB / 0.9174 GB, free: 12.79 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006532/0.8628, allocations: 67.67 kB / 0.9175 GB, free: 12.72 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002725/0.8655, allocations: 275.6 kB / 0.9177 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003522/0.8659, allocations: 149.8 kB / 0.9179 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000238/0.8662, allocations: 83.94 kB / 0.918 GB, free: 12.22 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002672/0.8688, allocations: 1.474 MB / 0.9194 GB, free: 10.73 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.7e-07/0.8688, allocations: 0 / 0.9194 GB, free: 10.73 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003055/0.8719, allocations: 0.8839 MB / 0.9203 GB, free: 9.84 MB / 0.6856 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.002069/0.874, allocations: 0.6885 MB / 0.9209 GB, free: 9.355 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.009165/0.8832, allocations: 3.389 MB / 0.9242 GB, free: 5.953 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.8832, allocations: 0 / 0.9242 GB, free: 5.953 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.00408/0.8873, allocations: 1.716 MB / 0.9259 GB, free: 4.227 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003215/0.8905, allocations: 458.2 kB / 0.9264 GB, free: 3.801 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01503/0.9056, allocations: 6.325 MB / 0.9325 GB, free: 13.44 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002309/0.9079, allocations: 2.194 MB / 0.9347 GB, free: 11.21 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002079/0.91, allocations: 339.2 kB / 0.935 GB, free: 10.88 MB / 0.7012 GB Notification: Performance of SimCode: time 7.71e-07/0.91, allocations: 0 / 0.935 GB, free: 10.88 MB / 0.7012 GB Notification: Performance of Templates: time 0.08562/0.9957, allocations: 56.72 MB / 0.9904 GB, free: 2.152 MB / 0.7481 GB make -j1 -f IDEAS_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs.makefile make -j1 -f IDEAS_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/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/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputsCalcHelperMain.o OMCppIDEAS_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputsCalcHelperMain.cpp In file included from OMCppIDEAS_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputsCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputsFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputsCalcHelperMain.o] Error 1