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.001389/0.001389, allocations: 106.8 kB / 16.41 MB, free: 6.027 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.001401/0.001401, allocations: 180.2 kB / 17.34 MB, free: 5.633 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.314/1.314, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7723/0.7723, allocations: 135.1 MB / 426.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 56.78 kB / 0.5865 GB, free: 21.45 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1557, allocations: 80.92 MB / 0.6655 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs): time 0.008657/0.1644, allocations: 7.113 MB / 0.6724 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.5283/0.6927, allocations: 155.5 MB / 0.8243 GB, free: 3.762 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001671/0.6944, allocations: 32.22 kB / 0.8244 GB, free: 3.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001203/0.6957, allocations: 286 kB / 0.8246 GB, free: 3.496 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002807/0.6985, allocations: 0.7229 MB / 0.8253 GB, free: 2.938 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003094/0.7016, allocations: 1.211 MB / 0.8265 GB, free: 2.027 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00437/0.706, allocations: 4.063 MB / 0.8305 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003205/0.7092, allocations: 2.66 MB / 0.8331 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003211/0.7125, allocations: 1.665 MB / 0.8347 GB, free: 13.1 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002445/0.7149, allocations: 1.733 MB / 0.8364 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0005564/0.7155, allocations: 342.5 kB / 0.8367 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001911/0.7174, allocations: 0.9443 MB / 0.8376 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0007541/0.7182, allocations: 0.8856 MB / 0.8385 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001921/0.7201, allocations: 1.713 MB / 0.8402 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.005229/0.7254, allocations: 4.641 MB / 0.8447 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.7254, allocations: 4 kB / 0.8447 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.226e-06/0.7254, allocations: 0 / 0.8447 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.956e-05/0.7255, allocations: 3.938 kB / 0.8447 GB, free: 6.312 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.007618/0.7331, allocations: 3.868 MB / 0.8485 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.7332, allocations: 9.109 kB / 0.8485 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009188/0.7424, allocations: 1.295 MB / 0.8498 GB, free: 2.312 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003508/0.7459, allocations: 1.911 MB / 0.8516 GB, free: 356 kB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.7461, allocations: 234 kB / 0.8519 GB, free: 120 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005137/0.7466, allocations: 292 kB / 0.8521 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008457/0.7551, allocations: 4.208 MB / 0.8563 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.98e-05/0.7552, allocations: 7.938 kB / 0.8563 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003159/0.7555, allocations: 131.9 kB / 0.8564 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.145e-05/0.7555, allocations: 72 kB / 0.8565 GB, free: 11.3 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01011/0.7657, allocations: 4.565 MB / 0.8609 GB, free: 6.727 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02007/0.7858, allocations: 12.76 MB / 0.8734 GB, free: 9.207 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00995/0.7958, allocations: 3.766 MB / 0.8771 GB, free: 5.43 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003648/0.7995, allocations: 1.564 MB / 0.8786 GB, free: 3.863 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001113/0.8006, allocations: 1.081 MB / 0.8796 GB, free: 2.559 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00445/0.8051, allocations: 1.94 MB / 0.8815 GB, free: 0.5977 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=223): time 5.37e-06/0.8051, allocations: 0 / 0.8815 GB, free: 0.5977 MB / 0.6387 GB Notification: Performance of matching and sorting (n=223): time 0.01267/0.8178, allocations: 4.901 MB / 0.8863 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.8179, allocations: 261.2 kB / 0.8866 GB, free: 11.36 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002725/0.8207, allocations: 1.905 MB / 0.8884 GB, free: 9.402 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0003538/0.821, allocations: 69.7 kB / 0.8885 GB, free: 9.328 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009552/0.822, allocations: 1.212 MB / 0.8897 GB, free: 8.094 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007677/0.8228, allocations: 0.7509 MB / 0.8904 GB, free: 7.332 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008012/0.8236, allocations: 0.5307 MB / 0.8909 GB, free: 6.793 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.806e-05/0.8237, allocations: 301.1 kB / 0.8912 GB, free: 6.496 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003519/0.8272, allocations: 1.445 MB / 0.8926 GB, free: 5.047 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003857/0.8311, allocations: 1.76 MB / 0.8943 GB, free: 3.195 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007443/0.8385, allocations: 3.197 MB / 0.8975 GB, free: 15.92 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.8386, allocations: 0 / 0.8975 GB, free: 15.92 MB / 0.67 GB Notification: Performance of matching and sorting (n=284) (initialization): time 0.0094/0.848, allocations: 3.728 MB / 0.9011 GB, free: 12.18 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.848, allocations: 8 kB / 0.9011 GB, free: 12.17 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.8481, allocations: 8.031 kB / 0.9011 GB, free: 12.16 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005935/0.8487, allocations: 92.77 kB / 0.9012 GB, free: 12.07 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003486/0.8522, allocations: 0.7175 MB / 0.9019 GB, free: 11.35 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002041/0.8542, allocations: 1.64 MB / 0.9035 GB, free: 9.566 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003504/0.8577, allocations: 445.4 kB / 0.9039 GB, free: 9.129 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003331/0.8581, allocations: 131.8 kB / 0.9041 GB, free: 9 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.001672/0.8598, allocations: 0.7955 MB / 0.9048 GB, free: 8.195 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006402/0.8604, allocations: 225.2 kB / 0.9051 GB, free: 7.973 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009507/0.8699, allocations: 4.019 MB / 0.909 GB, free: 3.934 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/0.87, allocations: 28 kB / 0.909 GB, free: 3.906 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.87, allocations: 4 kB / 0.909 GB, free: 3.902 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.751e-05/0.87, allocations: 11.95 kB / 0.909 GB, free: 3.891 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/0.8838, allocations: 7.177 MB / 0.916 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.708e-06/0.8839, allocations: 0 / 0.916 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002934/0.8868, allocations: 0.5968 MB / 0.9166 GB, free: 11.93 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004473/0.8873, allocations: 80.78 kB / 0.9167 GB, free: 11.85 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001789/0.8874, allocations: 63.95 kB / 0.9168 GB, free: 11.79 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/0.8893, allocations: 1.658 MB / 0.9184 GB, free: 9.984 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.8893, allocations: 0 / 0.9184 GB, free: 9.984 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00773/0.897, allocations: 3.337 MB / 0.9216 GB, free: 6.629 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/0.8985, allocations: 0.6693 MB / 0.9223 GB, free: 5.938 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005049/0.899, allocations: 67.69 kB / 0.9223 GB, free: 5.871 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0024/0.9014, allocations: 270.4 kB / 0.9226 GB, free: 5.609 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003155/0.9018, allocations: 157.8 kB / 0.9228 GB, free: 5.453 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001815/0.902, allocations: 88 kB / 0.9228 GB, free: 5.367 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.002065/0.904, allocations: 1.438 MB / 0.9242 GB, free: 3.91 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.71e-07/0.904, allocations: 0 / 0.9242 GB, free: 3.91 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002461/0.9065, allocations: 0.8839 MB / 0.9251 GB, free: 3.023 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.001615/0.9081, allocations: 0.6925 MB / 0.9258 GB, free: 2.5 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.007918/0.9161, allocations: 3.381 MB / 0.9291 GB, free: 15.11 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.9161, allocations: 4 kB / 0.9291 GB, free: 15.1 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.003699/0.9198, allocations: 1.72 MB / 0.9308 GB, free: 13.37 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/0.9221, allocations: 445.9 kB / 0.9312 GB, free: 12.95 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/0.9352, allocations: 6.263 MB / 0.9373 GB, free: 6.656 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001548/0.9368, allocations: 2.189 MB / 0.9394 GB, free: 4.434 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001845/0.9386, allocations: 331.1 kB / 0.9398 GB, free: 4.109 MB / 0.7012 GB Notification: Performance of SimCode: time 1.283e-06/0.9387, allocations: 0 / 0.9398 GB, free: 4.109 MB / 0.7012 GB Notification: Performance of Templates: time 0.07046/1.009, allocations: 56.17 MB / 0.9946 GB, free: 11.93 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