Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.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) 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(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator",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.001586/0.00159, allocations: 188.3 kB / 16.4 MB, free: 5.625 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.074/2.074, allocations: 205.4 MB / 222.5 MB, free: 13.77 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.001149/0.001148, allocations: 102.8 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003883/0.0003884, allocations: 12 kB / 327.1 MB, free: 14.97 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09937/0.0998, allocations: 47.58 MB / 374.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.004061/0.1039, allocations: 2.15 MB / 376.8 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.106, allocations: 0.6949 MB / 377.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002677/0.1063, allocations: 4 kB / 377.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.401e-05/0.1064, allocations: 35.69 kB / 377.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003799/0.1068, allocations: 107.6 kB / 377.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.1071, allocations: 67.91 kB / 377.7 MB, free: 12.24 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004852/0.1076, allocations: 223.5 kB / 377.9 MB, free: 12.02 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002568/0.1079, allocations: 85.69 kB / 378 MB, free: 11.94 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002829/0.1082, allocations: 107.6 kB / 378.1 MB, free: 11.84 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002446/0.1085, allocations: 115.5 kB / 378.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.328e-05/0.1085, allocations: 19.94 kB / 378.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.7e-05/0.1086, allocations: 16 kB / 378.3 MB, free: 11.69 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.306e-05/0.1087, allocations: 47.81 kB / 378.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.183e-05/0.1088, allocations: 69.58 kB / 378.4 MB, free: 11.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.1092, allocations: 235.5 kB / 378.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1092, allocations: 0 / 378.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.358e-06/0.1092, allocations: 0 / 378.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1092, allocations: 3.938 kB / 378.6 MB, free: 11.33 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001386/0.1106, allocations: 0.5496 MB / 379.2 MB, free: 10.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.885e-05/0.1107, allocations: 12.03 kB / 379.2 MB, free: 10.72 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001079/0.1108, allocations: 58.55 kB / 379.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.703e-05/0.1109, allocations: 31.72 kB / 379.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/0.1114, allocations: 262.4 kB / 379.5 MB, free: 10.33 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.1114, allocations: 16.56 kB / 379.5 MB, free: 10.31 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.8e-05/0.1115, allocations: 24 kB / 379.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007625/0.1123, allocations: 236.9 kB / 379.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.1123, allocations: 0 / 379.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.895e-05/0.1124, allocations: 12 kB / 379.8 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.1124, allocations: 4 kB / 379.8 MB, free: 10.03 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008194/0.1132, allocations: 230.1 kB / 380 MB, free: 9.809 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002486/0.1157, allocations: 0.9408 MB / 381 MB, free: 8.797 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007614/0.1165, allocations: 198.5 kB / 381.2 MB, free: 8.594 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.1166, allocations: 4 kB / 381.2 MB, free: 8.59 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.1166, allocations: 34.56 kB / 381.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 2.485e-06/0.1166, allocations: 0 / 381.2 MB, free: 8.547 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.002706/0.1194, allocations: 0.589 MB / 381.8 MB, free: 7.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.1194, allocations: 63.39 kB / 381.8 MB, free: 7.855 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003609/0.1198, allocations: 217.6 kB / 382.1 MB, free: 7.629 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.468e-05/0.1199, allocations: 29.7 kB / 382.1 MB, free: 7.594 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.12, allocations: 230.3 kB / 382.3 MB, free: 7.363 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.374e-05/0.1201, allocations: 71 kB / 382.4 MB, free: 7.293 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.377e-05/0.1202, allocations: 0 / 382.4 MB, free: 7.293 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1203, allocations: 322.8 kB / 382.7 MB, free: 6.969 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.1206, allocations: 67.95 kB / 382.8 MB, free: 6.902 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.1209, allocations: 121.9 kB / 382.9 MB, free: 6.762 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.1212, allocations: 83.92 kB / 383 MB, free: 6.68 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1212, allocations: 0 / 383 MB, free: 6.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001334/0.1226, allocations: 354.1 kB / 383.3 MB, free: 6.324 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003434/0.1229, allocations: 0.6086 MB / 383.9 MB, free: 5.668 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.123, allocations: 8 kB / 383.9 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005486/0.1235, allocations: 76.8 kB / 384 MB, free: 5.582 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003677/0.1239, allocations: 43.92 kB / 384 MB, free: 5.539 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003807/0.1277, allocations: 1.842 MB / 385.9 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.1281, allocations: 27.78 kB / 385.9 MB, free: 3.531 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.723e-05/0.1281, allocations: 15.94 kB / 385.9 MB, free: 3.516 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.1281, allocations: 5.875 kB / 385.9 MB, free: 3.512 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005988/0.1287, allocations: 216.3 kB / 386.1 MB, free: 3.297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1288, allocations: 4 kB / 386.2 MB, free: 3.293 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000173/0.1289, allocations: 40.83 kB / 386.2 MB, free: 3.25 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.1293, allocations: 43.92 kB / 386.2 MB, free: 3.207 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/0.1311, allocations: 1.546 MB / 387.8 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/0.1313, allocations: 15.88 kB / 387.8 MB, free: 1.516 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.1314, allocations: 12.06 kB / 387.8 MB, free: 1.504 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002514/0.1316, allocations: 217 kB / 388 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.861e-05/0.1317, allocations: 19.72 kB / 388 MB, free: 1.262 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.902e-05/0.1318, allocations: 33.86 kB / 388.1 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1318, allocations: 0 / 388.1 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1318, allocations: 0 / 388.1 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1318, allocations: 0 / 388.1 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004973/0.1323, allocations: 305.4 kB / 388.4 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1324, allocations: 0 / 388.4 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002974/0.1327, allocations: 31.98 kB / 388.4 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004013/0.1331, allocations: 72.8 kB / 388.5 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.1331, allocations: 8 kB / 388.5 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2579/0.391, allocations: 1.753 MB / 390.2 MB, free: 19.08 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.391, allocations: 0 / 390.2 MB, free: 19.08 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.3923, allocations: 447.9 kB / 390.7 MB, free: 18.95 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.048e-05/0.3924, allocations: 101.2 kB / 390.8 MB, free: 18.85 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.555e-05/0.3925, allocations: 4.703 kB / 390.8 MB, free: 18.85 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003184/0.3928, allocations: 26.52 kB / 390.8 MB, free: 18.85 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.437e-05/0.3929, allocations: 13.31 kB / 390.8 MB, free: 18.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.3929, allocations: 9.312 kB / 390.8 MB, free: 18.85 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002444/0.3932, allocations: 163.7 kB / 391 MB, free: 18.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.3932, allocations: 3.812 kB / 391 MB, free: 18.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000926/0.3941, allocations: 129.9 kB / 391.1 MB, free: 18.77 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (c.v,l.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001544/0.3957, allocations: 0.9748 MB / 392.1 MB, free: 18.1 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.3973, allocations: 0.5687 MB / 392.7 MB, free: 17.88 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.3973, allocations: 0 / 392.7 MB, free: 17.88 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004852/0.3978, allocations: 220.9 kB / 392.9 MB, free: 17.76 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000476/0.3983, allocations: 34.12 kB / 392.9 MB, free: 17.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005612/0.4039, allocations: 2.796 MB / 395.7 MB, free: 16.12 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.4043, allocations: 0.7595 MB / 396.5 MB, free: 15.42 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.4044, allocations: 78.61 kB / 396.5 MB, free: 15.41 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4044, allocations: 0 / 396.5 MB, free: 15.41 MB / 282.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=5 -DSUNDIALS_MINOR_VERSION=4 -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 OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillatorCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillatorCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillatorCalcHelperMain.cpp:32: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillatorJacobian.cpp:81:24: error: use of undeclared identifier '__HOM_LAMBDA_' _NLSJac0jac_y(0) = ((__HOM_LAMBDA_ * tmp14) + (((1.0 - __HOM_LAMBDA_) * _NLSJac0jac_tmp(4)) - _NLSJac0jac_tmp(2))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillatorJacobian.cpp:81:58: error: use of undeclared identifier '__HOM_LAMBDA_' _NLSJac0jac_y(0) = ((__HOM_LAMBDA_ * tmp14) + (((1.0 - __HOM_LAMBDA_) * _NLSJac0jac_tmp(4)) - _NLSJac0jac_tmp(2))); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillatorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillatorFMU.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 and 2 errors generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillatorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillatorCalcHelperMain.o] Error 1