Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",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.001624/0.001629, allocations: 186.7 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.119/2.119, allocations: 205.4 MB / 222.5 MB, free: 13.75 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.001127/0.001126, allocations: 86.94 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000383/0.000383, allocations: 8 kB / 327.1 MB, free: 14.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.102, allocations: 47.58 MB / 374.6 MB, free: 15.31 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003898/0.106, allocations: 2.213 MB / 376.9 MB, free: 13.08 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.1079, allocations: 0.6988 MB / 377.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001888/0.1081, allocations: 7.938 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.084e-05/0.1082, allocations: 27.77 kB / 377.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.1085, allocations: 99.7 kB / 377.7 MB, free: 12.24 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000332/0.1089, allocations: 71.86 kB / 377.8 MB, free: 12.17 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004955/0.1094, allocations: 227.5 kB / 378 MB, free: 11.95 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002282/0.1096, allocations: 69.08 kB / 378.1 MB, free: 11.88 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002193/0.1099, allocations: 111.6 kB / 378.2 MB, free: 11.77 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000256/0.1101, allocations: 135.4 kB / 378.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.804e-05/0.1102, allocations: 16 kB / 378.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.631e-05/0.1103, allocations: 16 kB / 378.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.222e-05/0.1104, allocations: 43.83 kB / 378.4 MB, free: 11.57 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.1105, allocations: 73.52 kB / 378.4 MB, free: 11.49 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003733/0.1109, allocations: 239.6 kB / 378.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1109, allocations: 0 / 378.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1109, allocations: 4 kB / 378.7 MB, free: 11.25 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.1109, allocations: 0 / 378.7 MB, free: 11.25 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001843/0.1128, allocations: 0.6106 MB / 379.3 MB, free: 10.58 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/0.1128, allocations: 8.031 kB / 379.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001183/0.113, allocations: 54.55 kB / 379.3 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.1131, allocations: 27.62 kB / 379.4 MB, free: 10.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00051/0.1136, allocations: 282.3 kB / 379.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.1137, allocations: 20.44 kB / 379.7 MB, free: 10.14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.537e-05/0.1137, allocations: 16 kB / 379.7 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.1148, allocations: 259.1 kB / 379.9 MB, free: 9.867 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.1149, allocations: 0 / 379.9 MB, free: 9.867 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.519e-05/0.1149, allocations: 12 kB / 380 MB, free: 9.855 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.1149, allocations: 4 kB / 380 MB, free: 9.852 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.1163, allocations: 273.6 kB / 380.2 MB, free: 9.586 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002651/0.119, allocations: 0.8895 MB / 381.1 MB, free: 8.629 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/0.1206, allocations: 286.5 kB / 381.4 MB, free: 8.34 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.1206, allocations: 4 kB / 381.4 MB, free: 8.336 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000843/0.1215, allocations: 201.9 kB / 381.6 MB, free: 8.117 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 2.595e-06/0.1215, allocations: 0 / 381.6 MB, free: 8.117 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.004475/0.126, allocations: 0.741 MB / 382.3 MB, free: 7.348 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.1261, allocations: 114.8 kB / 382.4 MB, free: 7.211 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004897/0.1266, allocations: 274.5 kB / 382.7 MB, free: 6.934 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.043e-05/0.1267, allocations: 29.7 kB / 382.7 MB, free: 6.898 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.1269, allocations: 230.3 kB / 383 MB, free: 6.672 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.532e-05/0.127, allocations: 39.45 kB / 383 MB, free: 6.633 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.126e-05/0.127, allocations: 4 kB / 383 MB, free: 6.629 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1272, allocations: 318.8 kB / 383.3 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006345/0.1278, allocations: 115.9 kB / 383.4 MB, free: 6.195 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007031/0.1285, allocations: 190.2 kB / 383.6 MB, free: 5.977 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006967/0.1292, allocations: 145.9 kB / 383.8 MB, free: 5.828 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.1293, allocations: 0 / 383.8 MB, free: 5.828 MB / 282.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.002264/0.1315, allocations: 483.6 kB / 384.2 MB, free: 5.34 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004558/0.132, allocations: 0.8169 MB / 385.1 MB, free: 4.457 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.1321, allocations: 0 / 385.1 MB, free: 4.457 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006109/0.1327, allocations: 84.8 kB / 385.1 MB, free: 4.371 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004014/0.1331, allocations: 51.91 kB / 385.2 MB, free: 4.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004793/0.1379, allocations: 1.889 MB / 387.1 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006314/0.1386, allocations: 63.72 kB / 387.1 MB, free: 2.227 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.41e-05/0.1386, allocations: 8 kB / 387.1 MB, free: 2.219 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.1387, allocations: 4 kB / 387.1 MB, free: 2.215 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001281/0.14, allocations: 310.2 kB / 387.5 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.14, allocations: 4 kB / 387.5 MB, free: 1.898 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001253/0.1401, allocations: 29.06 kB / 387.5 MB, free: 1.867 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.1405, allocations: 48.03 kB / 387.5 MB, free: 1.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.1419, allocations: 1.324 MB / 388.9 MB, free: 372 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004409/0.1424, allocations: 47.84 kB / 388.9 MB, free: 324 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.809e-05/0.1424, allocations: 8 kB / 388.9 MB, free: 316 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002804/0.1427, allocations: 217.8 kB / 389.1 MB, free: 88 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.746e-05/0.1428, allocations: 23.72 kB / 389.1 MB, free: 64 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.309e-05/0.1429, allocations: 25.83 kB / 389.2 MB, free: 44 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.934e-06/0.1429, allocations: 7.953 kB / 389.2 MB, free: 36 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.1429, allocations: 0 / 389.2 MB, free: 36 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.1429, allocations: 3.984 kB / 389.2 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2604/0.4034, allocations: 280.4 kB / 389.5 MB, free: 20.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.4034, allocations: 1.188 kB / 389.5 MB, free: 20.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003055/0.4038, allocations: 31.27 kB / 389.5 MB, free: 20.45 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005172/0.4043, allocations: 79.97 kB / 389.6 MB, free: 20.44 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.4043, allocations: 3.234 kB / 389.6 MB, free: 20.44 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003623/0.408, allocations: 1.788 MB / 391.4 MB, free: 19.12 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.408, allocations: 3.844 kB / 391.4 MB, free: 19.12 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.41, allocations: 400.6 kB / 391.8 MB, free: 19.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.586e-05/0.4101, allocations: 101.2 kB / 391.8 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.947e-05/0.4102, allocations: 5.141 kB / 391.9 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/0.4106, allocations: 47.2 kB / 391.9 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.4108, allocations: 21.2 kB / 391.9 MB, free: 18.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/0.4108, allocations: 4.719 kB / 391.9 MB, free: 18.96 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003033/0.4111, allocations: 192 kB / 392.1 MB, free: 18.88 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4111, allocations: 3.719 kB / 392.1 MB, free: 18.88 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008095/0.412, allocations: 119 kB / 392.2 MB, free: 18.88 MB / 282.7 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 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.00224/0.4142, allocations: 0.9399 MB / 393.2 MB, free: 18.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002953/0.4172, allocations: 0.8064 MB / 394 MB, free: 17.92 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/0.4172, allocations: 1 kB / 394 MB, free: 17.92 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000822/0.4181, allocations: 242.6 kB / 394.2 MB, free: 17.81 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004514/0.4185, allocations: 43.69 kB / 394.3 MB, free: 17.81 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009787/0.4283, allocations: 3.46 MB / 397.7 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.4286, allocations: 0.7505 MB / 398.5 MB, free: 15.13 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.4289, allocations: 74.14 kB / 398.5 MB, free: 15.07 MB / 282.7 MB Notification: Performance of SimCode: time 1.232e-06/0.4289, allocations: 4 kB / 398.5 MB, free: 15.07 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_InvertingSchmittTriggerCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTriggerCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTriggerCalcHelperMain.cpp:32: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTriggerJacobian.cpp:74:24: error: use of undeclared identifier '__HOM_LAMBDA_' _NLSJac0jac_y(0) = ((__HOM_LAMBDA_ * tmp30) - _NLSJac0jac_tmp(2)); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTriggerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTriggerFMU.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 1 error generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTriggerCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTriggerCalcHelperMain.o] Error 1