Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower.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.VoltageFollower,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollower",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.00155/0.001555, 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.151/2.151, 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.001191/0.00119, allocations: 98.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005645/0.0005646, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1333, allocations: 47.58 MB / 374.7 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.VoltageFollower): time 0.005302/0.1386, allocations: 2.182 MB / 376.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002475/0.1412, allocations: 0.6987 MB / 377.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003363/0.1416, allocations: 4 kB / 377.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.1417, allocations: 27.77 kB / 377.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005035/0.1423, allocations: 107.6 kB / 377.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004772/0.1428, allocations: 67.84 kB / 377.7 MB, free: 12.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007401/0.1435, allocations: 223.6 kB / 378 MB, free: 12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000308/0.1439, allocations: 69.08 kB / 378 MB, free: 11.94 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.1442, allocations: 111.5 kB / 378.1 MB, free: 11.83 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003225/0.1446, allocations: 127.5 kB / 378.3 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.393e-05/0.1447, allocations: 16 kB / 378.3 MB, free: 11.69 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.105e-05/0.1448, allocations: 15.94 kB / 378.3 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.1449, allocations: 47.81 kB / 378.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.1451, allocations: 77.52 kB / 378.4 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005358/0.1456, allocations: 231.6 kB / 378.6 MB, free: 11.32 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1457, allocations: 0 / 378.6 MB, free: 11.32 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1457, allocations: 0 / 378.6 MB, free: 11.32 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.1457, allocations: 4 kB / 378.6 MB, free: 11.32 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.002411/0.1481, allocations: 0.6028 MB / 379.2 MB, free: 10.65 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/0.1482, allocations: 8.031 kB / 379.3 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001551/0.1484, allocations: 58.53 kB / 379.3 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.1486, allocations: 31.62 kB / 379.3 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006689/0.1492, allocations: 270.2 kB / 379.6 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.769e-05/0.1493, allocations: 24.42 kB / 379.6 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.339e-05/0.1494, allocations: 19.98 kB / 379.6 MB, free: 10.2 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.1509, allocations: 259.2 kB / 379.9 MB, free: 9.938 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.151, allocations: 4 kB / 379.9 MB, free: 9.934 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.648e-05/0.1511, allocations: 4 kB / 379.9 MB, free: 9.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.1511, allocations: 7.984 kB / 379.9 MB, free: 9.922 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002006/0.1532, allocations: 289.6 kB / 380.2 MB, free: 9.641 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003448/0.1567, allocations: 0.8476 MB / 381 MB, free: 8.73 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/0.1584, allocations: 311.6 kB / 381.4 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.1585, allocations: 0 / 381.4 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.1595, allocations: 169.9 kB / 381.5 MB, free: 8.211 MB / 282.7 MB Notification: Performance of pre-optimization done (n=11): time 3.407e-06/0.1596, allocations: 4 kB / 381.5 MB, free: 8.207 MB / 282.7 MB Notification: Performance of matching and sorting (n=11): time 0.004841/0.1644, allocations: 0.6474 MB / 382.2 MB, free: 7.531 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.1646, allocations: 102.8 kB / 382.3 MB, free: 7.406 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006624/0.1653, allocations: 266.5 kB / 382.5 MB, free: 7.137 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.729e-05/0.1654, allocations: 29.7 kB / 382.6 MB, free: 7.102 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002397/0.1657, allocations: 242.2 kB / 382.8 MB, free: 6.863 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.491e-05/0.1658, allocations: 31.55 kB / 382.8 MB, free: 6.832 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.199e-05/0.1658, allocations: 8 kB / 382.8 MB, free: 6.824 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.166, allocations: 322.8 kB / 383.1 MB, free: 6.5 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000776/0.1668, allocations: 103.9 kB / 383.3 MB, free: 6.398 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.168, allocations: 202.3 kB / 383.4 MB, free: 6.156 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008549/0.1689, allocations: 145.6 kB / 383.6 MB, free: 6.008 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/0.169, allocations: 0 / 383.6 MB, free: 6.008 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.002658/0.1716, allocations: 452 kB / 384 MB, free: 5.547 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000758/0.1725, allocations: 1.17 MB / 385.2 MB, free: 4.281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.1725, allocations: 4 kB / 385.2 MB, free: 4.277 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005613/0.1731, allocations: 60.81 kB / 385.3 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005705/0.1737, allocations: 55.91 kB / 385.3 MB, free: 4.16 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003671/0.1774, allocations: 1.542 MB / 386.9 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007896/0.1782, allocations: 55.88 kB / 386.9 MB, free: 2.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-05/0.1783, allocations: 8 kB / 386.9 MB, free: 2.414 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.1783, allocations: 4 kB / 386.9 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001713/0.18, allocations: 318.4 kB / 387.2 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/0.1801, allocations: 4 kB / 387.2 MB, free: 2.086 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001511/0.1803, allocations: 32.73 kB / 387.3 MB, free: 2.051 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005577/0.1809, allocations: 59.94 kB / 387.3 MB, free: 1.992 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.1827, allocations: 1.377 MB / 388.7 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006091/0.1834, allocations: 48 kB / 388.8 MB, free: 444 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/0.1834, allocations: 8 kB / 388.8 MB, free: 436 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (23): * Single equations (assignments): 21 * 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.0003864/0.1838, allocations: 233.5 kB / 389 MB, free: 192 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.1839, allocations: 27.7 kB / 389 MB, free: 164 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.192e-05/0.184, allocations: 25.7 kB / 389 MB, free: 144 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1841, allocations: 0 / 389 MB, free: 144 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1841, allocations: 0 / 389 MB, free: 144 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.1841, allocations: 4 kB / 389 MB, free: 140 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.277/0.4612, allocations: 0.64 MB / 389.7 MB, free: 20.28 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.4612, allocations: 0.8125 kB / 389.7 MB, free: 20.28 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/0.4615, allocations: 30.58 kB / 389.7 MB, free: 20.28 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003142/0.4618, allocations: 56.3 kB / 389.8 MB, free: 20.27 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.4619, allocations: 6.438 kB / 389.8 MB, free: 20.27 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002335/0.4642, allocations: 1.507 MB / 391.3 MB, free: 19.03 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.4643, allocations: 6.328 kB / 391.3 MB, free: 19.03 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.4659, allocations: 399.3 kB / 391.7 MB, free: 18.89 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.4661, allocations: 102.3 kB / 391.8 MB, free: 18.8 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.946e-05/0.4662, allocations: 9.203 kB / 391.8 MB, free: 18.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.4666, allocations: 39.23 kB / 391.8 MB, free: 18.8 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.4668, allocations: 20 kB / 391.9 MB, free: 18.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.4668, allocations: 4.312 kB / 391.9 MB, free: 18.8 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003181/0.4671, allocations: 188.3 kB / 392 MB, free: 18.71 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4672, allocations: 3.844 kB / 392 MB, free: 18.71 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008625/0.468, allocations: 117.3 kB / 392.2 MB, free: 18.71 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001932/0.47, allocations: 0.9356 MB / 393.1 MB, free: 18.05 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00228/0.4723, allocations: 0.7103 MB / 393.8 MB, free: 17.7 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.4724, allocations: 0 / 393.8 MB, free: 17.7 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007697/0.4732, allocations: 224.5 kB / 394 MB, free: 17.58 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.4737, allocations: 42.28 kB / 394.1 MB, free: 17.58 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005571/0.4793, allocations: 3.482 MB / 397.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.4796, allocations: 0.7516 MB / 398.3 MB, free: 14.38 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002092/0.4798, allocations: 73.31 kB / 398.4 MB, free: 14.33 MB / 282.7 MB Notification: Performance of SimCode: time 1.263e-06/0.4799, allocations: 1.219 kB / 398.4 MB, free: 14.33 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_VoltageFollowerCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollowerCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollowerCalcHelperMain.cpp:32: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollowerJacobian.cpp:72:26: error: use of undeclared identifier '__HOM_LAMBDA_' _NLSJac0jac_tmp(1) = ((__HOM_LAMBDA_ * tmp30) + ((1.0 - __HOM_LAMBDA_) * _NLSJac0jac_tmp(0))); ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollowerJacobian.cpp:72:59: error: use of undeclared identifier '__HOM_LAMBDA_' _NLSJac0jac_tmp(1) = ((__HOM_LAMBDA_ * tmp30) + ((1.0 - __HOM_LAMBDA_) * _NLSJac0jac_tmp(0))); ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollowerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollowerFMU.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_VoltageFollowerCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_VoltageFollowerCalcHelperMain.o] Error 1