Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.SchmittTrigger,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",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.001618/0.001618, allocations: 183.9 kB / 16.4 MB, free: 5.75 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.075/2.075, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001254/0.001254, allocations: 94.86 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.0003949, allocations: 12 kB / 327.1 MB, free: 84 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3397, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003411/0.3432, allocations: 2.207 MB / 376.9 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.345, allocations: 0.6975 MB / 377.5 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.3454, allocations: 4.344 kB / 377.6 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.85e-05/0.3455, allocations: 34.94 kB / 377.6 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003611/0.3458, allocations: 103 kB / 377.7 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.3462, allocations: 66.34 kB / 377.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004939/0.3467, allocations: 232 kB / 378 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.347, allocations: 69.05 kB / 378 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/0.3472, allocations: 106.9 kB / 378.2 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.3474, allocations: 132.6 kB / 378.3 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.738e-05/0.3475, allocations: 19.31 kB / 378.3 MB, free: 42.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.715e-05/0.3476, allocations: 14.75 kB / 378.3 MB, free: 42.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.219e-05/0.3476, allocations: 50.34 kB / 378.4 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.84e-05/0.3477, allocations: 69.39 kB / 378.4 MB, free: 42.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003223/0.3481, allocations: 236.7 kB / 378.7 MB, free: 42.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.3481, allocations: 0 / 378.7 MB, free: 42.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3481, allocations: 0 / 378.7 MB, free: 42.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.3481, allocations: 0 / 378.7 MB, free: 42.36 MB / 298.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.001782/0.3499, allocations: 0.6127 MB / 379.3 MB, free: 41.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.35, allocations: 9.938 kB / 379.3 MB, free: 41.82 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001056/0.3501, allocations: 52.86 kB / 379.3 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.3502, allocations: 34.66 kB / 379.4 MB, free: 41.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004287/0.3507, allocations: 279.7 kB / 379.6 MB, free: 41.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.3507, allocations: 17.09 kB / 379.7 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.582e-05/0.3508, allocations: 21.53 kB / 379.7 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.3518, allocations: 259.5 kB / 379.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.3519, allocations: 1.125 kB / 379.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.194e-05/0.3519, allocations: 9.312 kB / 379.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.3519, allocations: 5.625 kB / 379.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/0.3533, allocations: 278.4 kB / 380.2 MB, free: 41.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.3558, allocations: 0.9024 MB / 381.1 MB, free: 40.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001507/0.3574, allocations: 275.7 kB / 381.4 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-05/0.3575, allocations: 5.469 kB / 381.4 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000797/0.3583, allocations: 188.9 kB / 381.6 MB, free: 40.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 3.226e-06/0.3583, allocations: 0 / 381.6 MB, free: 40.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.00443/0.3628, allocations: 0.7493 MB / 382.3 MB, free: 39.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.3629, allocations: 105.3 kB / 382.4 MB, free: 39.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004156/0.3633, allocations: 272 kB / 382.7 MB, free: 39.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.944e-05/0.3634, allocations: 32.23 kB / 382.7 MB, free: 39.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.3635, allocations: 228.3 kB / 383 MB, free: 39.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.3635, allocations: 40.27 kB / 383 MB, free: 39.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.79e-05/0.3636, allocations: 5.406 kB / 383 MB, free: 39.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.342e-05/0.3636, allocations: 313.7 kB / 383.3 MB, free: 38.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006143/0.3643, allocations: 113 kB / 383.4 MB, free: 38.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006893/0.365, allocations: 180.1 kB / 383.6 MB, free: 38.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006356/0.3656, allocations: 142.1 kB / 383.7 MB, free: 38.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3657, allocations: 0 / 383.7 MB, free: 38.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.00216/0.3678, allocations: 470.6 kB / 384.2 MB, free: 38.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001898/0.3681, allocations: 0.6359 MB / 384.8 MB, free: 37.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3681, allocations: 1.094 kB / 384.8 MB, free: 37.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006083/0.3687, allocations: 81.89 kB / 384.9 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004016/0.3691, allocations: 47.72 kB / 385 MB, free: 37.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00396/0.3731, allocations: 1.837 MB / 386.8 MB, free: 36.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006288/0.3738, allocations: 66.69 kB / 386.9 MB, free: 35.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.3738, allocations: 6.875 kB / 386.9 MB, free: 35.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.3739, allocations: 3.375 kB / 386.9 MB, free: 35.99 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001177/0.3751, allocations: 302.7 kB / 387.2 MB, free: 35.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.3751, allocations: 0 / 387.2 MB, free: 35.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001297/0.3752, allocations: 33.16 kB / 387.2 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003301/0.3756, allocations: 51.91 kB / 387.2 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/0.3767, allocations: 1.44 MB / 388.7 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.3772, allocations: 43.91 kB / 388.7 MB, free: 34.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.3773, allocations: 19.94 kB / 388.7 MB, free: 34.03 MB / 298.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: 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 (18): * Single equations (assignments): 16 * 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.00023/0.3775, allocations: 209.1 kB / 389 MB, free: 33.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.624e-05/0.3776, allocations: 23.72 kB / 389 MB, free: 33.79 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.671e-05/0.3777, allocations: 25.83 kB / 389 MB, free: 33.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.3777, allocations: 7.953 kB / 389 MB, free: 33.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3777, allocations: 0 / 389 MB, free: 33.76 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3777, allocations: 0 / 389 MB, free: 33.76 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003256/0.378, allocations: 289.5 kB / 389.3 MB, free: 33.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3781, allocations: 8 kB / 389.3 MB, free: 33.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.3783, allocations: 23.98 kB / 389.3 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004611/0.3788, allocations: 80.8 kB / 389.4 MB, free: 33.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.451e-05/0.3788, allocations: 4 kB / 389.4 MB, free: 33.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003244/0.3821, allocations: 1.702 MB / 391.1 MB, free: 31.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3822, allocations: 3.984 kB / 391.1 MB, free: 31.47 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.384, allocations: 404.3 kB / 391.5 MB, free: 31.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.3842, allocations: 100.8 kB / 391.6 MB, free: 30.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.031e-05/0.3843, allocations: 4 kB / 391.6 MB, free: 30.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004427/0.3847, allocations: 35.97 kB / 391.6 MB, free: 30.9 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.3849, allocations: 31.91 kB / 391.7 MB, free: 30.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.3849, allocations: 7.984 kB / 391.7 MB, free: 30.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002467/0.3852, allocations: 186 kB / 391.9 MB, free: 30.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3852, allocations: 0 / 391.9 MB, free: 30.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007953/0.386, allocations: 119.7 kB / 392 MB, free: 30.56 MB / 298.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.002143/0.3882, allocations: 0.9291 MB / 392.9 MB, free: 29.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002238/0.3905, allocations: 0.7189 MB / 393.6 MB, free: 28.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.3905, allocations: 0 / 393.6 MB, free: 28.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000752/0.3913, allocations: 249.8 kB / 393.9 MB, free: 28.58 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/0.3918, allocations: 50.8 kB / 393.9 MB, free: 28.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005341/0.3971, allocations: 2.608 MB / 396.5 MB, free: 25.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.3974, allocations: 0.7521 MB / 397.3 MB, free: 25.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.3976, allocations: 75.41 kB / 397.4 MB, free: 24.99 MB / 298.7 MB Notification: Performance of SimCode: time 1.303e-06/0.3976, allocations: 4 kB / 397.4 MB, free: 24.99 MB / 298.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_SchmittTriggerCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTriggerCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTriggerCalcHelperMain.cpp:32: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTriggerJacobian.cpp:73:25: error: use of undeclared identifier '__HOM_LAMBDA_' _NLSJac0jac_tmp(3) = (__HOM_LAMBDA_ * tmp30); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTriggerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTriggerFMU.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_SchmittTriggerCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTriggerCalcHelperMain.o] Error 1