Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.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/PNlib 3.0.0-master/package.mo", uses=false) Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 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(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009355/0.0009357, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009883/0.0009884, allocations: 182.2 kB / 16.92 MB, free: 6.707 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.382/1.382, allocations: 223.3 MB / 241 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1894/0.1894, allocations: 16.73 MB / 308.8 MB, free: 15.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003323/0.0003324, allocations: 8.234 kB / 374.1 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2807, allocations: 54.48 MB / 428.6 MB, free: 38.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.00104/0.2818, allocations: 0.8069 MB / 429.4 MB, free: 38.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007117/0.2825, allocations: 414.7 kB / 429.8 MB, free: 38.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.972e-05/0.2826, allocations: 9.531 kB / 429.8 MB, free: 38.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.2828, allocations: 41.06 kB / 429.8 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.283, allocations: 30.75 kB / 429.8 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001664/0.2831, allocations: 104.9 kB / 429.9 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002054/0.2834, allocations: 274.7 kB / 430.2 MB, free: 38.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.006e-05/0.2834, allocations: 20.77 kB / 430.2 MB, free: 38.42 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.2836, allocations: 126.2 kB / 430.4 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.678e-05/0.2837, allocations: 48 kB / 430.4 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.304e-05/0.2837, allocations: 1.625 kB / 430.4 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.2838, allocations: 61.09 kB / 430.5 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.598e-05/0.2839, allocations: 19.8 kB / 430.5 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.488e-05/0.2839, allocations: 60.69 kB / 430.5 MB, free: 38.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.284, allocations: 72.91 kB / 430.6 MB, free: 38.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.2841, allocations: 0 / 430.6 MB, free: 38.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2841, allocations: 0 / 430.6 MB, free: 38.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.2841, allocations: 0 / 430.6 MB, free: 38.31 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003324/0.2844, allocations: 417.2 kB / 431 MB, free: 37.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2845, allocations: 9.031 kB / 431 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.041e-05/0.2845, allocations: 10.53 kB / 431 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.2846, allocations: 207.8 kB / 431.2 MB, free: 37.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.2847, allocations: 11.03 kB / 431.3 MB, free: 37.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.958e-05/0.2847, allocations: 12.06 kB / 431.3 MB, free: 37.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.2849, allocations: 104.5 kB / 431.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.2849, allocations: 6.891 kB / 431.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.2849, allocations: 2.969 kB / 431.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.2849, allocations: 2.844 kB / 431.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.549e-05/0.285, allocations: 48.27 kB / 431.4 MB, free: 37.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005848/0.2856, allocations: 0.7335 MB / 432.2 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001545/0.2858, allocations: 56.12 kB / 432.2 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.275e-05/0.2858, allocations: 14.08 kB / 432.2 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.2858, allocations: 0 / 432.2 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.728e-05/0.2859, allocations: 36.53 kB / 432.3 MB, free: 36.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.062e-06/0.2859, allocations: 0 / 432.3 MB, free: 36.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002397/0.2861, allocations: 130 kB / 432.4 MB, free: 36.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/0.2861, allocations: 81.36 kB / 432.5 MB, free: 36.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.2863, allocations: 164.3 kB / 432.6 MB, free: 36.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.397e-06/0.2863, allocations: 27.2 kB / 432.7 MB, free: 36.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.76e-05/0.2863, allocations: 119.8 kB / 432.8 MB, free: 36.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.292e-05/0.2864, allocations: 20.39 kB / 432.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.596e-05/0.2864, allocations: 21.53 kB / 432.8 MB, free: 36.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.982e-05/0.2864, allocations: 322.3 kB / 433.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.058e-05/0.2865, allocations: 22.22 kB / 433.2 MB, free: 36.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.214e-05/0.2865, allocations: 48.84 kB / 433.2 MB, free: 36.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.328e-05/0.2866, allocations: 137 kB / 433.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2866, allocations: 3.938 kB / 433.3 MB, free: 35.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001847/0.2868, allocations: 138.5 kB / 433.5 MB, free: 35.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.2869, allocations: 36.36 kB / 433.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2869, allocations: 2.969 kB / 433.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.2869, allocations: 3.938 kB / 433.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.078e-05/0.287, allocations: 15.06 kB / 433.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.287, allocations: 6.625 kB / 433.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.085e-05/0.287, allocations: 10 kB / 433.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.287, allocations: 9.844 kB / 433.6 MB, free: 35.79 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (T1.firingCon,T1.fire_,T1.activation.NoTokens,T1.activation.active,T1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.478e-05/0.2871, allocations: 150.4 kB / 433.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.14e-05/0.2872, allocations: 9.656 kB / 433.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001522/0.2873, allocations: 118.8 kB / 433.8 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2873, allocations: 3.719 kB / 433.8 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2873, allocations: 7.875 kB / 433.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2873, allocations: 0 / 433.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.071e-05/0.2874, allocations: 195 kB / 434 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2875, allocations: 0 / 434 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.806e-05/0.2875, allocations: 6.531 kB / 434 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2875, allocations: 2.531 kB / 434 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.2875, allocations: 3.938 kB / 434 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2875, allocations: 0 / 434 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2875, allocations: 0 / 434 MB, free: 35.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00012/0.2876, allocations: 126.3 kB / 434.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.534e-05/0.2877, allocations: 93.89 kB / 434.3 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.012e-05/0.2877, allocations: 7.125 kB / 434.3 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.098e-05/0.2877, allocations: 6.969 kB / 434.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.493e-05/0.2877, allocations: 0 / 434.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.2878, allocations: 6.188 kB / 434.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.969e-05/0.2878, allocations: 125.9 kB / 434.4 MB, free: 35.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2878, allocations: 3.938 kB / 434.4 MB, free: 35.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002301/0.2881, allocations: 26.53 kB / 434.4 MB, free: 35.06 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (T1.fire,T1.activation.active,T1.activation.NoTokens) * Number of discrete states: 2 (T1.activation.active,T1.activation.NoTokens) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000143/0.2882, allocations: 125.6 kB / 434.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001457/0.2884, allocations: 110.3 kB / 434.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.2884, allocations: 3.938 kB / 434.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.533e-05/0.2884, allocations: 75.72 kB / 434.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.2886, allocations: 8.062 kB / 434.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004276/0.2891, allocations: 283.3 kB / 435 MB, free: 34.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001103/0.2892, allocations: 0.6997 MB / 435.7 MB, free: 33.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.446e-05/0.2893, allocations: 25.69 kB / 435.7 MB, free: 33.93 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2893, allocations: 4 kB / 435.8 MB, free: 33.93 MB / 350.1 MB Notification: Performance of Templates: time 0.002739/0.292, allocations: 1.424 MB / 437.2 MB, free: 33.81 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile clang++ -std=c++14 -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"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPNlib_PNlib.Examples.ConTest.SingleTCCalcHelperMain.o OMCppPNlib_PNlib.Examples.ConTest.SingleTCCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.ConTest.SingleTCCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.ConTest.SingleTCInitialize.cpp:165:73: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolOr(_functions->_OMC_LIT1,(!_functions->_OMC_LIT1),tmp2); ^~~~~~~~~~~~~~~~~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.SingleTCInitialize.cpp:346:73: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolOr(_functions->_OMC_LIT1,(!_functions->_OMC_LIT1),tmp7); ^~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. make: *** [: OMCppPNlib_PNlib.Examples.ConTest.SingleTCCalcHelperMain.o] Error 1