Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001566/0.001566, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.058/2.058, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 90.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2951/0.2951, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.379e-05/3.389e-05, allocations: 0 / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1214, allocations: 58.86 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5063/0.6278, allocations: 96.1 MB / 0.5667 GB, free: 7.531 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.6282, allocations: 71.94 kB / 0.5668 GB, free: 7.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1521/0.7803, allocations: 29.36 MB / 0.5955 GB, free: 14.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.7804, allocations: 4 kB / 0.5955 GB, free: 14.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001193/0.7805, allocations: 27.44 kB / 0.5955 GB, free: 14.64 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.003356/0.7839, allocations: 0.9532 MB / 0.5964 GB, free: 13.69 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.956e-05/0.784, allocations: 12.03 kB / 0.5964 GB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002332/0.7842, allocations: 81.59 kB / 0.5965 GB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003253/0.7845, allocations: 98.88 kB / 0.5966 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/0.7865, allocations: 0.5837 MB / 0.5972 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.711e-05/0.7866, allocations: 41.7 kB / 0.5972 GB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/0.7868, allocations: 61.33 kB / 0.5973 GB, free: 12.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.7882, allocations: 0.5536 MB / 0.5978 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.066e-05/0.7883, allocations: 3.938 kB / 0.5978 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.627e-05/0.7884, allocations: 18.25 kB / 0.5978 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.859e-05/0.7884, allocations: 15.98 kB / 0.5979 GB, free: 12.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.7896, allocations: 370.3 kB / 0.5982 GB, free: 12.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00653/0.7961, allocations: 2.659 MB / 0.6008 GB, free: 9.781 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.7973, allocations: 430.2 kB / 0.6012 GB, free: 9.457 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005475/0.7979, allocations: 210.9 kB / 0.6014 GB, free: 9.312 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.781e-05/0.798, allocations: 4.234 kB / 0.6014 GB, free: 9.309 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.75e-05/0.7981, allocations: 42.28 kB / 0.6015 GB, free: 9.262 MB / 410.7 MB Notification: Performance of pre-optimization done (n=45): time 4.358e-06/0.7981, allocations: 0 / 0.6015 GB, free: 9.262 MB / 410.7 MB Notification: Performance of matching and sorting (n=46): time 0.002447/0.8005, allocations: 0.8074 MB / 0.6023 GB, free: 8.562 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/0.8007, allocations: 117.9 kB / 0.6024 GB, free: 8.426 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.8019, allocations: 0.5445 MB / 0.6029 GB, free: 7.988 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001576/0.8021, allocations: 39.92 kB / 0.6029 GB, free: 7.949 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003167/0.8024, allocations: 364.1 kB / 0.6033 GB, free: 7.711 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002624/0.8027, allocations: 173.3 kB / 0.6035 GB, free: 7.562 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.555e-05/0.8028, allocations: 16.25 kB / 0.6035 GB, free: 7.559 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.803, allocations: 340.7 kB / 0.6038 GB, free: 7.227 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006394/0.8036, allocations: 209.1 kB / 0.604 GB, free: 7.094 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007555/0.8044, allocations: 361.2 kB / 0.6043 GB, free: 6.766 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007203/0.8051, allocations: 247.4 kB / 0.6046 GB, free: 6.598 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.395e-06/0.8051, allocations: 4 kB / 0.6046 GB, free: 6.594 MB / 410.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001771/0.8069, allocations: 0.6267 MB / 0.6052 GB, free: 6.117 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008677/0.8078, allocations: 1.751 MB / 0.6069 GB, free: 4.262 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.436e-05/0.8079, allocations: 11.94 kB / 0.6069 GB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.748e-05/0.8079, allocations: 15.98 kB / 0.6069 GB, free: 4.234 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/0.8101, allocations: 198.1 kB / 0.6071 GB, free: 4.047 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.289e-05/0.8102, allocations: 11.94 kB / 0.6071 GB, free: 4.035 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.8113, allocations: 92.69 kB / 0.6072 GB, free: 3.953 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.8115, allocations: 26.25 kB / 0.6072 GB, free: 3.934 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.8115, allocations: 4 kB / 0.6072 GB, free: 3.93 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001758/0.8133, allocations: 0.58 MB / 0.6078 GB, free: 3.516 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.8134, allocations: 8 kB / 0.6078 GB, free: 3.508 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.8134, allocations: 8 kB / 0.6078 GB, free: 3.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001952/0.8154, allocations: 203.3 kB / 0.608 GB, free: 3.309 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.506e-05/0.8154, allocations: 15.92 kB / 0.608 GB, free: 3.293 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007256/0.8162, allocations: 71 kB / 0.6081 GB, free: 3.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.308e-05/0.8163, allocations: 27 kB / 0.6081 GB, free: 3.211 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002605/0.8165, allocations: 138.6 kB / 0.6083 GB, free: 3.086 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003277/0.8169, allocations: 75.06 kB / 0.6083 GB, free: 3.012 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003022/0.8172, allocations: 91.78 kB / 0.6084 GB, free: 2.961 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.8172, allocations: 4 kB / 0.6084 GB, free: 2.957 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.8172, allocations: 7.938 kB / 0.6084 GB, free: 2.949 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.8172, allocations: 4 kB / 0.6084 GB, free: 2.945 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002876/0.8201, allocations: 1.198 MB / 0.6096 GB, free: 1.949 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/0.8202, allocations: 3.938 kB / 0.6096 GB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/0.8216, allocations: 122.1 kB / 0.6097 GB, free: 1.832 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.447e-05/0.8217, allocations: 4 kB / 0.6097 GB, free: 1.828 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.245e-05/0.8218, allocations: 10.88 kB / 0.6097 GB, free: 1.824 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.668e-05/0.8218, allocations: 15.92 kB / 0.6098 GB, free: 1.809 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.8218, allocations: 0 / 0.6098 GB, free: 1.809 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002218/0.8241, allocations: 1.038 MB / 0.6108 GB, free: 0.9414 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004816/0.8246, allocations: 193.2 kB / 0.6109 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001648/0.8248, allocations: 23.11 kB / 0.611 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001/0.8258, allocations: 47.89 kB / 0.611 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.826, allocations: 46.38 kB / 0.6111 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.401e-05/0.8261, allocations: 19.42 kB / 0.6111 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008632/0.8269, allocations: 428.1 kB / 0.6115 GB, free: 336 kB / 410.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8269, allocations: 4 kB / 0.6115 GB, free: 332 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.001369/0.8283, allocations: 232.5 kB / 0.6117 GB, free: 124 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003043/0.8314, allocations: 1.895 MB / 0.6136 GB, free: 14.39 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002471/0.8339, allocations: 0.8037 MB / 0.6143 GB, free: 13.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/0.834, allocations: 0 / 0.6143 GB, free: 13.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007081/0.8347, allocations: 232.3 kB / 0.6146 GB, free: 13.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/0.8363, allocations: 165.7 kB / 0.6147 GB, free: 13.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004677/0.841, allocations: 1.447 MB / 0.6161 GB, free: 12.17 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008035/0.8419, allocations: 0.9688 MB / 0.6171 GB, free: 11.17 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007834/0.8427, allocations: 268.3 kB / 0.6173 GB, free: 11.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.223e-06/0.8427, allocations: 0 / 0.6173 GB, free: 11.1 MB / 426.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutputFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning generated. clang++ -shared -o ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.so OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.o -L"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -lOMCppSystem_static -lOMCppMath_static -lOMCppModelicaUtilities_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -L"/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om" -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgglse__vec(BaseArray&, BaseArray&, BaseArray&, BaseArray&, Modelica_Math_Matrices_LAPACK_dgglse__vecType&)': /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialOutput/./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutputFunctions.cpp:108: undefined reference to `dgglse_' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutput_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.fmu' failed make: *** [ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.fmu] Error 1