Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.Integrator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Integrator",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.001565/0.001569, allocations: 188.9 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.155/2.155, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.00116/0.00116, allocations: 98.78 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001797/0.001797, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1358, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Integrator): time 0.005788/0.1416, allocations: 2.123 MB / 376.8 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00268/0.1444, allocations: 0.687 MB / 377.5 MB, free: 12.49 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003229/0.1448, allocations: 7.938 kB / 377.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.1449, allocations: 19.83 kB / 377.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007003/0.1456, allocations: 95.67 kB / 377.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004569/0.1461, allocations: 59.92 kB / 377.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006947/0.1468, allocations: 207.6 kB / 377.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.1471, allocations: 61.09 kB / 377.9 MB, free: 12.05 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003644/0.1475, allocations: 119.5 kB / 378 MB, free: 11.94 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003225/0.1478, allocations: 127.4 kB / 378.1 MB, free: 11.81 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.812e-05/0.1479, allocations: 16 kB / 378.2 MB, free: 11.8 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.182e-05/0.1481, allocations: 12 kB / 378.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001576/0.1482, allocations: 51.75 kB / 378.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.1484, allocations: 65.58 kB / 378.3 MB, free: 11.66 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005515/0.149, allocations: 215.6 kB / 378.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.149, allocations: 0 / 378.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.149, allocations: 0 / 378.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.149, allocations: 0 / 378.5 MB, free: 11.45 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.002484/0.1515, allocations: 0.5947 MB / 379.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.1516, allocations: 12.03 kB / 379.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.1518, allocations: 50.55 kB / 379.1 MB, free: 10.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.1519, allocations: 27.72 kB / 379.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006629/0.1526, allocations: 262.3 kB / 379.4 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.562e-05/0.1527, allocations: 16.38 kB / 379.4 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.607e-05/0.1528, allocations: 16 kB / 379.5 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.1544, allocations: 248.5 kB / 379.7 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.1544, allocations: 0 / 379.7 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.033e-05/0.1545, allocations: 12 kB / 379.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.1545, allocations: 8 kB / 379.7 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002038/0.1566, allocations: 275.6 kB / 380 MB, free: 9.836 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003578/0.1602, allocations: 0.8482 MB / 380.8 MB, free: 8.918 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002179/0.1624, allocations: 270.5 kB / 381.1 MB, free: 8.645 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.523e-05/0.1625, allocations: 4 kB / 381.1 MB, free: 8.641 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001056/0.1636, allocations: 181 kB / 381.3 MB, free: 8.445 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 3.797e-06/0.1636, allocations: 0 / 381.3 MB, free: 8.445 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.005202/0.1689, allocations: 0.6474 MB / 381.9 MB, free: 7.77 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.768e-05/0.169, allocations: 81.11 kB / 382 MB, free: 7.672 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006601/0.1697, allocations: 236.9 kB / 382.2 MB, free: 7.426 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.899e-05/0.1698, allocations: 33.7 kB / 382.3 MB, free: 7.387 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002521/0.1701, allocations: 222.4 kB / 382.5 MB, free: 7.168 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.535e-05/0.1702, allocations: 43.39 kB / 382.5 MB, free: 7.125 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.977e-05/0.1703, allocations: 4 kB / 382.5 MB, free: 7.121 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002346/0.1705, allocations: 314.8 kB / 382.9 MB, free: 6.805 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008286/0.1714, allocations: 104.1 kB / 383 MB, free: 6.703 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008966/0.1723, allocations: 163.2 kB / 383.1 MB, free: 6.52 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008726/0.1732, allocations: 141.6 kB / 383.2 MB, free: 6.375 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.1732, allocations: 3.953 kB / 383.3 MB, free: 6.371 MB / 282.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.002762/0.176, allocations: 427.8 kB / 383.7 MB, free: 5.938 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005385/0.1766, allocations: 0.6392 MB / 384.3 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.1766, allocations: 0 / 384.3 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006457/0.1773, allocations: 64.81 kB / 384.4 MB, free: 5.18 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006432/0.178, allocations: 47.97 kB / 384.4 MB, free: 5.133 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0042/0.1822, allocations: 1.53 MB / 386 MB, free: 3.469 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008404/0.1831, allocations: 51.69 kB / 386 MB, free: 3.418 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/0.1832, allocations: 12 kB / 386 MB, free: 3.406 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.1832, allocations: 4 kB / 386 MB, free: 3.402 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001943/0.1852, allocations: 286.5 kB / 386.3 MB, free: 3.113 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.1852, allocations: 4 kB / 386.3 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001749/0.1854, allocations: 28.78 kB / 386.3 MB, free: 3.078 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005916/0.186, allocations: 52.2 kB / 386.4 MB, free: 3.027 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/0.1881, allocations: 1.381 MB / 387.8 MB, free: 1.512 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007915/0.1889, allocations: 43.95 kB / 387.8 MB, free: 1.469 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.189, allocations: 8 kB / 387.8 MB, free: 1.461 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: 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004178/0.1894, allocations: 213.8 kB / 388 MB, free: 1.242 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.1895, allocations: 15.81 kB / 388 MB, free: 1.227 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.155e-05/0.1896, allocations: 29.8 kB / 388.1 MB, free: 1.203 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.1897, allocations: 8.078 kB / 388.1 MB, free: 1.195 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.1897, allocations: 3.984 kB / 388.1 MB, free: 1.191 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.1897, allocations: 0 / 388.1 MB, free: 1.191 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000607/0.1903, allocations: 281.4 kB / 388.4 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.1904, allocations: 4 kB / 388.4 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005453/0.1909, allocations: 43.91 kB / 388.4 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004573/0.1914, allocations: 56.81 kB / 388.5 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.296e-05/0.1915, allocations: 4 kB / 388.5 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2764/0.4679, allocations: 1.498 MB / 390 MB, free: 19.53 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.468, allocations: 0 / 390 MB, free: 19.53 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002211/0.4702, allocations: 458.7 kB / 390.4 MB, free: 19.46 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.4703, allocations: 99.45 kB / 390.5 MB, free: 19.37 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.934e-05/0.4704, allocations: 3.812 kB / 390.5 MB, free: 19.37 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004049/0.4708, allocations: 36.89 kB / 390.5 MB, free: 19.37 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.471, allocations: 21.88 kB / 390.6 MB, free: 19.37 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.471, allocations: 8.469 kB / 390.6 MB, free: 19.37 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002535/0.4713, allocations: 170.3 kB / 390.7 MB, free: 19.29 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4713, allocations: 0.9688 kB / 390.7 MB, free: 19.29 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007145/0.472, allocations: 111.5 kB / 390.8 MB, free: 19.29 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * 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 (11): * Single equations (assignments): 8 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00246/0.4745, allocations: 0.9903 MB / 391.8 MB, free: 18.69 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002174/0.4767, allocations: 0.6958 MB / 392.5 MB, free: 18.35 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.4767, allocations: 0 / 392.5 MB, free: 18.35 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007441/0.4775, allocations: 227.4 kB / 392.8 MB, free: 18.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004398/0.4779, allocations: 38.3 kB / 392.8 MB, free: 18.24 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005359/0.4833, allocations: 2.587 MB / 395.4 MB, free: 16.69 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.4837, allocations: 0.7513 MB / 396.1 MB, free: 15.99 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.4839, allocations: 69.81 kB / 396.2 MB, free: 15.98 MB / 282.7 MB Notification: Performance of SimCode: time 1.513e-06/0.4839, allocations: 0 / 396.2 MB, free: 15.98 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_IntegratorCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_IntegratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_IntegratorCalcHelperMain.cpp:32: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_IntegratorJacobian.cpp:78:26: error: use of undeclared identifier '__HOM_LAMBDA_' _NLSJac0jac_tmp(1) = ((__HOM_LAMBDA_ * tmp29) + ((1.0 - __HOM_LAMBDA_) * _NLSJac0jac_tmp(0))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_IntegratorJacobian.cpp:78:59: error: use of undeclared identifier '__HOM_LAMBDA_' _NLSJac0jac_tmp(1) = ((__HOM_LAMBDA_ * tmp29) + ((1.0 - __HOM_LAMBDA_) * _NLSJac0jac_tmp(0))); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_IntegratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_IntegratorFMU.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_IntegratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_IntegratorCalcHelperMain.o] Error 1