Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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.InvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",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.001505/0.00151, allocations: 182.8 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.017/2.017, 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.001487/0.001487, allocations: 100.3 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.0003981, allocations: 16 kB / 327.1 MB, free: 84 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3249, allocations: 47.56 MB / 374.6 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.003239/0.3282, allocations: 2.194 MB / 376.8 MB, free: 43.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.3297, allocations: 0.6976 MB / 377.5 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001909/0.3299, allocations: 7.406 kB / 377.5 MB, free: 43.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.476e-05/0.33, allocations: 31.45 kB / 377.6 MB, free: 43.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003457/0.3304, allocations: 103.7 kB / 377.7 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003197/0.3307, allocations: 66.2 kB / 377.7 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004201/0.3311, allocations: 231.5 kB / 378 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.3313, allocations: 64.27 kB / 378 MB, free: 42.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.3315, allocations: 111.6 kB / 378.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.3318, allocations: 131.1 kB / 378.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.191e-05/0.3318, allocations: 23.47 kB / 378.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.557e-05/0.3319, allocations: 15.19 kB / 378.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.025e-05/0.332, allocations: 46.16 kB / 378.3 MB, free: 42.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.303e-05/0.3321, allocations: 69.36 kB / 378.4 MB, free: 42.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000309/0.3324, allocations: 236.4 kB / 378.6 MB, free: 42.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.3324, allocations: 0 / 378.6 MB, free: 42.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3324, allocations: 0 / 378.6 MB, free: 42.35 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.3324, allocations: 0 / 378.6 MB, free: 42.35 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.001587/0.334, allocations: 0.6127 MB / 379.3 MB, free: 41.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.3341, allocations: 9.562 kB / 379.3 MB, free: 41.8 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.403e-05/0.3342, allocations: 53.08 kB / 379.3 MB, free: 41.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.915e-05/0.3343, allocations: 30.41 kB / 379.3 MB, free: 41.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.3347, allocations: 274.8 kB / 379.6 MB, free: 41.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.3347, allocations: 17 kB / 379.6 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.77e-05/0.3348, allocations: 17.34 kB / 379.6 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009569/0.3358, allocations: 267.9 kB / 379.9 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.3358, allocations: 3.938 kB / 379.9 MB, free: 41.28 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.3358, allocations: 6.188 kB / 379.9 MB, free: 41.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.3359, allocations: 5.562 kB / 379.9 MB, free: 41.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001314/0.3372, allocations: 292.3 kB / 380.2 MB, free: 41.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.3394, allocations: 0.883 MB / 381.1 MB, free: 40.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.3408, allocations: 274.6 kB / 381.4 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.3409, allocations: 5.672 kB / 381.4 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007297/0.3416, allocations: 189.4 kB / 381.5 MB, free: 40.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.194e-06/0.3416, allocations: 0 / 381.5 MB, free: 40.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.003506/0.3451, allocations: 0.7113 MB / 382.3 MB, free: 39.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.3452, allocations: 104.7 kB / 382.4 MB, free: 39.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.3456, allocations: 259 kB / 382.6 MB, free: 39.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.3456, allocations: 36.52 kB / 382.7 MB, free: 39.44 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.3458, allocations: 227.6 kB / 382.9 MB, free: 39.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.658e-05/0.3458, allocations: 37.11 kB / 382.9 MB, free: 39.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.889e-05/0.3459, allocations: 5.219 kB / 382.9 MB, free: 39.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.957e-05/0.3459, allocations: 321.5 kB / 383.2 MB, free: 38.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006177/0.3465, allocations: 105.7 kB / 383.3 MB, free: 38.83 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005754/0.3471, allocations: 172.9 kB / 383.5 MB, free: 38.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005567/0.3477, allocations: 143.7 kB / 383.6 MB, free: 38.62 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3477, allocations: 4 kB / 383.6 MB, free: 38.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001874/0.3496, allocations: 449.4 kB / 384.1 MB, free: 38.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.3498, allocations: 0.6432 MB / 384.7 MB, free: 37.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.3498, allocations: 0.9062 kB / 384.7 MB, free: 37.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005002/0.3503, allocations: 80.2 kB / 384.8 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003385/0.3507, allocations: 47.28 kB / 384.9 MB, free: 37.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002779/0.3535, allocations: 1.778 MB / 386.6 MB, free: 36.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005958/0.3541, allocations: 53.27 kB / 386.7 MB, free: 36.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.321e-05/0.3542, allocations: 7.062 kB / 386.7 MB, free: 36.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.3542, allocations: 7.219 kB / 386.7 MB, free: 36 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001216/0.3554, allocations: 316.7 kB / 387 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3554, allocations: 6.219 kB / 387 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001599/0.3556, allocations: 39.73 kB / 387.1 MB, free: 35.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003279/0.3559, allocations: 55.55 kB / 387.1 MB, free: 35.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.3573, allocations: 1.539 MB / 388.6 MB, free: 34.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.3577, allocations: 39.88 kB / 388.7 MB, free: 34.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.3577, allocations: 12.38 kB / 388.7 MB, free: 34.09 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002166/0.3579, allocations: 228.8 kB / 388.9 MB, free: 33.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.794e-05/0.358, allocations: 19.81 kB / 388.9 MB, free: 33.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.236e-05/0.3581, allocations: 21.84 kB / 389 MB, free: 33.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.3581, allocations: 0 / 389 MB, free: 33.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3581, allocations: 11.98 kB / 389 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3581, allocations: 0 / 389 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003059/0.3584, allocations: 289.4 kB / 389.3 MB, free: 33.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3585, allocations: 3.953 kB / 389.3 MB, free: 33.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.3587, allocations: 31.97 kB / 389.3 MB, free: 33.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000358/0.3591, allocations: 72.81 kB / 389.4 MB, free: 33.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.3591, allocations: 4 kB / 389.4 MB, free: 33.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.3614, allocations: 1.671 MB / 391 MB, free: 31.56 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.3615, allocations: 4.359 kB / 391 MB, free: 31.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.3631, allocations: 373.5 kB / 391.4 MB, free: 31.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.663e-05/0.3632, allocations: 104.8 kB / 391.5 MB, free: 31.05 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.665e-05/0.3633, allocations: 0 / 391.5 MB, free: 31.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004157/0.3637, allocations: 43.97 kB / 391.5 MB, free: 31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.3638, allocations: 23.92 kB / 391.6 MB, free: 30.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.3639, allocations: 7.984 kB / 391.6 MB, free: 30.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002145/0.3641, allocations: 184.5 kB / 391.8 MB, free: 30.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3641, allocations: 0 / 391.8 MB, free: 30.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007567/0.3649, allocations: 127.7 kB / 391.9 MB, free: 30.67 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001703/0.3666, allocations: 0.8979 MB / 392.8 MB, free: 29.74 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001999/0.3686, allocations: 0.7249 MB / 393.5 MB, free: 28.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.3686, allocations: 4 kB / 393.5 MB, free: 28.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006737/0.3693, allocations: 250.8 kB / 393.8 MB, free: 28.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000411/0.3697, allocations: 52.11 kB / 393.8 MB, free: 28.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004542/0.3743, allocations: 2.567 MB / 396.4 MB, free: 26 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.3745, allocations: 0.7522 MB / 397.1 MB, free: 25.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001756/0.3747, allocations: 75.41 kB / 397.2 MB, free: 25.15 MB / 298.7 MB Notification: Performance of SimCode: time 1.634e-06/0.3747, allocations: 0 / 397.2 MB, free: 25.15 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_InvertingAmpCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmpCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmpCalcHelperMain.cpp:32: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmpJacobian.cpp:73:26: error: use of undeclared identifier '__HOM_LAMBDA_' _NLSJac0jac_tmp(4) = ((__HOM_LAMBDA_ * tmp30) + ((1.0 - __HOM_LAMBDA_) * _NLSJac0jac_tmp(3))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmpJacobian.cpp:73:59: error: use of undeclared identifier '__HOM_LAMBDA_' _NLSJac0jac_tmp(4) = ((__HOM_LAMBDA_ * tmp30) + ((1.0 - __HOM_LAMBDA_) * _NLSJac0jac_tmp(3))); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmpCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmpFMU.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_InvertingAmpCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmpCalcHelperMain.o] Error 1