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.001285/0.001285, allocations: 106.7 kB / 16.41 MB, free: 6.508 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.001271/0.001271, allocations: 188.2 kB / 17.34 MB, free: 5.734 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.434/1.434, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8617/0.8617, allocations: 135.2 MB / 426.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 70.69 kB / 0.5865 GB, free: 21.4 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.165, allocations: 80.93 MB / 0.6656 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs): time 0.01031/0.1753, allocations: 7.12 MB / 0.6725 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.5222/0.6975, allocations: 156 MB / 0.8248 GB, free: 3.363 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001206/0.6987, allocations: 28.94 kB / 0.8248 GB, free: 3.355 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0008048/0.6995, allocations: 295.2 kB / 0.8251 GB, free: 3.09 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002222/0.7017, allocations: 0.7162 MB / 0.8258 GB, free: 2.535 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002994/0.7047, allocations: 1.219 MB / 0.827 GB, free: 1.617 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005622/0.7103, allocations: 4.057 MB / 0.831 GB, free: 15.14 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002878/0.7132, allocations: 2.014 MB / 0.8329 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003184/0.7164, allocations: 1.661 MB / 0.8346 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002591/0.719, allocations: 1.738 MB / 0.8363 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0006773/0.7197, allocations: 342.7 kB / 0.8366 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001935/0.7216, allocations: 0.9389 MB / 0.8375 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0008368/0.7225, allocations: 0.8859 MB / 0.8384 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002139/0.7246, allocations: 1.717 MB / 0.84 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.006102/0.7307, allocations: 4.664 MB / 0.8446 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.7307, allocations: 0 / 0.8446 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7307, allocations: 2.562 kB / 0.8446 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001559/0.7309, allocations: 0 / 0.8446 GB, free: 6.152 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.00887/0.7397, allocations: 3.975 MB / 0.8485 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.7398, allocations: 11.14 kB / 0.8485 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009477/0.7492, allocations: 1.315 MB / 0.8498 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004602/0.7538, allocations: 1.928 MB / 0.8517 GB, free: 424 kB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002234/0.7541, allocations: 230.1 kB / 0.8519 GB, free: 192 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008113/0.7549, allocations: 292 kB / 0.8522 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009631/0.7645, allocations: 4.216 MB / 0.8563 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.685e-05/0.7646, allocations: 0 / 0.8563 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003361/0.7649, allocations: 131.9 kB / 0.8564 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.566e-05/0.765, allocations: 76 kB / 0.8565 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.012/0.777, allocations: 4.565 MB / 0.8609 GB, free: 6.793 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0284/0.8054, allocations: 12.8 MB / 0.8734 GB, free: 9.246 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/0.8171, allocations: 3.615 MB / 0.877 GB, free: 5.625 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004403/0.8215, allocations: 1.448 MB / 0.8784 GB, free: 4.168 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001442/0.8229, allocations: 1.077 MB / 0.8794 GB, free: 2.867 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005345/0.8283, allocations: 1.936 MB / 0.8813 GB, free: 0.9102 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=223): time 4.068e-06/0.8283, allocations: 0 / 0.8813 GB, free: 0.9102 MB / 0.6387 GB Notification: Performance of matching and sorting (n=223): time 0.01486/0.8432, allocations: 4.922 MB / 0.8861 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001731/0.8433, allocations: 261.3 kB / 0.8864 GB, free: 11.65 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003141/0.8465, allocations: 1.906 MB / 0.8882 GB, free: 9.695 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0005163/0.847, allocations: 61.7 kB / 0.8883 GB, free: 9.629 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.001267/0.8483, allocations: 1.254 MB / 0.8895 GB, free: 8.355 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001118/0.8494, allocations: 0.7785 MB / 0.8903 GB, free: 7.57 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001027/0.8504, allocations: 0.5271 MB / 0.8908 GB, free: 7.035 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.8505, allocations: 305.1 kB / 0.8911 GB, free: 6.734 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004104/0.8546, allocations: 1.448 MB / 0.8925 GB, free: 5.281 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004696/0.8593, allocations: 1.756 MB / 0.8942 GB, free: 3.434 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009003/0.8683, allocations: 3.19 MB / 0.8973 GB, free: 176 kB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/0.8683, allocations: 4 kB / 0.8973 GB, free: 172 kB / 0.6544 GB Notification: Performance of matching and sorting (n=284) (initialization): time 0.01139/0.8797, allocations: 3.748 MB / 0.901 GB, free: 12.41 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.8798, allocations: 8 kB / 0.901 GB, free: 12.4 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/0.8798, allocations: 7.984 kB / 0.901 GB, free: 12.39 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006449/0.8804, allocations: 93.25 kB / 0.9011 GB, free: 12.3 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00408/0.8845, allocations: 0.7176 MB / 0.9018 GB, free: 11.58 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002394/0.8869, allocations: 1.646 MB / 0.9034 GB, free: 9.785 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003838/0.8908, allocations: 446 kB / 0.9038 GB, free: 9.348 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005777/0.8913, allocations: 131.8 kB / 0.904 GB, free: 9.219 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.001926/0.8933, allocations: 0.7973 MB / 0.9047 GB, free: 8.414 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007698/0.894, allocations: 234.5 kB / 0.905 GB, free: 8.184 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01137/0.9054, allocations: 4.031 MB / 0.9089 GB, free: 4.129 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.729e-05/0.9054, allocations: 24 kB / 0.9089 GB, free: 4.105 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.9054, allocations: 0 / 0.9089 GB, free: 4.105 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.832e-05/0.9055, allocations: 11.95 kB / 0.9089 GB, free: 4.094 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01614/0.9216, allocations: 7.17 MB / 0.9159 GB, free: 12.75 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.9216, allocations: 4 kB / 0.9159 GB, free: 12.74 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003242/0.9249, allocations: 0.5968 MB / 0.9165 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005038/0.9254, allocations: 76.78 kB / 0.9166 GB, free: 12.07 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003129/0.9257, allocations: 67.94 kB / 0.9167 GB, free: 12 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/0.9279, allocations: 1.666 MB / 0.9183 GB, free: 10.19 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.9279, allocations: 4 kB / 0.9183 GB, free: 10.19 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009412/0.9373, allocations: 3.338 MB / 0.9216 GB, free: 6.824 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/0.9392, allocations: 0.69 MB / 0.9222 GB, free: 6.113 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000585/0.9398, allocations: 59.78 kB / 0.9223 GB, free: 6.055 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002589/0.9424, allocations: 275.6 kB / 0.9225 GB, free: 5.785 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003845/0.9428, allocations: 153.7 kB / 0.9227 GB, free: 5.633 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002309/0.943, allocations: 88.08 kB / 0.9228 GB, free: 5.547 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002437/0.9454, allocations: 1.438 MB / 0.9242 GB, free: 4.09 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9454, allocations: 0 / 0.9242 GB, free: 4.09 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002929/0.9484, allocations: 0.896 MB / 0.9251 GB, free: 3.191 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.002367/0.9507, allocations: 0.6924 MB / 0.9257 GB, free: 2.672 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.009641/0.9604, allocations: 3.26 MB / 0.9289 GB, free: 15.4 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.9604, allocations: 0 / 0.9289 GB, free: 15.4 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.004512/0.9649, allocations: 1.618 MB / 0.9305 GB, free: 13.77 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002619/0.9675, allocations: 454 kB / 0.9309 GB, free: 13.34 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/0.9823, allocations: 6.367 MB / 0.9371 GB, free: 6.941 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001999/0.9843, allocations: 2.181 MB / 0.9393 GB, free: 4.727 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00189/0.9862, allocations: 331.2 kB / 0.9396 GB, free: 4.402 MB / 0.7012 GB Notification: Performance of SimCode: time 7.92e-07/0.9862, allocations: 0 / 0.9396 GB, free: 4.402 MB / 0.7012 GB Notification: Performance of Templates: time 0.0834/1.07, allocations: 56.34 MB / 0.9946 GB, free: 12.04 MB / 0.7637 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